修改推送的懒加载

This commit is contained in:
qq787203167
2022-03-24 10:29:07 +08:00
parent 08ed9f9c63
commit 8619773213
3 changed files with 23 additions and 139 deletions
@@ -58,7 +58,7 @@
}
},
mounted() {
this.queryDepartUserTreeList()
},
methods: {
getPush(data) {
@@ -108,7 +108,14 @@
},
queryDepartUserTreeList() {
this.confirmLoading = true
getAction('sys/user/queryDepartUserTreeList', { departId: this.departId }).then((res) => {
let gData = JSON.parse(JSON.stringify(this.gData))
if (gData && gData.length > 0) {
gData = JSON.stringify(gData)
}
postAction('sys/user/queryDepartUserTreeList', {
departId: this.departId,
json: gData
}).then((res) => {
this.confirmLoading = false
if (res.success) {
this.gData = res.result