修改推送接口
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
:tree-data="gData"
|
||||
@select="onSelect"
|
||||
@check="checkChange"
|
||||
@expand="onExpand"
|
||||
>
|
||||
</a-tree>
|
||||
</div>
|
||||
@@ -52,7 +53,8 @@
|
||||
confirmLoading: false,
|
||||
selectedKey: [],
|
||||
tableKey: [],
|
||||
userIds: []
|
||||
userIds: [],
|
||||
departId: ''
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@@ -67,6 +69,15 @@
|
||||
onSelect(selectedKeys) {
|
||||
this.selectedKey = selectedKeys
|
||||
},
|
||||
onExpand(selectedKeys, val) {
|
||||
if (val.expanded) {
|
||||
if (this.departId == val.node.value) {
|
||||
} else {
|
||||
this.departId = val.node.value
|
||||
this.queryDepartUserTreeList()
|
||||
}
|
||||
}
|
||||
},
|
||||
handleCancel() {
|
||||
this.visible = false
|
||||
},
|
||||
@@ -96,7 +107,7 @@
|
||||
},
|
||||
queryDepartUserTreeList() {
|
||||
this.confirmLoading = true
|
||||
getAction('sys/user/queryDepartUserTreeList', {}).then((res) => {
|
||||
getAction('sys/user/queryDepartUserTreeList', { departId: this.departId }).then((res) => {
|
||||
this.confirmLoading = false
|
||||
if (res.success) {
|
||||
this.gData = res.result
|
||||
|
||||
Reference in New Issue
Block a user