Commit 1d349650 by 黄森林

用户功能bug修复

parent e449bf95
...@@ -401,7 +401,7 @@ export default { ...@@ -401,7 +401,7 @@ export default {
if(event){ if(event){
userUnFreeze({userId:id}).then(res =>{ userUnFreeze({userId:id}).then(res =>{
if(res.code == 200){ if(res.code == 200){
notification.error({ message: '系统提示', description: '解冻成功'}) notification.success({ message: '系统提示', description: '解冻成功'})
}else{ }else{
notification.error({ message: '系统提示', description: '解冻失败'}) notification.error({ message: '系统提示', description: '解冻失败'})
} }
...@@ -409,7 +409,7 @@ export default { ...@@ -409,7 +409,7 @@ export default {
}else{ }else{
userFreeze({userId:id}).then(res =>{ userFreeze({userId:id}).then(res =>{
if(res.code == 200){ if(res.code == 200){
notification.error({ message: '系统提示', description: '冻结成功'}) notification.success({ message: '系统提示', description: '冻结成功'})
}else{ }else{
notification.error({ message: '系统提示', description: '冻结失败'}) notification.error({ message: '系统提示', description: '冻结失败'})
} }
...@@ -558,7 +558,7 @@ export default { ...@@ -558,7 +558,7 @@ export default {
handleUpdata() { handleUpdata() {
this.visible = false this.visible = false
let that = this let that = this
getEditUser(that.showModals).then(() => { getEditUser(that.showModals).then((res) => {
that.showModals.deptName = '' that.showModals.deptName = ''
that.showModals.deptid = '' that.showModals.deptid = ''
that.showModals.name = '' that.showModals.name = ''
...@@ -569,6 +569,11 @@ export default { ...@@ -569,6 +569,11 @@ export default {
that.showModals.account = '' that.showModals.account = ''
that.showModals.id = '' that.showModals.id = ''
that.showModals.roleid = '' 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 }) 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