资料中心类型修改

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"--> <!-- v-model="dataCenterSearch.dataType"-->
<!-- placeholder="请输入类型"--> <!-- placeholder="请输入类型"-->
<!-- ></el-input>--> <!-- ></el-input>-->
<el-select ref="treeSelect" class="tree-select" v-model="dataCenterSearch.dataType" value-key="id" placeholder="请选择类型"> <el-select ref="treeSelect" class="tree-select" v-model="dataCenterSearch.treeId" value-key="id" placeholder="请选择类型">
<el-option class="tree-select-option" :value="dataCenterSearch.dataType" :label="dataCenterSearch.treeName"> <el-option class="tree-select-option" :value="dataCenterSearch.treeId" :label="dataCenterSearch.treeName">
<el-tree <el-tree
ref="tree" ref="tree"
node-key="id" node-key="id"
@@ -305,7 +305,7 @@
class="add-form-item" class="add-form-item"
> >
<el-select ref="treeSelect" class="tree-select" v-model="attributeEO.dataType" value-key="id" placeholder="请选择类型"> <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 <el-tree
ref="tree" ref="tree"
node-key="id" node-key="id"
@@ -454,6 +454,7 @@ export default {
dataCenterSearch: { dataCenterSearch: {
dataType: '', dataType: '',
dataTitle: '', dataTitle: '',
treeId: '',
dataUploadTime: [], dataUploadTime: [],
page: 1, page: 1,
pageSize: this.$store.getters.userInfo.configContent, pageSize: this.$store.getters.userInfo.configContent,
@@ -552,20 +553,20 @@ export default {
_this: this _this: this
}, res => { }, res => {
if(res.ok){ if(res.ok){
this.attributeEO.dataType = res.data.id // this.attributeEO.dataType = res.data.id
this.attributeEO.dataTypeName = res.data.name this.attributeEO.dataType = res.data.name
} }
}) })
}, },
selectTreeClick2(treeNode) { selectTreeClick2(treeNode) {
this.dataCenterSearch.dataType = treeNode.id === '1' ? '' : treeNode.id this.dataCenterSearch.treeId = treeNode.id === '1' ? '' : treeNode.id
this.dataCenterSearch.treeName = treeNode.name this.dataCenterSearch.treeName = treeNode.name
}, },
selectTreeClick3(treeNode) { selectTreeClick3(treeNode) {
this.attributeEO.dataType = treeNode.id === '1' ? '' : treeNode.id // this.attributeEO.dataType = treeNode.id === '1' ? '' : treeNode.id
this.attributeEO.dataTypeName = treeNode.name this.attributeEO.dataType = treeNode.name
}, },
// 树节点鼠标移入移出 // 树节点鼠标移入移出