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