element中el-cascader级联获取name和id值(整理)

简介: element中el-cascader级联获取name和id值(整理)

效果图:

<template>
  <!-- 定义 ref="定义一个参数名" 如 ref="refSubCat" -->
  <el-cascader ref="refSubCat" v-model="budgetForm.allOrg" :options="optionsUnit"
    :props="{value: 'id', label: 'orgName'}" @change="handleChange">
  </el-cascader>
</template>
<script>
  export default {
    data() {
      return {
        budgetForm: {
          allOrg: [], //数组-回显
        },
        optionsUnit: [{
            "id": 551,
            "createBy": null,
            "createTime": "2022-04-20 10:01:52",
            "updateBy": null,
            "updateTime": "2022-05-03 09:09:17",
            "isDeleted": false,
            "orgName": "司马侯",
            "orgCode": "SMH01122",
            "orgLevelCode": "HO1",
            "orgLevelName": "总公司",
            "accountType": 1,
            "companyId": 16,
            "province": null,
            "city": null,
            "district": null,
            "address": null,
            "lng": null,
            "lat": null,
            "parentId": 0,
            "distance": null,
            "status": true,
            "positionLevel": null,
            "role": null,
            "isLock": false,
            "validNum": null,
            "children": [{
                "id": 552,
                "createBy": null,
                "createTime": "2022-04-20 10:07:30",
                "updateBy": null,
                "updateTime": "2022-04-20 13:18:12",
                "isDeleted": false,
                "orgName": "销售部",
                "orgCode": null,
                "orgLevelCode": "BM4",
                "orgLevelName": "部门",
                "accountType": null,
                "companyId": 16,
                "province": null,
                "city": null,
                "district": null,
                "address": null,
                "lng": null,
                "lat": null,
                "parentId": 551,
                "distance": null,
                "status": true,
                "positionLevel": null,
                "role": null,
                "isLock": null,
                "validNum": null,
                "children": [{
                    "id": 553,
                    "createBy": null,
                    "createTime": "2022-04-20 10:07:30",
                    "updateBy": null,
                    "updateTime": "2022-05-27 08:56:55",
                    "isDeleted": false,
                    "orgName": "销售1",
                    "orgCode": null,
                    "orgLevelCode": "GW5",
                    "orgLevelName": "岗位",
                    "accountType": null,
                    "companyId": 16,
                    "province": null,
                    "city": null,
                    "district": null,
                    "address": null,
                    "lng": null,
                    "lat": null,
                    "parentId": 552,
                    "distance": null,
                    "status": false,
                    "positionLevel": "1",
                    "role": "2",
                    "isLock": false,
                    "validNum": null,
                    "children": [],
                    "positionLevelName": "员工",
                    "roleName": "销售",
                    "tails": {}
                  },
                  {
                    "id": 554,
                    "createBy": null,
                    "createTime": "2022-04-20 10:07:30",
                    "updateBy": null,
                    "updateTime": "2022-05-27 09:00:11",
                    "isDeleted": false,
                    "orgName": "销售2",
                    "orgCode": null,
                    "orgLevelCode": "GW5",
                    "orgLevelName": "岗位",
                    "accountType": null,
                    "companyId": 16,
                    "province": null,
                    "city": null,
                    "district": null,
                    "address": null,
                    "lng": null,
                    "lat": null,
                    "parentId": 552,
                    "distance": null,
                    "status": false,
                    "positionLevel": "1",
                    "role": "2",
                    "isLock": null,
                    "validNum": null,
                    "children": [],
                    "positionLevelName": "员工",
                    "roleName": "销售",
                    "tails": {}
                  },
                  {
                    "id": 555,
                    "createBy": null,
                    "createTime": "2022-04-20 10:07:30",
                    "updateBy": null,
                    "updateTime": "2022-05-27 09:00:12",
                    "isDeleted": false,
                    "orgName": "销售3",
                    "orgCode": null,
                    "orgLevelCode": "GW5",
                    "orgLevelName": "岗位",
                    "accountType": null,
                    "companyId": 16,
                    "province": null,
                    "city": null,
                    "district": null,
                    "address": null,
                    "lng": null,
                    "lat": null,
                    "parentId": 552,
                    "distance": null,
                    "status": false,
                    "positionLevel": "1",
                    "role": "2",
                    "isLock": null,
                    "validNum": null,
                    "children": [],
                    "positionLevelName": "员工",
                    "roleName": "销售",
                    "tails": {}
                  },
                  {
                    "id": 556,
                    "createBy": null,
                    "createTime": "2022-04-20 10:07:30",
                    "updateBy": null,
                    "updateTime": "2022-05-27 09:00:13",
                    "isDeleted": false,
                    "orgName": "销售4",
                    "orgCode": null,
                    "orgLevelCode": "GW5",
                    "orgLevelName": "岗位",
                    "accountType": null,
                    "companyId": 16,
                    "province": null,
                    "city": null,
                    "district": null,
                    "address": null,
                    "lng": null,
                    "lat": null,
                    "parentId": 552,
                    "distance": null,
                    "status": false,
                    "positionLevel": "1",
                    "role": "2",
                    "isLock": null,
                    "validNum": null,
                    "children": [],
                    "positionLevelName": "员工",
                    "roleName": "销售",
                    "tails": {}
                  },
                  {
                    "id": 557,
                    "createBy": null,
                    "createTime": "2022-04-20 10:07:30",
                    "updateBy": null,
                    "updateTime": "2022-05-27 09:00:13",
                    "isDeleted": false,
                    "orgName": "销售5",
                    "orgCode": null,
                    "orgLevelCode": "GW5",
                    "orgLevelName": "岗位",
                    "accountType": null,
                    "companyId": 16,
                    "province": null,
                    "city": null,
                    "district": null,
                    "address": null,
                    "lng": null,
                    "lat": null,
                    "parentId": 552,
                    "distance": null,
                    "status": false,
                    "positionLevel": "1",
                    "role": "2",
                    "isLock": null,
                    "validNum": null,
                    "children": [],
                    "positionLevelName": "员工",
                    "roleName": "销售",
                    "tails": {}
                  },
                  {
                    "id": 594,
                    "createBy": null,
                    "createTime": "2022-04-20 13:16:43",
                    "updateBy": null,
                    "updateTime": "2022-05-27 09:00:15",
                    "isDeleted": false,
                    "orgName": "销售1部",
                    "orgCode": null,
                    "orgLevelCode": "BM4.1",
                    "orgLevelName": "子部门",
                    "accountType": 2,
                    "companyId": 16,
                    "province": null,
                    "city": null,
                    "district": null,
                    "address": null,
                    "lng": null,
                    "lat": null,
                    "parentId": 552,
                    "distance": null,
                    "status": false,
                    "positionLevel": null,
                    "role": "",
                    "isLock": null,
                    "validNum": null,
                    "children": [{
                      "id": 595,
                      "createBy": null,
                      "createTime": "2022-04-20 13:17:08",
                      "updateBy": null,
                      "updateTime": "2022-04-20 13:18:34",
                      "isDeleted": false,
                      "orgName": "销售6",
                      "orgCode": null,
                      "orgLevelCode": "GW5",
                      "orgLevelName": "岗位",
                      "accountType": null,
                      "companyId": 16,
                      "province": null,
                      "city": null,
                      "district": null,
                      "address": null,
                      "lng": null,
                      "lat": null,
                      "parentId": 594,
                      "distance": null,
                      "status": true,
                      "positionLevel": "1",
                      "role": "2",
                      "isLock": null,
                      "validNum": null,
                      "children": [],
                      "positionLevelName": "员工",
                      "roleName": "销售",
                      "tails": {}
                    }],
                    "positionLevelName": null,
                    "roleName": null,
                    "tails": {}
                  },
                  {
                    "id": 676,
                    "createBy": null,
                    "createTime": "2022-04-27 14:41:44",
                    "updateBy": null,
                    "updateTime": "2022-05-27 08:57:18",
                    "isDeleted": false,
                    "orgName": "测试新岗",
                    "orgCode": null,
                    "orgLevelCode": "GW5",
                    "orgLevelName": "岗位",
                    "accountType": null,
                    "companyId": 16,
                    "province": null,
                    "city": null,
                    "district": null,
                    "address": null,
                    "lng": null,
                    "lat": null,
                    "parentId": 552,
                    "distance": null,
                    "status": true,
                    "positionLevel": "1,3,5",
                    "role": "2",
                    "isLock": null,
                    "validNum": null,
                    "children": [],
                    "positionLevelName": "员工,副经理,副总经理",
                    "roleName": "销售",
                    "tails": {}
                  },
                  {
                    "id": 810,
                    "createBy": null,
                    "createTime": "2022-05-03 21:03:38",
                    "updateBy": null,
                    "updateTime": "2022-05-27 09:00:18",
                    "isDeleted": false,
                    "orgName": "销售管理",
                    "orgCode": null,
                    "orgLevelCode": "GW5",
                    "orgLevelName": "岗位",
                    "accountType": null,
                    "companyId": 16,
                    "province": null,
                    "city": null,
                    "district": null,
                    "address": null,
                    "lng": null,
                    "lat": null,
                    "parentId": 552,
                    "distance": null,
                    "status": false,
                    "positionLevel": "2,3,4,5,6",
                    "role": "2",
                    "isLock": null,
                    "validNum": null,
                    "children": [],
                    "positionLevelName": "主管,副经理,经理,副总经理,总经理",
                    "roleName": "销售",
                    "tails": {}
                  }
                ],
                "positionLevelName": null,
                "roleName": null,
                "tails": {}
              },
              {
                "id": 558,
                "createBy": null,
                "createTime": "2022-04-20 10:07:30",
                "updateBy": null,
                "updateTime": "2022-04-20 13:18:45",
                "isDeleted": false,
                "orgName": "工程部",
                "orgCode": null,
                "orgLevelCode": "BM4",
                "orgLevelName": "部门",
                "accountType": null,
                "companyId": 16,
                "province": null,
                "city": null,
                "district": null,
                "address": null,
                "lng": null,
                "lat": null,
                "parentId": 551,
                "distance": null,
                "status": true,
                "positionLevel": null,
                "role": null,
                "isLock": null,
                "validNum": null,
                "children": [{
                    "id": 589,
                    "createBy": null,
                    "createTime": "2022-04-20 13:14:59",
                    "updateBy": null,
                    "updateTime": "2022-04-20 13:18:46",
                    "isDeleted": false,
                    "orgName": "施工1",
                    "orgCode": null,
                    "orgLevelCode": "GW5",
                    "orgLevelName": "岗位",
                    "accountType": null,
                    "companyId": 16,
                    "province": null,
                    "city": null,
                    "district": null,
                    "address": null,
                    "lng": null,
                    "lat": null,
                    "parentId": 558,
                    "distance": null,
                    "status": true,
                    "positionLevel": "1",
                    "role": "6",
                    "isLock": null,
                    "validNum": null,
                    "children": [],
                    "positionLevelName": "员工",
                    "roleName": "施工人员",
                    "tails": {}
                  },
                  {
                    "id": 590,
                    "createBy": null,
                    "createTime": "2022-04-20 13:15:17",
                    "updateBy": null,
                    "updateTime": "2022-04-20 13:18:48",
                    "isDeleted": false,
                    "orgName": "施工2",
                    "orgCode": null,
                    "orgLevelCode": "GW5",
                    "orgLevelName": "岗位",
                    "accountType": null,
                    "companyId": 16,
                    "province": null,
                    "city": null,
                    "district": null,
                    "address": null,
                    "lng": null,
                    "lat": null,
                    "parentId": 558,
                    "distance": null,
                    "status": true,
                    "positionLevel": "1",
                    "role": "6",
                    "isLock": null,
                    "validNum": null,
                    "children": [],
                    "positionLevelName": "员工",
                    "roleName": "施工人员",
                    "tails": {}
                  },
                  {
                    "id": 591,
                    "createBy": null,
                    "createTime": "2022-04-20 13:15:35",
                    "updateBy": null,
                    "updateTime": "2022-04-20 13:18:50",
                    "isDeleted": false,
                    "orgName": "施工3",
                    "orgCode": null,
                    "orgLevelCode": "GW5",
                    "orgLevelName": "岗位",
                    "accountType": null,
                    "companyId": 16,
                    "province": null,
                    "city": null,
                    "district": null,
                    "address": null,
                    "lng": null,
                    "lat": null,
                    "parentId": 558,
                    "distance": null,
                    "status": true,
                    "positionLevel": "1",
                    "role": "6",
                    "isLock": null,
                    "validNum": null,
                    "children": [],
                    "positionLevelName": "员工",
                    "roleName": "施工人员",
                    "tails": {}
                  },
                  {
                    "id": 592,
                    "createBy": null,
                    "createTime": "2022-04-20 13:15:48",
                    "updateBy": null,
                    "updateTime": "2022-04-20 13:18:52",
                    "isDeleted": false,
                    "orgName": "施工4",
                    "orgCode": null,
                    "orgLevelCode": "GW5",
                    "orgLevelName": "岗位",
                    "accountType": null,
                    "companyId": 16,
                    "province": null,
                    "city": null,
                    "district": null,
                    "address": null,
                    "lng": null,
                    "lat": null,
                    "parentId": 558,
                    "distance": null,
                    "status": true,
                    "positionLevel": "1",
                    "role": "6",
                    "isLock": null,
                    "validNum": null,
                    "children": [],
                    "positionLevelName": "员工",
                    "roleName": "施工人员",
                    "tails": {}
                  },
                  {
                    "id": 593,
                    "createBy": null,
                    "createTime": "2022-04-20 13:16:00",
                    "updateBy": null,
                    "updateTime": "2022-04-20 13:19:03",
                    "isDeleted": false,
                    "orgName": "施工5",
                    "orgCode": null,
                    "orgLevelCode": "GW5",
                    "orgLevelName": "岗位",
                    "accountType": null,
                    "companyId": 16,
                    "province": null,
                    "city": null,
                    "district": null,
                    "address": null,
                    "lng": null,
                    "lat": null,
                    "parentId": 558,
                    "distance": null,
                    "status": true,
                    "positionLevel": "1",
                    "role": "6",
                    "isLock": null,
                    "validNum": null,
                    "children": [],
                    "positionLevelName": "员工",
                    "roleName": "施工人员",
                    "tails": {}
                  }
                ],
                "positionLevelName": null,
                "roleName": null,
                "tails": {}
              },
              {
                "id": 568,
                "createBy": null,
                "createTime": "2022-04-20 10:39:58",
                "updateBy": null,
                "updateTime": "2022-04-20 13:19:33",
                "isDeleted": false,
                "orgName": "开发部",
                "orgCode": "",
                "orgLevelCode": "BM4",
                "orgLevelName": "3",
                "accountType": 2,
                "companyId": 16,
                "province": null,
                "city": null,
                "district": null,
                "address": null,
                "lng": null,
                "lat": null,
                "parentId": 551,
                "distance": null,
                "status": true,
                "positionLevel": null,
                "role": null,
                "isLock": null,
                "validNum": null,
                "children": [{
                    "id": 569,
                    "createBy": null,
                    "createTime": "2022-04-20 10:40:32",
                    "updateBy": null,
                    "updateTime": "2022-04-20 13:19:39",
                    "isDeleted": false,
                    "orgName": "设1",
                    "orgCode": null,
                    "orgLevelCode": "GW5",
                    "orgLevelName": "岗位",
                    "accountType": null,
                    "companyId": 16,
                    "province": null,
                    "city": null,
                    "district": null,
                    "address": null,
                    "lng": null,
                    "lat": null,
                    "parentId": 568,
                    "distance": null,
                    "status": true,
                    "positionLevel": "1",
                    "role": "3",
                    "isLock": null,
                    "validNum": null,
                    "children": [],
                    "positionLevelName": "员工",
                    "roleName": "设计师",
                    "tails": {}
                  },
                  {
                    "id": 570,
                    "createBy": null,
                    "createTime": "2022-04-20 10:40:46",
                    "updateBy": null,
                    "updateTime": "2022-04-20 13:19:41",
                    "isDeleted": false,
                    "orgName": "设2",
                    "orgCode": null,
                    "orgLevelCode": "GW5",
                    "orgLevelName": "岗位",
                    "accountType": null,
                    "companyId": 16,
                    "province": null,
                    "city": null,
                    "district": null,
                    "address": null,
                    "lng": null,
                    "lat": null,
                    "parentId": 568,
                    "distance": null,
                    "status": true,
                    "positionLevel": "1",
                    "role": "3",
                    "isLock": null,
                    "validNum": null,
                    "children": [],
                    "positionLevelName": "员工",
                    "roleName": "设计师",
                    "tails": {}
                  },
                  {
                    "id": 571,
                    "createBy": null,
                    "createTime": "2022-04-20 10:41:06",
                    "updateBy": null,
                    "updateTime": "2022-04-20 13:19:42",
                    "isDeleted": false,
                    "orgName": "设3",
                    "orgCode": null,
                    "orgLevelCode": "GW5",
                    "orgLevelName": "岗位",
                    "accountType": null,
                    "companyId": 16,
                    "province": null,
                    "city": null,
                    "district": null,
                    "address": null,
                    "lng": null,
                    "lat": null,
                    "parentId": 568,
                    "distance": null,
                    "status": true,
                    "positionLevel": "1",
                    "role": "3",
                    "isLock": null,
                    "validNum": null,
                    "children": [],
                    "positionLevelName": "员工",
                    "roleName": "设计师",
                    "tails": {}
                  },
                  {
                    "id": 572,
                    "createBy": null,
                    "createTime": "2022-04-20 10:41:18",
                    "updateBy": null,
                    "updateTime": "2022-04-20 13:19:44",
                    "isDeleted": false,
                    "orgName": "设4",
                    "orgCode": null,
                    "orgLevelCode": "GW5",
                    "orgLevelName": "岗位",
                    "accountType": null,
                    "companyId": 16,
                    "province": null,
                    "city": null,
                    "district": null,
                    "address": null,
                    "lng": null,
                    "lat": null,
                    "parentId": 568,
                    "distance": null,
                    "status": true,
                    "positionLevel": "1",
                    "role": "3",
                    "isLock": null,
                    "validNum": null,
                    "children": [],
                    "positionLevelName": "员工",
                    "roleName": "设计师",
                    "tails": {}
                  },
                  {
                    "id": 573,
                    "createBy": null,
                    "createTime": "2022-04-20 10:41:29",
                    "updateBy": null,
                    "updateTime": "2022-04-20 13:19:46",
                    "isDeleted": false,
                    "orgName": "设5",
                    "orgCode": null,
                    "orgLevelCode": "GW5",
                    "orgLevelName": "岗位",
                    "accountType": null,
                    "companyId": 16,
                    "province": null,
                    "city": null,
                    "district": null,
                    "address": null,
                    "lng": null,
                    "lat": null,
                    "parentId": 568,
                    "distance": null,
                    "status": true,
                    "positionLevel": "1",
                    "role": "3",
                    "isLock": null,
                    "validNum": null,
                    "children": [],
                    "positionLevelName": "员工",
                    "roleName": "设计师",
                    "tails": {}
                  }
                ],
                "positionLevelName": null,
                "roleName": null,
                "tails": {}
              },
              {
                "id": 576,
                "createBy": null,
                "createTime": "2022-04-20 11:34:54",
                "updateBy": null,
                "updateTime": "2022-04-20 13:19:35",
                "isDeleted": false,
                "orgName": "总经办",
                "orgCode": "",
                "orgLevelCode": "BM4",
                "orgLevelName": "3",
                "accountType": 2,
                "companyId": 16,
                "province": null,
                "city": null,
                "district": null,
                "address": null,
                "lng": null,
                "lat": null,
                "parentId": 551,
                "distance": null,
                "status": true,
                "positionLevel": null,
                "role": null,
                "isLock": null,
                "validNum": null,
                "children": [{
                    "id": 577,
                    "createBy": null,
                    "createTime": "2022-04-20 11:38:07",
                    "updateBy": null,
                    "updateTime": "2022-04-25 10:38:55",
                    "isDeleted": false,
                    "orgName": "审核1",
                    "orgCode": null,
                    "orgLevelCode": "GW5",
                    "orgLevelName": "岗位",
                    "accountType": null,
                    "companyId": 16,
                    "province": null,
                    "city": null,
                    "district": null,
                    "address": null,
                    "lng": null,
                    "lat": null,
                    "parentId": 576,
                    "distance": null,
                    "status": true,
                    "positionLevel": "2",
                    "role": null,
                    "isLock": false,
                    "validNum": null,
                    "children": [],
                    "positionLevelName": "主管",
                    "roleName": null,
                    "tails": {}
                  },
                  {
                    "id": 578,
                    "createBy": null,
                    "createTime": "2022-04-20 11:38:25",
                    "updateBy": null,
                    "updateTime": "2022-04-25 10:39:19",
                    "isDeleted": false,
                    "orgName": "审核2",
                    "orgCode": null,
                    "orgLevelCode": "GW5",
                    "orgLevelName": "岗位",
                    "accountType": null,
                    "companyId": 16,
                    "province": null,
                    "city": null,
                    "district": null,
                    "address": null,
                    "lng": null,
                    "lat": null,
                    "parentId": 576,
                    "distance": null,
                    "status": true,
                    "positionLevel": "4",
                    "role": null,
                    "isLock": false,
                    "validNum": null,
                    "children": [],
                    "positionLevelName": "经理",
                    "roleName": null,
                    "tails": {}
                  },
                  {
                    "id": 579,
                    "createBy": null,
                    "createTime": "2022-04-20 11:38:36",
                    "updateBy": null,
                    "updateTime": "2022-04-25 10:48:04",
                    "isDeleted": false,
                    "orgName": "审核3",
                    "orgCode": null,
                    "orgLevelCode": "GW5",
                    "orgLevelName": "岗位",
                    "accountType": null,
                    "companyId": 16,
                    "province": null,
                    "city": null,
                    "district": null,
                    "address": null,
                    "lng": null,
                    "lat": null,
                    "parentId": 576,
                    "distance": null,
                    "status": false,
                    "positionLevel": "6",
                    "role": null,
                    "isLock": false,
                    "validNum": null,
                    "children": [],
                    "positionLevelName": "总经理",
                    "roleName": null,
                    "tails": {}
                  },
                  {
                    "id": 660,
                    "createBy": null,
                    "createTime": "2022-04-25 10:48:38",
                    "updateBy": null,
                    "updateTime": "2022-04-25 10:48:46",
                    "isDeleted": false,
                    "orgName": "审核3",
                    "orgCode": null,
                    "orgLevelCode": "GW5",
                    "orgLevelName": "岗位",
                    "accountType": null,
                    "companyId": 16,
                    "province": null,
                    "city": null,
                    "district": null,
                    "address": null,
                    "lng": null,
                    "lat": null,
                    "parentId": 576,
                    "distance": null,
                    "status": true,
                    "positionLevel": "5",
                    "role": null,
                    "isLock": false,
                    "validNum": null,
                    "children": [],
                    "positionLevelName": "副总经理",
                    "roleName": null,
                    "tails": {}
                  }
                ],
                "positionLevelName": null,
                "roleName": null,
                "tails": {}
              },
              {
                "id": 655,
                "createBy": null,
                "createTime": "2022-04-23 14:43:25",
                "updateBy": null,
                "updateTime": "2022-04-23 14:43:30",
                "isDeleted": false,
                "orgName": "财务部",
                "orgCode": "",
                "orgLevelCode": "BM4",
                "orgLevelName": "3",
                "accountType": 1,
                "companyId": 16,
                "province": null,
                "city": null,
                "district": null,
                "address": null,
                "lng": null,
                "lat": null,
                "parentId": 551,
                "distance": null,
                "status": true,
                "positionLevel": null,
                "role": null,
                "isLock": null,
                "validNum": null,
                "children": [{
                    "id": 656,
                    "createBy": null,
                    "createTime": "2022-04-23 14:44:09",
                    "updateBy": null,
                    "updateTime": "2022-05-02 06:40:44",
                    "isDeleted": false,
                    "orgName": "财务",
                    "orgCode": null,
                    "orgLevelCode": "GW5",
                    "orgLevelName": "岗位",
                    "accountType": null,
                    "companyId": 16,
                    "province": null,
                    "city": null,
                    "district": null,
                    "address": null,
                    "lng": null,
                    "lat": null,
                    "parentId": 655,
                    "distance": null,
                    "status": true,
                    "positionLevel": "1,2",
                    "role": "5",
                    "isLock": false,
                    "validNum": null,
                    "children": [],
                    "positionLevelName": "员工,主管",
                    "roleName": "财务",
                    "tails": {}
                  },
                  {
                    "id": 811,
                    "createBy": null,
                    "createTime": "2022-05-04 15:04:24",
                    "updateBy": null,
                    "updateTime": "2022-05-11 12:44:22",
                    "isDeleted": false,
                    "orgName": "财务经理",
                    "orgCode": null,
                    "orgLevelCode": "GW5",
                    "orgLevelName": "岗位",
                    "accountType": null,
                    "companyId": 16,
                    "province": null,
                    "city": null,
                    "district": null,
                    "address": null,
                    "lng": null,
                    "lat": null,
                    "parentId": 655,
                    "distance": null,
                    "status": true,
                    "positionLevel": "4",
                    "role": "5",
                    "isLock": null,
                    "validNum": null,
                    "children": [],
                    "positionLevelName": "经理",
                    "roleName": "财务",
                    "tails": {}
                  },
                  {
                    "id": 867,
                    "createBy": null,
                    "createTime": "2022-05-11 12:44:11",
                    "updateBy": null,
                    "updateTime": "2022-05-11 12:44:24",
                    "isDeleted": false,
                    "orgName": "出纳",
                    "orgCode": null,
                    "orgLevelCode": "GW5",
                    "orgLevelName": "岗位",
                    "accountType": null,
                    "companyId": 16,
                    "province": null,
                    "city": null,
                    "district": null,
                    "address": null,
                    "lng": null,
                    "lat": null,
                    "parentId": 655,
                    "distance": null,
                    "status": true,
                    "positionLevel": "1",
                    "role": "5",
                    "isLock": null,
                    "validNum": null,
                    "children": [],
                    "positionLevelName": "员工",
                    "roleName": "财务",
                    "tails": {}
                  },
                  {
                    "id": 875,
                    "createBy": null,
                    "createTime": "2022-05-12 09:12:45",
                    "updateBy": null,
                    "updateTime": "2022-05-22 20:21:21",
                    "isDeleted": false,
                    "orgName": "测试",
                    "orgCode": null,
                    "orgLevelCode": "BM4.1",
                    "orgLevelName": "子部门",
                    "accountType": null,
                    "companyId": 16,
                    "province": null,
                    "city": null,
                    "district": null,
                    "address": null,
                    "lng": null,
                    "lat": null,
                    "parentId": 655,
                    "distance": null,
                    "status": false,
                    "positionLevel": null,
                    "role": "",
                    "isLock": null,
                    "validNum": null,
                    "children": [],
                    "positionLevelName": null,
                    "roleName": null,
                    "tails": {}
                  }
                ],
                "positionLevelName": null,
                "roleName": null,
                "tails": {}
              },
              {
                "id": 855,
                "createBy": null,
                "createTime": "2022-05-08 22:26:33",
                "updateBy": null,
                "updateTime": "2022-05-08 22:26:36",
                "isDeleted": false,
                "orgName": "市场部",
                "orgCode": null,
                "orgLevelCode": "BM4",
                "orgLevelName": "部门",
                "accountType": null,
                "companyId": 16,
                "province": null,
                "city": null,
                "district": null,
                "address": null,
                "lng": null,
                "lat": null,
                "parentId": 551,
                "distance": null,
                "status": true,
                "positionLevel": null,
                "role": null,
                "isLock": null,
                "validNum": null,
                "children": [{
                    "id": 856,
                    "createBy": null,
                    "createTime": "2022-05-08 22:26:33",
                    "updateBy": null,
                    "updateTime": "2022-05-08 22:26:33",
                    "isDeleted": false,
                    "orgName": "市场推广",
                    "orgCode": null,
                    "orgLevelCode": "GW5",
                    "orgLevelName": "岗位",
                    "accountType": null,
                    "companyId": 16,
                    "province": null,
                    "city": null,
                    "district": null,
                    "address": null,
                    "lng": null,
                    "lat": null,
                    "parentId": 855,
                    "distance": null,
                    "status": null,
                    "positionLevel": "1,2,3,4,5",
                    "role": "5",
                    "isLock": null,
                    "validNum": null,
                    "children": [],
                    "positionLevelName": "员工,主管,副经理,经理,副总经理",
                    "roleName": "财务",
                    "tails": {}
                  },
                  {
                    "id": 857,
                    "createBy": null,
                    "createTime": "2022-05-08 22:26:33",
                    "updateBy": null,
                    "updateTime": "2022-05-08 22:26:33",
                    "isDeleted": false,
                    "orgName": "市场策划",
                    "orgCode": null,
                    "orgLevelCode": "GW5",
                    "orgLevelName": "岗位",
                    "accountType": null,
                    "companyId": 16,
                    "province": null,
                    "city": null,
                    "district": null,
                    "address": null,
                    "lng": null,
                    "lat": null,
                    "parentId": 855,
                    "distance": null,
                    "status": null,
                    "positionLevel": "1,2,3,4",
                    "role": "5",
                    "isLock": null,
                    "validNum": null,
                    "children": [],
                    "positionLevelName": "员工,主管,副经理,经理",
                    "roleName": "财务",
                    "tails": {}
                  }
                ],
                "positionLevelName": null,
                "roleName": null,
                "tails": {}
              },
              {
                "id": 858,
                "createBy": null,
                "createTime": "2022-05-08 22:26:33",
                "updateBy": null,
                "updateTime": "2022-05-08 22:26:37",
                "isDeleted": false,
                "orgName": "人力资源",
                "orgCode": null,
                "orgLevelCode": "BM4",
                "orgLevelName": "部门",
                "accountType": null,
                "companyId": 16,
                "province": null,
                "city": null,
                "district": null,
                "address": null,
                "lng": null,
                "lat": null,
                "parentId": 551,
                "distance": null,
                "status": true,
                "positionLevel": null,
                "role": null,
                "isLock": null,
                "validNum": null,
                "children": [{
                    "id": 859,
                    "createBy": null,
                    "createTime": "2022-05-08 22:26:33",
                    "updateBy": null,
                    "updateTime": "2022-05-08 22:26:33",
                    "isDeleted": false,
                    "orgName": "招聘",
                    "orgCode": null,
                    "orgLevelCode": "GW5",
                    "orgLevelName": "岗位",
                    "accountType": null,
                    "companyId": 16,
                    "province": null,
                    "city": null,
                    "district": null,
                    "address": null,
                    "lng": null,
                    "lat": null,
                    "parentId": 858,
                    "distance": null,
                    "status": null,
                    "positionLevel": "1,2,3,4",
                    "role": "5",
                    "isLock": null,
                    "validNum": null,
                    "children": [],
                    "positionLevelName": "员工,主管,副经理,经理",
                    "roleName": "财务",
                    "tails": {}
                  },
                  {
                    "id": 860,
                    "createBy": null,
                    "createTime": "2022-05-08 22:26:33",
                    "updateBy": null,
                    "updateTime": "2022-05-08 22:26:33",
                    "isDeleted": false,
                    "orgName": "薪酬",
                    "orgCode": null,
                    "orgLevelCode": "GW5",
                    "orgLevelName": "岗位",
                    "accountType": null,
                    "companyId": 16,
                    "province": null,
                    "city": null,
                    "district": null,
                    "address": null,
                    "lng": null,
                    "lat": null,
                    "parentId": 858,
                    "distance": null,
                    "status": null,
                    "positionLevel": "1,2,3,4",
                    "role": "5",
                    "isLock": null,
                    "validNum": null,
                    "children": [],
                    "positionLevelName": "员工,主管,副经理,经理",
                    "roleName": "财务",
                    "tails": {}
                  }
                ],
                "positionLevelName": null,
                "roleName": null,
                "tails": {}
              }
            ],
            "positionLevelName": null,
            "roleName": null,
            "tails": {}
          },
          {
            "id": 837,
            "createBy": null,
            "createTime": "2022-05-08 20:28:38",
            "updateBy": null,
            "updateTime": "2022-05-10 09:34:27",
            "isDeleted": false,
            "orgName": " 舒适家",
            "orgCode": "",
            "orgLevelCode": "HO1",
            "orgLevelName": "总公司",
            "accountType": 1,
            "companyId": 16,
            "province": null,
            "city": null,
            "district": null,
            "address": null,
            "lng": null,
            "lat": null,
            "parentId": 0,
            "distance": null,
            "status": true,
            "positionLevel": null,
            "role": null,
            "isLock": null,
            "validNum": null,
            "children": [{
                "id": 838,
                "createBy": null,
                "createTime": "2022-05-08 20:39:30",
                "updateBy": null,
                "updateTime": "2022-05-09 08:31:19",
                "isDeleted": false,
                "orgName": "青岛店",
                "orgCode": null,
                "orgLevelCode": "MD3",
                "orgLevelName": "门店",
                "accountType": 1,
                "companyId": 16,
                "province": null,
                "city": null,
                "district": null,
                "address": null,
                "lng": null,
                "lat": null,
                "parentId": 837,
                "distance": null,
                "status": true,
                "positionLevel": null,
                "role": null,
                "isLock": null,
                "validNum": null,
                "children": [{
                    "id": 839,
                    "createBy": null,
                    "createTime": "2022-05-08 20:39:30",
                    "updateBy": null,
                    "updateTime": "2022-05-08 20:50:02",
                    "isDeleted": false,
                    "orgName": "门店销售部",
                    "orgCode": null,
                    "orgLevelCode": "BM4",
                    "orgLevelName": "部门",
                    "accountType": 1,
                    "companyId": 16,
                    "province": null,
                    "city": null,
                    "district": null,
                    "address": null,
                    "lng": null,
                    "lat": null,
                    "parentId": 838,
                    "distance": null,
                    "status": true,
                    "positionLevel": null,
                    "role": null,
                    "isLock": null,
                    "validNum": null,
                    "children": [{
                      "id": 840,
                      "createBy": null,
                      "createTime": "2022-05-08 20:39:30",
                      "updateBy": null,
                      "updateTime": "2022-05-08 20:39:30",
                      "isDeleted": false,
                      "orgName": "门店销售",
                      "orgCode": null,
                      "orgLevelCode": "GW5",
                      "orgLevelName": "岗位",
                      "accountType": null,
                      "companyId": 16,
                      "province": null,
                      "city": null,
                      "district": null,
                      "address": null,
                      "lng": null,
                      "lat": null,
                      "parentId": 839,
                      "distance": null,
                      "status": null,
                      "positionLevel": "1",
                      "role": "2",
                      "isLock": null,
                      "validNum": null,
                      "children": [],
                      "positionLevelName": "员工",
                      "roleName": "销售",
                      "tails": {}
                    }],
                    "positionLevelName": null,
                    "roleName": null,
                    "tails": {}
                  },
                  {
                    "id": 841,
                    "createBy": null,
                    "createTime": "2022-05-08 20:39:30",
                    "updateBy": null,
                    "updateTime": "2022-05-08 20:49:59",
                    "isDeleted": false,
                    "orgName": "门店管理部",
                    "orgCode": null,
                    "orgLevelCode": "BM4",
                    "orgLevelName": "部门",
                    "accountType": 2,
                    "companyId": 16,
                    "province": null,
                    "city": null,
                    "district": null,
                    "address": null,
                    "lng": null,
                    "lat": null,
                    "parentId": 838,
                    "distance": null,
                    "status": true,
                    "positionLevel": null,
                    "role": null,
                    "isLock": null,
                    "validNum": null,
                    "children": [{
                      "id": 842,
                      "createBy": null,
                      "createTime": "2022-05-08 20:39:30",
                      "updateBy": null,
                      "updateTime": "2022-05-08 20:39:30",
                      "isDeleted": false,
                      "orgName": "行政专员",
                      "orgCode": null,
                      "orgLevelCode": "GW5",
                      "orgLevelName": "岗位",
                      "accountType": null,
                      "companyId": 16,
                      "province": null,
                      "city": null,
                      "district": null,
                      "address": null,
                      "lng": null,
                      "lat": null,
                      "parentId": 841,
                      "distance": null,
                      "status": null,
                      "positionLevel": "1",
                      "role": "5",
                      "isLock": null,
                      "validNum": null,
                      "children": [],
                      "positionLevelName": "员工",
                      "roleName": "财务",
                      "tails": {}
                    }],
                    "positionLevelName": null,
                    "roleName": null,
                    "tails": {}
                  }
                ],
                "positionLevelName": null,
                "roleName": null,
                "tails": {}
              },
              {
                "id": 843,
                "createBy": null,
                "createTime": "2022-05-08 20:48:36",
                "updateBy": null,
                "updateTime": "2022-05-09 08:31:21",
                "isDeleted": false,
                "orgName": "市场部",
                "orgCode": null,
                "orgLevelCode": "BM4",
                "orgLevelName": "部门",
                "accountType": null,
                "companyId": 16,
                "province": null,
                "city": null,
                "district": null,
                "address": null,
                "lng": null,
                "lat": null,
                "parentId": 837,
                "distance": null,
                "status": true,
                "positionLevel": null,
                "role": null,
                "isLock": null,
                "validNum": null,
                "children": [{
                    "id": 844,
                    "createBy": null,
                    "createTime": "2022-05-08 20:48:36",
                    "updateBy": null,
                    "updateTime": "2022-05-09 08:31:35",
                    "isDeleted": false,
                    "orgName": "市场管理员",
                    "orgCode": null,
                    "orgLevelCode": "GW5",
                    "orgLevelName": "岗位",
                    "accountType": null,
                    "companyId": 16,
                    "province": null,
                    "city": null,
                    "district": null,
                    "address": null,
                    "lng": null,
                    "lat": null,
                    "parentId": 843,
                    "distance": null,
                    "status": true,
                    "positionLevel": "1",
                    "role": "2",
                    "isLock": null,
                    "validNum": null,
                    "children": [],
                    "positionLevelName": "员工",
                    "roleName": "销售",
                    "tails": {}
                  },
                  {
                    "id": 845,
                    "createBy": null,
                    "createTime": "2022-05-08 20:48:36",
                    "updateBy": null,
                    "updateTime": "2022-05-09 08:31:36",
                    "isDeleted": false,
                    "orgName": "市场管理人员岗",
                    "orgCode": null,
                    "orgLevelCode": "GW5",
                    "orgLevelName": "岗位",
                    "accountType": null,
                    "companyId": 16,
                    "province": null,
                    "city": null,
                    "district": null,
                    "address": null,
                    "lng": null,
                    "lat": null,
                    "parentId": 843,
                    "distance": null,
                    "status": true,
                    "positionLevel": "2,3,4,5",
                    "role": "2",
                    "isLock": null,
                    "validNum": null,
                    "children": [],
                    "positionLevelName": "主管,副经理,经理,副总经理",
                    "roleName": "销售",
                    "tails": {}
                  },
                  {
                    "id": 876,
                    "createBy": null,
                    "createTime": "2022-05-12 09:13:04",
                    "updateBy": null,
                    "updateTime": "2022-05-12 09:13:04",
                    "isDeleted": false,
                    "orgName": "测试",
                    "orgCode": null,
                    "orgLevelCode": "BM4.1",
                    "orgLevelName": "子部门",
                    "accountType": null,
                    "companyId": 16,
                    "province": null,
                    "city": null,
                    "district": null,
                    "address": null,
                    "lng": null,
                    "lat": null,
                    "parentId": 843,
                    "distance": null,
                    "status": null,
                    "positionLevel": null,
                    "role": null,
                    "isLock": null,
                    "validNum": null,
                    "children": [],
                    "positionLevelName": null,
                    "roleName": null,
                    "tails": {}
                  }
                ],
                "positionLevelName": null,
                "roleName": null,
                "tails": {}
              },
              {
                "id": 846,
                "createBy": null,
                "createTime": "2022-05-08 20:48:36",
                "updateBy": null,
                "updateTime": "2022-05-09 08:31:22",
                "isDeleted": false,
                "orgName": "财务部",
                "orgCode": null,
                "orgLevelCode": "BM4",
                "orgLevelName": "部门",
                "accountType": null,
                "companyId": 16,
                "province": null,
                "city": null,
                "district": null,
                "address": null,
                "lng": null,
                "lat": null,
                "parentId": 837,
                "distance": null,
                "status": true,
                "positionLevel": null,
                "role": null,
                "isLock": null,
                "validNum": null,
                "children": [{
                    "id": 847,
                    "createBy": null,
                    "createTime": "2022-05-08 20:48:36",
                    "updateBy": null,
                    "updateTime": "2022-05-08 21:12:41",
                    "isDeleted": false,
                    "orgName": "出纳",
                    "orgCode": null,
                    "orgLevelCode": "GW5",
                    "orgLevelName": "岗位",
                    "accountType": null,
                    "companyId": 16,
                    "province": null,
                    "city": null,
                    "district": null,
                    "address": null,
                    "lng": null,
                    "lat": null,
                    "parentId": 846,
                    "distance": null,
                    "status": true,
                    "positionLevel": "1",
                    "role": "5",
                    "isLock": null,
                    "validNum": null,
                    "children": [],
                    "positionLevelName": "员工",
                    "roleName": "财务",
                    "tails": {}
                  },
                  {
                    "id": 848,
                    "createBy": null,
                    "createTime": "2022-05-08 20:48:36",
                    "updateBy": null,
                    "updateTime": "2022-05-08 21:12:40",
                    "isDeleted": false,
                    "orgName": "财务经理",
                    "orgCode": null,
                    "orgLevelCode": "GW5",
                    "orgLevelName": "岗位",
                    "accountType": null,
                    "companyId": 16,
                    "province": null,
                    "city": null,
                    "district": null,
                    "address": null,
                    "lng": null,
                    "lat": null,
                    "parentId": 846,
                    "distance": null,
                    "status": true,
                    "positionLevel": "4",
                    "role": "5",
                    "isLock": null,
                    "validNum": null,
                    "children": [],
                    "positionLevelName": "经理",
                    "roleName": "财务",
                    "tails": {}
                  }
                ],
                "positionLevelName": null,
                "roleName": null,
                "tails": {}
              },
              {
                "id": 849,
                "createBy": null,
                "createTime": "2022-05-08 20:48:36",
                "updateBy": null,
                "updateTime": "2022-05-09 08:31:23",
                "isDeleted": false,
                "orgName": "工程部",
                "orgCode": null,
                "orgLevelCode": "BM4",
                "orgLevelName": "部门",
                "accountType": null,
                "companyId": 16,
                "province": null,
                "city": null,
                "district": null,
                "address": null,
                "lng": null,
                "lat": null,
                "parentId": 837,
                "distance": null,
                "status": true,
                "positionLevel": null,
                "role": null,
                "isLock": null,
                "validNum": null,
                "children": [{
                    "id": 850,
                    "createBy": null,
                    "createTime": "2022-05-08 20:48:36",
                    "updateBy": null,
                    "updateTime": "2022-05-09 08:31:27",
                    "isDeleted": false,
                    "orgName": "施工",
                    "orgCode": null,
                    "orgLevelCode": "GW5",
                    "orgLevelName": "岗位",
                    "accountType": null,
                    "companyId": 16,
                    "province": null,
                    "city": null,
                    "district": null,
                    "address": null,
                    "lng": null,
                    "lat": null,
                    "parentId": 849,
                    "distance": null,
                    "status": true,
                    "positionLevel": "1",
                    "role": "6",
                    "isLock": null,
                    "validNum": null,
                    "children": [],
                    "positionLevelName": "员工",
                    "roleName": "施工人员",
                    "tails": {}
                  },
                  {
                    "id": 851,
                    "createBy": null,
                    "createTime": "2022-05-08 20:48:36",
                    "updateBy": null,
                    "updateTime": "2022-05-09 08:31:29",
                    "isDeleted": false,
                    "orgName": "施工管理岗",
                    "orgCode": null,
                    "orgLevelCode": "GW5",
                    "orgLevelName": "岗位",
                    "accountType": null,
                    "companyId": 16,
                    "province": null,
                    "city": null,
                    "district": null,
                    "address": null,
                    "lng": null,
                    "lat": null,
                    "parentId": 849,
                    "distance": null,
                    "status": true,
                    "positionLevel": "2,3",
                    "role": "6",
                    "isLock": null,
                    "validNum": null,
                    "children": [],
                    "positionLevelName": "主管,副经理",
                    "roleName": "施工人员",
                    "tails": {}
                  }
                ],
                "positionLevelName": null,
                "roleName": null,
                "tails": {}
              },
              {
                "id": 852,
                "createBy": null,
                "createTime": "2022-05-08 20:48:36",
                "updateBy": null,
                "updateTime": "2022-05-09 08:31:24",
                "isDeleted": false,
                "orgName": "设计部",
                "orgCode": null,
                "orgLevelCode": "BM4",
                "orgLevelName": "部门",
                "accountType": null,
                "companyId": 16,
                "province": null,
                "city": null,
                "district": null,
                "address": null,
                "lng": null,
                "lat": null,
                "parentId": 837,
                "distance": null,
                "status": true,
                "positionLevel": null,
                "role": null,
                "isLock": null,
                "validNum": null,
                "children": [{
                    "id": 853,
                    "createBy": null,
                    "createTime": "2022-05-08 20:48:36",
                    "updateBy": null,
                    "updateTime": "2022-05-08 20:48:36",
                    "isDeleted": false,
                    "orgName": "设计员",
                    "orgCode": null,
                    "orgLevelCode": "GW5",
                    "orgLevelName": "岗位",
                    "accountType": null,
                    "companyId": 16,
                    "province": null,
                    "city": null,
                    "district": null,
                    "address": null,
                    "lng": null,
                    "lat": null,
                    "parentId": 852,
                    "distance": null,
                    "status": null,
                    "positionLevel": "1",
                    "role": "3",
                    "isLock": null,
                    "validNum": null,
                    "children": [],
                    "positionLevelName": "员工",
                    "roleName": "设计师",
                    "tails": {}
                  },
                  {
                    "id": 854,
                    "createBy": null,
                    "createTime": "2022-05-08 20:48:36",
                    "updateBy": null,
                    "updateTime": "2022-05-08 20:48:36",
                    "isDeleted": false,
                    "orgName": "设计管理岗",
                    "orgCode": null,
                    "orgLevelCode": "GW5",
                    "orgLevelName": "岗位",
                    "accountType": null,
                    "companyId": 16,
                    "province": null,
                    "city": null,
                    "district": null,
                    "address": null,
                    "lng": null,
                    "lat": null,
                    "parentId": 852,
                    "distance": null,
                    "status": null,
                    "positionLevel": "2,4",
                    "role": "3",
                    "isLock": null,
                    "validNum": null,
                    "children": [],
                    "positionLevelName": "主管,经理",
                    "roleName": "设计师",
                    "tails": {}
                  }
                ],
                "positionLevelName": null,
                "roleName": null,
                "tails": {}
              }
            ],
            "positionLevelName": null,
            "roleName": null,
            "tails": {}
          },
          {
            "id": 975,
            "createBy": null,
            "createTime": "2022-05-30 08:53:09",
            "updateBy": null,
            "updateTime": "2022-06-15 11:46:09",
            "isDeleted": false,
            "orgName": "中平加公司测省市区",
            "orgCode": "haozhongping123",
            "orgLevelCode": "HO1",
            "orgLevelName": "总公司",
            "accountType": 1,
            "companyId": 16,
            "province": null,
            "city": null,
            "district": null,
            "address": null,
            "lng": null,
            "lat": null,
            "parentId": 0,
            "distance": null,
            "status": true,
            "positionLevel": null,
            "role": "",
            "isLock": null,
            "validNum": null,
            "children": [{
              "id": 976,
              "createBy": null,
              "createTime": "2022-05-30 08:53:48",
              "updateBy": null,
              "updateTime": "2022-06-15 11:46:10",
              "isDeleted": false,
              "orgName": "门店1",
              "orgCode": null,
              "orgLevelCode": "MD3",
              "orgLevelName": "门店",
              "accountType": 1,
              "companyId": 16,
              "province": null,
              "city": null,
              "district": null,
              "address": null,
              "lng": null,
              "lat": null,
              "parentId": 975,
              "distance": null,
              "status": true,
              "positionLevel": null,
              "role": "",
              "isLock": null,
              "validNum": null,
              "children": [{
                  "id": 977,
                  "createBy": null,
                  "createTime": "2022-05-30 08:53:48",
                  "updateBy": null,
                  "updateTime": "2022-06-15 11:46:10",
                  "isDeleted": false,
                  "orgName": "部门1",
                  "orgCode": null,
                  "orgLevelCode": "BM4",
                  "orgLevelName": "部门",
                  "accountType": 1,
                  "companyId": 16,
                  "province": null,
                  "city": null,
                  "district": null,
                  "address": null,
                  "lng": null,
                  "lat": null,
                  "parentId": 976,
                  "distance": null,
                  "status": true,
                  "positionLevel": null,
                  "role": "",
                  "isLock": null,
                  "validNum": null,
                  "children": [{
                    "id": 978,
                    "createBy": null,
                    "createTime": "2022-05-30 08:53:48",
                    "updateBy": null,
                    "updateTime": "2022-05-30 08:53:48",
                    "isDeleted": false,
                    "orgName": "岗位",
                    "orgCode": null,
                    "orgLevelCode": "GW5",
                    "orgLevelName": "岗位",
                    "accountType": null,
                    "companyId": 16,
                    "province": null,
                    "city": null,
                    "district": null,
                    "address": null,
                    "lng": null,
                    "lat": null,
                    "parentId": 977,
                    "distance": null,
                    "status": null,
                    "positionLevel": "2,3,4",
                    "role": "6",
                    "isLock": null,
                    "validNum": null,
                    "children": [],
                    "positionLevelName": "主管,副经理,经理",
                    "roleName": "施工人员",
                    "tails": {}
                  }],
                  "positionLevelName": null,
                  "roleName": null,
                  "tails": {}
                },
                {
                  "id": 979,
                  "createBy": null,
                  "createTime": "2022-05-30 10:57:51",
                  "updateBy": null,
                  "updateTime": "2022-06-15 11:46:11",
                  "isDeleted": false,
                  "orgName": "部门2",
                  "orgCode": null,
                  "orgLevelCode": "BM4",
                  "orgLevelName": "部门",
                  "accountType": null,
                  "companyId": 16,
                  "province": null,
                  "city": null,
                  "district": null,
                  "address": null,
                  "lng": null,
                  "lat": null,
                  "parentId": 976,
                  "distance": null,
                  "status": true,
                  "positionLevel": null,
                  "role": "",
                  "isLock": null,
                  "validNum": null,
                  "children": [],
                  "positionLevelName": null,
                  "roleName": null,
                  "tails": {}
                }
              ],
              "positionLevelName": null,
              "roleName": null,
              "tails": {}
            }],
            "positionLevelName": null,
            "roleName": null,
            "tails": {}
          }
        ]
      }
    },
    methods: {
      // 点击选择级联事件
      handleChange() {
        this.budgetForm.orgId = this.$refs["refSubCat"].getCheckedNodes()[0].value; //获取最后一个id
        this.budgetForm.orgName = this.$refs["refSubCat"].getCheckedNodes()[0].pathLabels.join('-'); //获取选中name
        this.budgetForm.allOrg = this.$refs["refSubCat"].getCheckedNodes()[0].path; //获取选中id
      }
    }
  }
