同步部门调整
This commit is contained in:
		| @@ -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) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user