拆分人员回显
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
checkable
|
||||
:loading="loading"
|
||||
:tree-data="gData"
|
||||
v-model:checkedKeys="selectedKey"
|
||||
@select="onSelect"
|
||||
@check="onCheck"
|
||||
@expand="onExpand"
|
||||
@@ -69,7 +70,7 @@
|
||||
userIds: [],
|
||||
searchModel:'',
|
||||
defaultExpandedKeys: [],
|
||||
defaultCheckedKeys: []
|
||||
defaultCheckedKeys: [],
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@@ -167,6 +168,7 @@
|
||||
this.gData = res.result
|
||||
this.defaultExpandedKeys = [this.departId]
|
||||
this.defaultCheckedKeys = this.personneQuery[this.query.db_field_name + '_id'] ? this.personneQuery[this.query.db_field_name + '_id'].split(',') : []
|
||||
this.selectedKey = this.personneQuery[this.query.db_field_name + '_id'] ? this.personneQuery[this.query.db_field_name + '_id'].split(',') : []
|
||||
console.log(this.defaultCheckedKeys)
|
||||
this.treeVisible = true
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user