ludc
2024-04-09 fecc7305a48f8ce6e283434718da33e143885c75
Source/ProjectWeb/src/components/dynamic-components/dynamic-tree.vue
@@ -1,12 +1,14 @@
<template>
  <div class="UI-dynamic" :id="'UI-dynamic-'+areasName+componentVO.oid">
    <dynamic-button v-if="componentVO.buttons && componentVO.buttons.length>0" :butttonList="componentVO.buttons" :selectList="checkDatas" type="tree" style="margin-bottom: 10px;"></dynamic-button>
    <el-input
      placeholder="输入关键字进行过滤"
      v-model="filterText">
    </el-input>
    <el-tree
      class="filter-tree"
      show-checkbox
      :show-checkbox="isMuti"
      :check-on-click-node="true"
      :lazy="lazy"
      :data="data"
      :load="loadNode"
@@ -14,6 +16,8 @@
      :filter-node-method="filterNode"
      highlight-current
      node-key="oid"
      @check="checkNode"
      @current-change="changeNode"
      ref="tree">
    </el-tree>
  </div>
@@ -40,6 +44,11 @@
      type:Object,
      default: {}
    },
    dataStore:{
      //弹窗时按钮所属区域选中数据
      type:Array,
      default: []
    },
    paramVOS:{
      type:Object,
      default: {}
@@ -57,8 +66,46 @@
    isShow:{
      handler(newval) {
        if(newval) {
          console.log(this.$el.clientHeight)}
          //console.log(this.$el.clientHeight)
        }
      }
    },
    checkDatas:{
      handler(newval) {
        if(newval) {
          this.$emit("setDataStore", {
            area: this.areasName,
            dataStore:newval
          });
        }
      }
    },
    sourceData:{
      handler(newval) {
        //源数据有变化时变更当前区域数据
        this.initData();
      }
    }
  },
  data() {
    return {
      filterText: '',
      defaultProps: {
        children: 'children',
        label: 'text'
      },
      lazy:this.componentVO.treeDefineVO.loadType == 'node',
      isMuti:false,
      data:[],
      checkDatas:[]
    }
  },
  created() {
    this.initData();
  },
  mounted() {
    if(this.componentVO.buttons && this.componentVO.buttons.length>0){
      this.$children[2].$el.style.height = 'calc(100% - 50px - '+this.$children[0].$el.clientHeight+'px - 10px)';
    }
  },
  methods: {
@@ -111,7 +158,64 @@
            "ts": "2021-12-13 20:41:14.747"
          },
          "checked": false,
          "children": [],
          "children": [
            {
              "attributes": {
                "lastmodifier": "1",
                "revisionseq": "1",
                "versionvalue": "",
                "querycondition": "",
                "description": "",
                "oid": "8D2E9F26-06C9-454D-8F5E-D95FD9DEA867",
                "versionseq": "1",
                "checkinby": "",
                "revisionrule": "",
                "lctid": "ObjectLC",
                "lcstatus_text": "编辑中",
                "id": "",
                "owner": "1",
                "checkoutby": "",
                "workcontextoid": "",
                "creator": "1",
                "createtime": "2021-12-13 22:16:58.87",
                "isfirstv": "1",
                "folderoid": "CFA35842-29E6-45D0-99B2-C7F19561E2F1",
                "lastmodifier_name": "测试",
                "revisionoid": "D1A22FC3-039E-49D6-B391-465BE17B3D46",
                "btmname": "folder",
                "checkouttime": "",
                "revisionvalue": "-",
                "sequence": "1",
                "versionrule": "0",
                "name": "常用术语",
                "islastr": "1",
                "lastmodifytime": "2022-01-06 14:29:56.841",
                "copyfromversion": "",
                "creator_name": "测试",
                "nameoid": "335A13B8-59F8-461D-A549-82543EF2B867",
                "lcstatus": "Editing",
                "secretgrade": "2",
                "islastv": "1",
                "checkintime": "",
                "folderbusinesstype": "常用术语",
                "isfirstr": "1",
                "ts": "2022-01-06 14:29:56.841"
              },
              "checked": false,
              "children": [],
              "expanded": false,
              "href": null,
              "icon": null,
              "iconCls": null,
              "index": "2",
              "leaf": true,
              "oid": "8D2E9F26-06C9-454D-8F5E-D95FD9DEA867",
              "parentBtmName": null,
              "parentId": "",
              "parentName": null,
              "showCheckbox": false,
              "text": "常用术语[常用术语]"
            }],
          "expanded": false,
          "href": null,
          "icon": null,
