Commit 1d349650 by 黄森林

用户功能bug修复

parent e449bf95
......@@ -401,7 +401,7 @@ export default {
if(event){
userUnFreeze({userId:id}).then(res =>{
if(res.code == 200){
notification.error({ message: '系统提示', description: '解冻成功'})
notification.success({ message: '系统提示', description: '解冻成功'})
}else{
notification.error({ message: '系统提示', description: '解冻失败'})
}
......@@ -409,7 +409,7 @@ export default {
}else{
userFreeze({userId:id}).then(res =>{
if(res.code == 200){
notification.error({ message: '系统提示', description: '冻结成功'})
notification.success({ message: '系统提示', description: '冻结成功'})
}else{
notification.error({ message: '系统提示', description: '冻结失败'})
}
......@@ -558,7 +558,7 @@ export default {
handleUpdata() {
this.visible = false
let that = this
getEditUser(that.showModals).then(() => {
getEditUser(that.showModals).then((res) => {
that.showModals.deptName = ''
that.showModals.deptid = ''
that.showModals.name = ''
......@@ -569,6 +569,11 @@ export default {
that.showModals.account = ''
that.showModals.id = ''
that.showModals.roleid = ''
if(res.code == 200){
that.$notification.success({message: "系统提示", description: res.message, duration: 4})
}else {
that.$notification.error({message: "系统提示", description: res.message, duration: 4})
}
that.$refs.table.refresh({ search: true })
})
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment