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) {