|
@ -54,9 +54,14 @@ const onDelUser = (user: User.UserItem) => { |
|
|
FtMessage.warning('自己不可删除自己') |
|
|
FtMessage.warning('自己不可删除自己') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
if (user.roleType === 'admin' && userInfo.roleType !== 'admin') { |
|
|
|
|
|
|
|
|
/* if (user.roleType === 'admin' && userInfo.roleType !== 'admin') { |
|
|
FtMessage.warning('不可删除管理员用户') |
|
|
FtMessage.warning('不可删除管理员用户') |
|
|
return |
|
|
return |
|
|
|
|
|
} */ |
|
|
|
|
|
// 禁止删除超级管理员 |
|
|
|
|
|
if (userInfo.name === 'admin') { |
|
|
|
|
|
FtMessage.warning('不可删除超级管理员用户') |
|
|
|
|
|
return |
|
|
} |
|
|
} |
|
|
FtMessageBox.warning('请确认是否删除?').then(() => { |
|
|
FtMessageBox.warning('请确认是否删除?').then(() => { |
|
|
const delParams = { |
|
|
const delParams = { |
|
|