</script>
相关文章
element中el-cascader级联 下拉选择-可单独多选(整理)
element中el-cascader级联 下拉选择-可单独多选(整理)
|
前端开发 JavaScript Java
Element-UI中Select选择器讲解(el-select详解)
案例详解Element-UI中Select选择器讲解,手把手教学!
1106 0
Element-UI中Select选择器讲解(el-select详解)
|
JavaScript 数据格式
VUE element-ui下拉菜单el-select获取label值或value的值
VUE element-ui下拉菜单el-select获取label值或value的值
2003 0
VUE element-ui下拉菜单el-select获取label值或value的值
Element el-select 选择器(下拉框)详解
本文目录 1. 用途 2. 数据绑定 2.1 固定选项 2.2 选项绑定数组 3. 功能效果 3.1 可清空选项 3.2 多选 3.3 可搜索 4. 事件响应 5. 小结
6162 0
Element el-select 选择器(下拉框)详解
|
3月前
element el-table 设置fixed导致行错乱问题
文章讨论了在使用Element UI的`el-table`组件时,设置固定列(`fixed`)导致行错乱的问题,并提供了解决方案。问题产生的原因是当表格底部有滚动条而固定列底部没有滚动条时,行无法对齐。解决办法是在表格中设置`padding-bottom`的内边距与滚动条高度相等,确保固定列和非固定列的行能够对齐。
1067 0
|
4月前
|
JavaScript 前端开发
怎样在vue中隐藏el-form-item中的值、设置输入框的值是只读
这篇文章介绍了在Vue框架中使用Element UI组件库时,如何通过v-if指令和v-model绑定来控制`el-form-item`的显示与隐藏,以及如何通过设置`readonly`属性让输入框变为只读状态。
怎样在vue中隐藏el-form-item中的值、设置输入框的值是只读
【element-ui用法】el-radio-group默认选择和数据回显问题的解决方案
【element-ui用法】el-radio-group默认选择和数据回显问题的解决方案
815 0