修改推送的接口
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
@select="onSelect"
|
||||
@check="checkChange"
|
||||
@expand="onExpand"
|
||||
:defaultExpandedKeys="defaultExpandedKeys"
|
||||
>
|
||||
</a-tree>
|
||||
</div>
|
||||
@@ -54,7 +55,8 @@
|
||||
selectedKey: [],
|
||||
tableKey: [],
|
||||
userIds: [],
|
||||
departId: ''
|
||||
departId: '',
|
||||
defaultExpandedKeys:[],
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@@ -111,6 +113,8 @@
|
||||
let gData = JSON.parse(JSON.stringify(this.gData))
|
||||
if (gData && gData.length > 0) {
|
||||
gData = JSON.stringify(gData)
|
||||
}else {
|
||||
gData = ''
|
||||
}
|
||||
postAction('sys/user/queryDepartUserTreeList', {
|
||||
departId: this.departId,
|
||||
@@ -119,6 +123,7 @@
|
||||
this.confirmLoading = false
|
||||
if (res.success) {
|
||||
this.gData = res.result
|
||||
this.defaultExpandedKeys = [this.departId]
|
||||
} else {
|
||||
this.gData = []
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user