用户禁用修复

dev_2022-04-07
yujialong 3 years ago
parent 396b48fd04
commit 80f209bb1a
  1. 7
      src/pages/user/list/index.vue

@ -469,23 +469,26 @@ export default {
}).catch(() => {})
},
switchOff(val,row,index) {
this.$post(`${this.api.getDetail}?accountId=${row.accountId}`).then(res => {
const { data } = res
this.$post(this.api.modifyUser,{
account: row.account,
accountId: row.accountId,
isEnable: val,
roleIds: row.roleId,
roleIds: data.roleId.map(e => e.roleId),
userId: row.userId,
userName: row.userName,
workNumber: row.workNumber,
platformId: Setting.platformId,
password: '',
schoolId: this.schoolId,
phone: ''
phone: data.phone
}).then((res) => {
val == 1 ? util.successMsg('启用成功') : util.successMsg('禁用成功')
}).catch((res) => {
row.isEnable = val == 1 ? 0 : 1
})
}).catch(res => {})
},
handleSelectionChange(val) {
this.multipleSelection = val

Loading…
Cancel
Save