From cd48a3ae490b683e952c09da004286b3394eca4c Mon Sep 17 00:00:00 2001 From: "zyx.net" Date: Mon, 28 Nov 2022 13:52:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E6=96=99=E4=B8=AD=E5=BF=83=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../regulatoryRepository/dataCenter/index.vue | 21 ++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/src/pages/regulatoryRepository/dataCenter/index.vue b/src/pages/regulatoryRepository/dataCenter/index.vue index ef52ccc87..a80190b1a 100644 --- a/src/pages/regulatoryRepository/dataCenter/index.vue +++ b/src/pages/regulatoryRepository/dataCenter/index.vue @@ -80,7 +80,7 @@ :data="treeList" :default-expanded-keys="['1']" highlight-current - @node-click="selectTreeClick" + @node-click="selectTreeClick2" :filter-node-method="filterNode"> @@ -544,12 +544,23 @@ export default { this.searchInfo() }, selectTreeClick(treeNode) { + this.attributeEO.treeId = treeNode.id === '1' ? '' : treeNode.id + this.attributeEO.treeName = treeNode.name + this.$http.get('fileMaterialCenter/zlTree/queryTree', { + treeId : this.attributeEO.treeId + }, { + _this: this + }, res => { + if(res.ok){ + this.attributeEO.dataType = res.data.id + this.attributeEO.dataTypeName = res.data.name + } + }) + + }, + selectTreeClick2(treeNode) { this.dataCenterSearch.dataType = treeNode.id === '1' ? '' : treeNode.id this.dataCenterSearch.treeName = treeNode.name - this.attributeEO.treeId = treeNode.id === '1' ? '' : treeNode.id - this.attributeEO.dataType = treeNode.id === '1' ? '' : treeNode.id - this.attributeEO.treeName = treeNode.name - this.attributeEO.dataTypeName = treeNode.name }, selectTreeClick3(treeNode) {