@@ -188,63 +292,6 @@
            "revisionseq": "1",
            "versionvalue": "",
            "querycondition": "",
            "description": "",
            "oid": "8D2E9F26-06C9-454D-8F5E-D95FD9DEA867",
            "versionseq": "1",
            "checkinby": "",
            "revisionrule": "",
            "lctid": "ObjectLC",
            "lcstatus_text": "编辑中",
            "id": "",
            "owner": "1",
            "checkoutby": "",
            "workcontextoid": "",
            "creator": "1",
            "createtime": "2021-12-13 22:16:58.87",
            "isfirstv": "1",
            "folderoid": "CFA35842-29E6-45D0-99B2-C7F19561E2F1",
            "lastmodifier_name": "测试",
            "revisionoid": "D1A22FC3-039E-49D6-B391-465BE17B3D46",
            "btmname": "folder",
            "checkouttime": "",
            "revisionvalue": "-",
            "sequence": "1",
            "versionrule": "0",
            "name": "常用术语",
            "islastr": "1",
            "lastmodifytime": "2022-01-06 14:29:56.841",
            "copyfromversion": "",
            "creator_name": "测试",
            "nameoid": "335A13B8-59F8-461D-A549-82543EF2B867",
            "lcstatus": "Editing",
            "secretgrade": "2",
            "islastv": "1",
            "checkintime": "",
            "folderbusinesstype": "常用术语",
            "isfirstr": "1",
            "ts": "2022-01-06 14:29:56.841"
          },
          "checked": false,
          "children": [],
          "expanded": false,
          "href": null,
          "icon": null,
          "iconCls": null,
          "index": "2",
          "leaf": true,
          "oid": "8D2E9F26-06C9-454D-8F5E-D95FD9DEA867",
          "parentBtmName": null,
          "parentId": "",
          "parentName": null,
          "showCheckbox": false,
          "text": "常用术语[常用术语]"
        },
        {
          "attributes": {
            "lastmodifier": "1",
            "revisionseq": "1",
            "versionvalue": "",
            "querycondition": "",
            "description": "1111222",
            "oid": "C8072146-781B-41F1-81AF-48C493492D9B",
            "versionseq": "1",
@@ -282,7 +329,349 @@
            "ts": "2021-12-13 22:19:43.066"
          },
          "checked": false,
          "children": [],
          "children": [
            {
              "attributes": {
                "lastmodifier": "1",
                "revisionseq": "1",
                "versionvalue": "",
                "querycondition": "",
                "description": "222",
                "oid": "59F14C83-1345-4A7D-8225-0B09DE61400B",
                "versionseq": "1",
                "checkinby": "",
                "revisionrule": "",
                "lctid": "ObjectLC",
                "lcstatus_text": "编辑中",
                "id": "",
                "owner": "1",
                "checkoutby": "",
                "workcontextoid": "",
                "creator": "1",
                "createtime": "2021-12-13 22:42:24.901",
                "isfirstv": "1",
                "folderoid": "0C6A3624-4A90-45E1-BEB2-75384E542613",
                "lastmodifier_name": "测试",
                "revisionoid": "AF87EA19-5651-4920-8D73-4015962C082C",
                "btmname": "folder",
                "checkouttime": "",
                "revisionvalue": "-",
                "sequence": "1",
                "versionrule": "0",
                "name": "技术总结",
                "islastr": "1",
                "lastmodifytime": "2021-12-13 22:42:24.901",
                "copyfromversion": "",
                "creator_name": "测试",
                "nameoid": "95AFAAD8-B9B5-44A2-BAE2-12FAB2643193",
                "lcstatus": "Editing",
                "secretgrade": "2",
                "islastv": "1",
                "checkintime": "",
                "folderbusinesstype": "技术总结",
                "isfirstr": "1",
                "ts": "2021-12-13 22:42:24.901"
              },
              "checked": false,
              "children": [
                {
                  "attributes": {
                    "lastmodifier": "1",
                    "revisionseq": "1",
                    "versionvalue": "",
                    "querycondition": "",
                    "description": "",
                    "oid": "87A6D912-FDCA-496B-AA4E-FBDE9858853B",
                    "versionseq": "1",
                    "checkinby": "",
                    "revisionrule": "",
                    "lctid": "ObjectLC",
                    "lcstatus_text": "编辑中",
                    "id": "",
                    "owner": "1",
                    "checkoutby": "",
                    "workcontextoid": "",
                    "creator": "1",
                    "createtime": "2021-12-09 13:53:26.939",
                    "isfirstv": "1",
                    "folderoid": "",
                    "lastmodifier_name": "测试",
                    "revisionoid": "69E38F00-01AE-4E2C-97DC-7C412C521959",
                    "btmname": "folder",
                    "checkouttime": "",
                    "revisionvalue": "-",
                    "sequence": "1",
                    "versionrule": "0",
                    "name": "资源库",
                    "islastr": "1",
                    "lastmodifytime": "2021-12-09 13:53:26.939",
                    "copyfromversion": "",
                    "creator_name": "测试",
                    "nameoid": "60AD4F1B-D2E6-4C68-BC16-0F4052737D92",
                    "lcstatus": "Editing",
                    "secretgrade": "2",
                    "islastv": "1",
                    "checkintime": "",
                    "folderbusinesstype": "resourcelib",
                    "isfirstr": "1",
                    "ts": "2021-12-09 13:53:26.939"
                  },
                  "checked": false,
                  "children": [],
                  "expanded": false,
                  "href": null,
                  "icon": null,
                  "iconCls": null,
                  "index": "7",
                  "leaf": true,
                  "oid": "87A6D912-FDCA-496B-AA4E-FBDE9858853B",
                  "parentBtmName": null,
                  "parentId": "",
                  "parentName": null,
                  "showCheckbox": false,
                  "text": "资源库[resourcelib]"
                },
                {
                  "attributes": {
                    "lastmodifier": "1",
                    "revisionseq": "1",
                    "versionvalue": "",
                    "querycondition": "",
                    "description": "",
                    "oid": "42B3DADB-5B19-478F-AE8F-C808151A9247",
                    "versionseq": "1",
                    "checkinby": "",
                    "revisionrule": "",
                    "lctid": "ObjectLC",
                    "lcstatus_text": "编辑中",
                    "id": "",
                    "owner": "1",
                    "checkoutby": "",
                    "workcontextoid": "",
                    "creator": "1",
                    "createtime": "2021-12-09 13:53:50.744",
                    "isfirstv": "1",
                    "folderoid": "87A6D912-FDCA-496B-AA4E-FBDE9858853B",
                    "lastmodifier_name": "测试",
                    "revisionoid": "CA316DAC-65D0-4D37-ACCE-CD61ABB9C267",
                    "btmname": "folder",
                    "checkouttime": "",
                    "revisionvalue": "-",
                    "sequence": "1",
                    "versionrule": "0",
                    "name": "工作单元",
                    "islastr": "1",
                    "lastmodifytime": "2021-12-09 13:53:50.744",
                    "copyfromversion": "",
                    "creator_name": "测试",
                    "nameoid": "8FFF9F4E-9567-4830-9C4B-D3E882DBFCE1",
                    "lcstatus": "Editing",
                    "secretgrade": "2",
                    "islastv": "1",
                    "checkintime": "",
                    "folderbusinesstype": "workunit",
                    "isfirstr": "1",
                    "ts": "2021-12-09 13:53:50.744"
                  },
                  "checked": false,
                  "children": [],
                  "expanded": false,
                  "href": null,
                  "icon": null,
                  "iconCls": null,
                  "index": "8",
                  "leaf": true,
                  "oid": "42B3DADB-5B19-478F-AE8F-C808151A9247",
                  "parentBtmName": null,
                  "parentId": "",
                  "parentName": null,
                  "showCheckbox": false,
                  "text": "工作单元[workunit]"
                },
                {
                  "attributes": {
                    "lastmodifier": "1",
                    "revisionseq": "1",
                    "versionvalue": "",
                    "querycondition": "",
                    "description": "",
                    "oid": "411E568F-AE64-4C64-9BC2-8E6E566DE06B",
                    "versionseq": "1",
                    "checkinby": "",
                    "revisionrule": "",
                    "lctid": "ObjectLC",
                    "lcstatus_text": "编辑中",
                    "id": "",
                    "owner": "1",
                    "checkoutby": "",
                    "workcontextoid": "",
                    "creator": "1",
                    "createtime": "2021-12-30 14:06:43.618",
                    "isfirstv": "1",
                    "folderoid": "87A6D912-FDCA-496B-AA4E-FBDE9858853B",
                    "lastmodifier_name": "测试",
                    "revisionoid": "459996CD-C952-47C8-A2CC-8E8A42179364",
                    "btmname": "folder",
                    "checkouttime": "",
                    "revisionvalue": "-",
                    "sequence": "1",
                    "versionrule": "0",
                    "name": "设备",
                    "islastr": "1",
                    "lastmodifytime": "2021-12-30 14:06:43.618",
                    "copyfromversion": "",
                    "creator_name": "测试",
                    "nameoid": "E7FA6D19-62BE-4ED4-9D37-4312F34C1B48",
                    "lcstatus": "Editing",
                    "secretgrade": "2",
                    "islastv": "1",
                    "checkintime": "",
                    "folderbusinesstype": "machine",
                    "isfirstr": "1",
                    "ts": "2021-12-30 14:06:43.618"
                  },
                  "checked": false,
                  "children": [],
                  "expanded": false,
                  "href": null,
                  "icon": null,
                  "iconCls": null,
                  "index": "9",
                  "leaf": true,
                  "oid": "411E568F-AE64-4C64-9BC2-8E6E566DE06B",
                  "parentBtmName": null,
                  "parentId": "",
                  "parentName": null,
                  "showCheckbox": false,
                  "text": "设备[machine]"
                },
                {
                  "attributes": {
                    "lastmodifier": "1",
                    "revisionseq": "1",
                    "versionvalue": "",
                    "querycondition": "",
                    "description": "",
                    "oid": "3B582AE0-9A60-4E52-9806-F8729ED5A4F0",
                    "versionseq": "1",
                    "checkinby": "",
                    "revisionrule": "",
                    "lctid": "ObjectLC",
                    "lcstatus_text": "编辑中",
                    "id": "",
                    "owner": "1",
                    "checkoutby": "",
                    "workcontextoid": "",
                    "creator": "1",
                    "createtime": "2021-12-30 14:07:20.736",
                    "isfirstv": "1",
                    "folderoid": "87A6D912-FDCA-496B-AA4E-FBDE9858853B",
                    "lastmodifier_name": "测试",
                    "revisionoid": "877DBFF6-A63A-435A-99FC-DF54540387BA",
                    "btmname": "folder",
                    "checkouttime": "",
                    "revisionvalue": "-",
                    "sequence": "1",
                    "versionrule": "0",
                    "name": "工装",
                    "islastr": "1",
                    "lastmodifytime": "2021-12-30 14:07:20.736",
                    "copyfromversion": "",
                    "creator_name": "测试",
                    "nameoid": "0E53FBDB-01DB-4B18-9A2D-30C30AC2E6BF",
                    "lcstatus": "Editing",
                    "secretgrade": "2",
                    "islastv": "1",
                    "checkintime": "",
                    "folderbusinesstype": "equipment",
                    "isfirstr": "1",
                    "ts": "2021-12-30 14:07:20.736"
                  },
                  "checked": false,
                  "children": [],
                  "expanded": false,
                  "href": null,
                  "icon": null,
                  "iconCls": null,
                  "index": "10",
                  "leaf": true,
                  "oid": "3B582AE0-9A60-4E52-9806-F8729ED5A4F0",
                  "parentBtmName": null,
                  "parentId": "",
                  "parentName": null,
                  "showCheckbox": false,
                  "text": "工装[equipment]"
                },],
              "expanded": false,
              "href": null,
              "icon": null,
              "iconCls": null,
              "index": "4",
              "leaf": true,
              "oid": "59F14C83-1345-4A7D-8225-0B09DE61400B",
              "parentBtmName": null,
              "parentId": "",
              "parentName": null,
              "showCheckbox": false,
              "text": "技术总结[技术总结]"
            },
            {
              "attributes": {
                "lastmodifier": "1",
                "revisionseq": "1",
                "versionvalue": "",
                "querycondition": "",
                "description": "",
                "oid": "1ADD9030-2F3E-4363-84B9-31F08C5C12AB",
                "versionseq": "1",
                "checkinby": "",
                "revisionrule": "",
                "lctid": "ObjectLC",
                "lcstatus_text": "编辑中",
                "id": "",
                "owner": "1",
                "checkoutby": "",
                "workcontextoid": "5611E481-157B-4799-914F-5938A5BC1FA9",
                "creator": "1",
                "createtime": "2021-12-13 22:48:45.055",
                "isfirstv": "1",
                "folderoid": "712FF8AC-48CC-45DB-A79C-7F783B4AD8B1",
                "lastmodifier_name": "测试",
                "revisionoid": "F5862E44-372B-4C46-96F6-AEFFE1B63B6D",
                "btmname": "folder",
                "checkouttime": "",
                "revisionvalue": "-",
                "sequence": "1",
                "versionrule": "0",
                "name": "技术文件",
                "islastr": "1",
                "lastmodifytime": "2021-12-13 22:48:45.055",
                "copyfromversion": "",
                "creator_name": "测试",
                "nameoid": "34A45F92-2DC3-481C-82F2-B2F916CEDE2C",
                "lcstatus": "Editing",
                "secretgrade": "2",
                "islastv": "1",
                "checkintime": "",
                "folderbusinesstype": "技术文件",
                "isfirstr": "1",
                "ts": "2021-12-13 22:48:45.055"
              },
              "checked": false,
              "children": [],
              "expanded": false,
              "href": null,
              "icon": null,
              "iconCls": null,
              "index": "6",
              "leaf": true,
              "oid": "1ADD9030-2F3E-4363-84B9-31F08C5C12AB",
              "parentBtmName": null,
              "parentId": "",
              "parentName": null,
              "showCheckbox": false,
              "text": "技术文件[技术文件]"
            },],
          "expanded": false,
          "href": null,
          "icon": null,
@@ -295,63 +684,6 @@
          "parentName": null,
          "showCheckbox": false,
          "text": "工艺说明书[工艺说明书]"
        },
        {
          "attributes": {
            "lastmodifier": "1",
            "revisionseq": "1",
            "versionvalue": "",
            "querycondition": "",
            "description": "222",
            "oid": "59F14C83-1345-4A7D-8225-0B09DE61400B",
            "versionseq": "1",
            "checkinby": "",
            "revisionrule": "",
            "lctid": "ObjectLC",
            "lcstatus_text": "编辑中",
            "id": "",
            "owner": "1",
            "checkoutby": "",
            "workcontextoid": "",
            "creator": "1",
            "createtime": "2021-12-13 22:42:24.901",
            "isfirstv": "1",
            "folderoid": "0C6A3624-4A90-45E1-BEB2-75384E542613",
            "lastmodifier_name": "测试",
            "revisionoid": "AF87EA19-5651-4920-8D73-4015962C082C",
            "btmname": "folder",
            "checkouttime": "",
            "revisionvalue": "-",
            "sequence": "1",
            "versionrule": "0",
            "name": "技术总结",
            "islastr": "1",
            "lastmodifytime": "2021-12-13 22:42:24.901",
            "copyfromversion": "",
            "creator_name": "测试",
            "nameoid": "95AFAAD8-B9B5-44A2-BAE2-12FAB2643193",
            "lcstatus": "Editing",
            "secretgrade": "2",
            "islastv": "1",
            "checkintime": "",
            "folderbusinesstype": "技术总结",
            "isfirstr": "1",
            "ts": "2021-12-13 22:42:24.901"
          },
          "checked": false,
          "children": [],
          "expanded": false,
          "href": null,
          "icon": null,
          "iconCls": null,
          "index": "4",
          "leaf": true,
          "oid": "59F14C83-1345-4A7D-8225-0B09DE61400B",
          "parentBtmName": null,
          "parentId": "",
          "parentName": null,
          "showCheckbox": false,
          "text": "技术总结[技术总结]"
        },
        {
          "attributes": {
@@ -409,291 +741,6 @@
          "parentName": null,
          "showCheckbox": false,
          "text": "HJSJ1155[技术文件]"
        },
        {
          "attributes": {
            "lastmodifier": "1",
            "revisionseq": "1",
            "versionvalue": "",
            "querycondition": "",
            "description": "",
            "oid": "1ADD9030-2F3E-4363-84B9-31F08C5C12AB",
            "versionseq": "1",
            "checkinby": "",
            "revisionrule": "",
            "lctid": "ObjectLC",
            "lcstatus_text": "编辑中",
            "id": "",
            "owner": "1",
            "checkoutby": "",
            "workcontextoid": "5611E481-157B-4799-914F-5938A5BC1FA9",
            "creator": "1",
            "createtime": "2021-12-13 22:48:45.055",
            "isfirstv": "1",
            "folderoid": "712FF8AC-48CC-45DB-A79C-7F783B4AD8B1",
            "lastmodifier_name": "测试",
            "revisionoid": "F5862E44-372B-4C46-96F6-AEFFE1B63B6D",
            "btmname": "folder",
            "checkouttime": "",
            "revisionvalue": "-",
            "sequence": "1",
            "versionrule": "0",
            "name": "技术文件",
            "islastr": "1",
            "lastmodifytime": "2021-12-13 22:48:45.055",
            "copyfromversion": "",
            "creator_name": "测试",
            "nameoid": "34A45F92-2DC3-481C-82F2-B2F916CEDE2C",
            "lcstatus": "Editing",
            "secretgrade": "2",
            "islastv": "1",
            "checkintime": "",
            "folderbusinesstype": "技术文件",
            "isfirstr": "1",
            "ts": "2021-12-13 22:48:45.055"
          },
          "checked": false,
          "children": [],
          "expanded": false,
          "href": null,
          "icon": null,
          "iconCls": null,
          "index": "6",
          "leaf": true,
          "oid": "1ADD9030-2F3E-4363-84B9-31F08C5C12AB",
          "parentBtmName": null,
          "parentId": "",
          "parentName": null,
          "showCheckbox": false,
          "text": "技术文件[技术文件]"
        },
        {
          "attributes": {
            "lastmodifier": "1",
            "revisionseq": "1",
            "versionvalue": "",
            "querycondition": "",
            "description": "",
            "oid": "87A6D912-FDCA-496B-AA4E-FBDE9858853B",
            "versionseq": "1",
            "checkinby": "",
            "revisionrule": "",
            "lctid": "ObjectLC",
            "lcstatus_text": "编辑中",
            "id": "",
            "owner": "1",
            "checkoutby": "",
            "workcontextoid": "",
            "creator": "1",
            "createtime": "2021-12-09 13:53:26.939",
            "isfirstv": "1",
            "folderoid": "",
            "lastmodifier_name": "测试",
            "revisionoid": "69E38F00-01AE-4E2C-97DC-7C412C521959",
            "btmname": "folder",
            "checkouttime": "",
            "revisionvalue": "-",
            "sequence": "1",
            "versionrule": "0",
            "name": "资源库",
            "islastr": "1",
            "lastmodifytime": "2021-12-09 13:53:26.939",
            "copyfromversion": "",
            "creator_name": "测试",
            "nameoid": "60AD4F1B-D2E6-4C68-BC16-0F4052737D92",
            "lcstatus": "Editing",
            "secretgrade": "2",
            "islastv": "1",
            "checkintime": "",
            "folderbusinesstype": "resourcelib",
            "isfirstr": "1",
            "ts": "2021-12-09 13:53:26.939"
          },
          "checked": false,
          "children": [],
          "expanded": false,
          "href": null,
          "icon": null,
          "iconCls": null,
          "index": "7",
          "leaf": true,
          "oid": "87A6D912-FDCA-496B-AA4E-FBDE9858853B",
          "parentBtmName": null,
          "parentId": "",
          "parentName": null,
          "showCheckbox": false,
          "text": "资源库[resourcelib]"
        },
        {
          "attributes": {
            "lastmodifier": "1",
            "revisionseq": "1",
            "versionvalue": "",
            "querycondition": "",
            "description": "",
            "oid": "42B3DADB-5B19-478F-AE8F-C808151A9247",
            "versionseq": "1",
            "checkinby": "",
            "revisionrule": "",
            "lctid": "ObjectLC",
            "lcstatus_text": "编辑中",
            "id": "",
            "owner": "1",
            "checkoutby": "",
            "workcontextoid": "",
            "creator": "1",
            "createtime": "2021-12-09 13:53:50.744",
            "isfirstv": "1",
            "folderoid": "87A6D912-FDCA-496B-AA4E-FBDE9858853B",
            "lastmodifier_name": "测试",
            "revisionoid": "CA316DAC-65D0-4D37-ACCE-CD61ABB9C267",
            "btmname": "folder",
            "checkouttime": "",
            "revisionvalue": "-",
            "sequence": "1",
            "versionrule": "0",
            "name": "工作单元",
            "islastr": "1",
            "lastmodifytime": "2021-12-09 13:53:50.744",
            "copyfromversion": "",
            "creator_name": "测试",
            "nameoid": "8FFF9F4E-9567-4830-9C4B-D3E882DBFCE1",
            "lcstatus": "Editing",
            "secretgrade": "2",
            "islastv": "1",
            "checkintime": "",
            "folderbusinesstype": "workunit",
            "isfirstr": "1",
            "ts": "2021-12-09 13:53:50.744"
          },
          "checked": false,
          "children": [],
          "expanded": false,
          "href": null,
          "icon": null,
          "iconCls": null,
          "index": "8",
          "leaf": true,
          "oid": "42B3DADB-5B19-478F-AE8F-C808151A9247",
          "parentBtmName": null,
          "parentId": "",
          "parentName": null,
          "showCheckbox": false,
          "text": "工作单元[workunit]"
        },
        {
          "attributes": {
            "lastmodifier": "1",
            "revisionseq": "1",
            "versionvalue": "",
            "querycondition": "",
            "description": "",
            "oid": "411E568F-AE64-4C64-9BC2-8E6E566DE06B",
            "versionseq": "1",
            "checkinby": "",
            "revisionrule": "",
            "lctid": "ObjectLC",
            "lcstatus_text": "编辑中",
            "id": "",
            "owner": "1",
            "checkoutby": "",
            "workcontextoid": "",
            "creator": "1",
            "createtime": "2021-12-30 14:06:43.618",
            "isfirstv": "1",
            "folderoid": "87A6D912-FDCA-496B-AA4E-FBDE9858853B",
            "lastmodifier_name": "测试",
            "revisionoid": "459996CD-C952-47C8-A2CC-8E8A42179364",
            "btmname": "folder",
            "checkouttime": "",
            "revisionvalue": "-",
            "sequence": "1",
            "versionrule": "0",
            "name": "设备",
            "islastr": "1",
            "lastmodifytime": "2021-12-30 14:06:43.618",
            "copyfromversion": "",
            "creator_name": "测试",
            "nameoid": "E7FA6D19-62BE-4ED4-9D37-4312F34C1B48",
            "lcstatus": "Editing",
            "secretgrade": "2",
            "islastv": "1",
            "checkintime": "",
            "folderbusinesstype": "machine",
            "isfirstr": "1",
            "ts": "2021-12-30 14:06:43.618"
          },
          "checked": false,
          "children": [],
          "expanded": false,
          "href": null,
          "icon": null,
          "iconCls": null,
          "index": "9",
          "leaf": true,
          "oid": "411E568F-AE64-4C64-9BC2-8E6E566DE06B",
          "parentBtmName": null,
          "parentId": "",
          "parentName": null,
          "showCheckbox": false,
          "text": "设备[machine]"
        },
        {
          "attributes": {
            "lastmodifier": "1",
            "revisionseq": "1",
            "versionvalue": "",
            "querycondition": "",
            "description": "",
            "oid": "3B582AE0-9A60-4E52-9806-F8729ED5A4F0",
            "versionseq": "1",
            "checkinby": "",
            "revisionrule": "",
            "lctid": "ObjectLC",
            "lcstatus_text": "编辑中",
            "id": "",
            "owner": "1",
            "checkoutby": "",
            "workcontextoid": "",
            "creator": "1",
            "createtime": "2021-12-30 14:07:20.736",
            "isfirstv": "1",
            "folderoid": "87A6D912-FDCA-496B-AA4E-FBDE9858853B",
            "lastmodifier_name": "测试",
            "revisionoid": "877DBFF6-A63A-435A-99FC-DF54540387BA",
            "btmname": "folder",
            "checkouttime": "",
            "revisionvalue": "-",
            "sequence": "1",
            "versionrule": "0",
            "name": "工装",
            "islastr": "1",
            "lastmodifytime": "2021-12-30 14:07:20.736",
            "copyfromversion": "",
            "creator_name": "测试",
            "nameoid": "0E53FBDB-01DB-4B18-9A2D-30C30AC2E6BF",
            "lcstatus": "Editing",
            "secretgrade": "2",
            "islastv": "1",
            "checkintime": "",
            "folderbusinesstype": "equipment",
            "isfirstr": "1",
            "ts": "2021-12-30 14:07:20.736"
          },
          "checked": false,
          "children": [],
          "expanded": false,
          "href": null,
          "icon": null,
          "iconCls": null,
          "index": "10",
          "leaf": true,
          "oid": "3B582AE0-9A60-4E52-9806-F8729ED5A4F0",
          "parentBtmName": null,
          "parentId": "",
          "parentName": null,
          "showCheckbox": false,
          "text": "工装[equipment]"
        },
        {
          "attributes": {
@@ -1955,34 +2002,22 @@
      //逐级加载
      const parentOid = (node.level === 0) ? 0 : node.data.oid;
      setTimeout(() => {
        const data = [{
          name: 'leaf',
          leaf: true
        }, {
          name: 'zone'
        }];
        const data = this.data;
        resolve(data);
      }, 500);
    }
    },
    checkNode(checkedNode, checkedData){
      if (this.isMuti) {
        this.checkDatas=checkedData.checkedNodes;
      }
    },
    changeNode(data,node) {
      if (!this.isMuti) {
        this.checkDatas=[data];
      }
    },
  },
  data() {
    return {
      filterText: '',
      defaultProps: {
        children: 'children',
        label: 'text'
      },
      lazy:this.componentVO.treeDefineVO.loadType == 'node',
      data:[]
    }
  },
  created() {
    this.initData();
  },
  mounted() {
    console.log(this.$el.clientHeight)
  }
}
</script>