同步部门调整

This commit is contained in:
刘仕伟
2021-12-30 21:29:03 +08:00
parent 42255fa183
commit f22eb9a004

View File

@@ -500,15 +500,13 @@ export default {
},
syncMembers() {
if (!this.search.departmentId) {
return this.$message.error('请选择部门')
}
let departId = this.search.departmentId;
if (!!departId) departId = 1;
this.btnLoading = true
this.instance.post(`/app/wxcp/wxdepartment/syncDepart`).then(res => {
if (res.code == 0) {
this.instance.post(`/app/wxcp/wxdepartment/syncUser?departmentId=${this.search.departmentId}`, null, {
this.instance.post(`/app/wxcp/wxdepartment/syncUser?departmentId=${departId}`, null, {
timeout: 1000000
}).then(res => {
if (res.code == 0) {