群标签

This commit is contained in:
liuye
2023-05-26 11:37:56 +08:00
parent fcecac4ee9
commit 8c6d83294e

View File

@@ -54,9 +54,13 @@
...mapState(['user']),
},
onLoad() {
this.deptList = [{name: '', id: this.user.wxMainDepartmentId}]
this.getList()
this.getTotal()
this.$http.post(`/app/wxcp/wxdepartment/queryDetailById?id=${this.user.wxMainDepartmentId}`).then(res=> {
if(res?.data) {
this.deptList = [{name: res.data.name, id: this.user.wxMainDepartmentId}]
this.getList()
this.getTotal()
}
})
uni.$on('updateGroup', () => {
this.getList()
this.getTotal()