同步部门调整
This commit is contained in:
@@ -500,15 +500,13 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
syncMembers() {
|
syncMembers() {
|
||||||
if (!this.search.departmentId) {
|
let departId = this.search.departmentId;
|
||||||
return this.$message.error('请选择部门')
|
if (!!departId) departId = 1;
|
||||||
}
|
|
||||||
|
|
||||||
this.btnLoading = true
|
this.btnLoading = true
|
||||||
|
|
||||||
this.instance.post(`/app/wxcp/wxdepartment/syncDepart`).then(res => {
|
this.instance.post(`/app/wxcp/wxdepartment/syncDepart`).then(res => {
|
||||||
if (res.code == 0) {
|
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
|
timeout: 1000000
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user