修改搜索中心的问题

This commit is contained in:
qq787203167
2022-03-25 14:43:09 +08:00
parent b90ea6a981
commit c0490c837e
4 changed files with 68 additions and 25 deletions
@@ -24,6 +24,8 @@
:tree-data="gData"
@select="onSelect"
@check="onCheck"
@expand="onExpand"
:defaultExpandedKeys="defaultExpandedKeys"
>
</a-tree>
</div>
@@ -49,6 +51,9 @@
expandedKeys:[],
visible: false,
confirmLoading:false,
departId:'',
selectedKey: [],
userIds:[],
}
},
mounted() {
@@ -56,13 +61,16 @@
},
methods:{
standardClick() {
this.departId = ''
this.userIds = []
this.visible = true
},
onSelect(selectedKeys, info) {
console.log('selected', selectedKeys, info);
this.selectedKey = selectedKeys
},
onCheck(checkedKeys, info) {
console.log('onCheck', checkedKeys, info);
this.userIds = checkedKeys
},
handleCancel(){
this.visible = false
@@ -75,6 +83,15 @@
},
onChange(){
},
onExpand(selectedKeys, val) {
if (val.expanded) {
if (this.departId == val.node.value) {
} else {
this.departId = val.node.value
this.queryDepartUserTreeList()
}
}
},
queryDepartUserTreeList() {
this.confirmLoading = true