From 385793251c273121749a0c39027a5e8afd6d551a Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期日, 07 四月 2024 17:44:23 +0800
Subject: [PATCH] 整合代码
---
Source/ProjectWeb/src/components/dynamic-components/dynamic-tree.vue | 877 ++++++++++++++++++++++++++++++----------------------------
1 files changed, 457 insertions(+), 420 deletions(-)
diff --git a/Source/ProjectWeb/src/components/dynamic-components/dynamic-tree.vue b/Source/ProjectWeb/src/components/dynamic-components/dynamic-tree.vue
index e36cab4..30577f9 100644
--- a/Source/ProjectWeb/src/components/dynamic-components/dynamic-tree.vue
+++ b/Source/ProjectWeb/src/components/dynamic-components/dynamic-tree.vue
@@ -6,7 +6,8 @@
</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 +15,8 @@
:filter-node-method="filterNode"
highlight-current
node-key="oid"
+ @check="checkNode"
+ @current-change="changeNode"
ref="tree">
</el-tree>
</div>
@@ -40,6 +43,11 @@
type:Object,
default: {}
},
+ dataStore:{
+ //寮圭獥鏃舵寜閽墍灞炲尯鍩熼�変腑鏁版嵁
+ type:Array,
+ default: []
+ },
paramVOS:{
type:Object,
default: {}
@@ -60,7 +68,43 @@
//console.log(this.$el.clientHeight)
}
}
+ },
+ checkDatas:{
+ handler(newval) {
+ if(newval) {
+ this.$emit("setDataStore", {
+ area: this.areasName,
+ dataStore:newval
+ });
+ }
+ }
+ },
+ sourceData:{
+ handler(newval) {
+ //婧愭暟鎹湁鍙樺寲鏃跺彉鏇村綋鍓嶅尯鍩熸暟鎹�
+ console.log(this.areasName);
+ console.log(newval);
+ }
}
+ },
+ data() {
+ return {
+ filterText: '',
+ defaultProps: {
+ children: 'children',
+ label: 'text'
+ },
+ lazy:this.componentVO.treeDefineVO.loadType == 'node',
+ isMuti:true,
+ data:[],
+ checkDatas:[]
+ }
+ },
+ created() {
+ this.initData();
+ },
+ mounted() {
+ console.log(this.$el.clientHeight)
},
methods: {
filterNode(value, data) {
@@ -112,7 +156,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,
@@ -189,63 +290,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",
@@ -283,7 +327,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,
@@ -296,63 +682,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": {
@@ -410,291 +739,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": {
@@ -1965,25 +2009,18 @@
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>
--
Gitblit v1.9.3