资料中心类型修改

This commit is contained in:
zyx.net
2022-11-28 14:11:28 +08:00
parent cd48a3ae49
commit 578fbc6bf4
@@ -68,8 +68,8 @@
<!-- v-model="dataCenterSearch.dataType"-->
<!-- placeholder="请输入类型"-->
<!-- ></el-input>-->
<el-select ref="treeSelect" class="tree-select" v-model="dataCenterSearch.dataType" value-key="id" placeholder="请选择类型">
<el-option class="tree-select-option" :value="dataCenterSearch.dataType" :label="dataCenterSearch.treeName">
<el-select ref="treeSelect" class="tree-select" v-model="dataCenterSearch.treeId" value-key="id" placeholder="请选择类型">
<el-option class="tree-select-option" :value="dataCenterSearch.treeId" :label="dataCenterSearch.treeName">
<el-tree
ref="tree"
node-key="id"
@@ -305,7 +305,7 @@
class="add-form-item"
>
<el-select ref="treeSelect" class="tree-select" v-model="attributeEO.dataType" value-key="id" placeholder="请选择类型">
<el-option class="tree-select-option" :value="attributeEO.dataType" :label="attributeEO.dataTypeName">
<el-option class="tree-select-option" :value="attributeEO.dataType" :label="attributeEO.dataType">
<el-tree
ref="tree"
node-key="id"
@@ -454,6 +454,7 @@ export default {
dataCenterSearch: {
dataType: '',
dataTitle: '',
treeId: '',
dataUploadTime: [],
page: 1,
pageSize: this.$store.getters.userInfo.configContent,
@@ -552,20 +553,20 @@ export default {
_this: this
}, res => {
if(res.ok){
this.attributeEO.dataType = res.data.id
this.attributeEO.dataTypeName = res.data.name
// this.attributeEO.dataType = res.data.id
this.attributeEO.dataType = res.data.name
}
})
},
selectTreeClick2(treeNode) {
this.dataCenterSearch.dataType = treeNode.id === '1' ? '' : treeNode.id
this.dataCenterSearch.treeId = treeNode.id === '1' ? '' : treeNode.id
this.dataCenterSearch.treeName = treeNode.name
},
selectTreeClick3(treeNode) {
this.attributeEO.dataType = treeNode.id === '1' ? '' : treeNode.id
this.attributeEO.dataTypeName = treeNode.name
// this.attributeEO.dataType = treeNode.id === '1' ? '' : treeNode.id
this.attributeEO.dataType = treeNode.name
},
// 树节点鼠标移入移出