修改搜索中心的问题
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user