[update] 修改UAT问题:用户管理操作列按钮的判断修改为source只有系统新增才显示

This commit is contained in:
lideqin
2024-09-13 17:13:57 +08:00
parent e6e523b54c
commit 98675ac1c3
+10 -10
View File
@@ -313,8 +313,8 @@ export default {
clickEvent: 'handleEdit',
has: 'user:edit',
show: (record) => {
// IAM同步过来的不能编辑
return record.source !== UserSource.IAM.value
// 只有系统新增的可以编辑
return record.source === UserSource.SYSTEMADD.value
}
},
// 详情
@@ -329,8 +329,8 @@ export default {
clickEvent: 'handleChangePassword',
has: 'user:password',
show: (record) => {
// IAM同步过来的不能编辑
return record.source !== UserSource.IAM.value
// 只有系统新增的可以编辑
return record.source === UserSource.SYSTEMADD.value
}
},
// 删除
@@ -339,8 +339,8 @@ export default {
clickEvent: 'handleDelete',
has: 'sys:user:sel',
show: (record) => {
// IAM同步过来的不能删除
return record.source !== UserSource.IAM.value
// 只有系统新增的可以编辑
return record.source === UserSource.SYSTEMADD.value
}
},
// 冻结
@@ -349,8 +349,8 @@ export default {
clickEvent: 'handleFrozen',
has: 'user:edit',
show: (record) => {
// IAM同步过来的不能编辑
return (record.status + '') === '1' && record.source !== UserSource.IAM.value
// 只有系统新增的可以编辑
return (record.status + '') === '1' && record.source === UserSource.SYSTEMADD.value
}
},
// 解冻
@@ -359,8 +359,8 @@ export default {
clickEvent: 'handleFrozen',
has: 'user:edit',
show: (record) => {
// IAM同步过来的不能编辑
return (record.status + '') === '2' && record.source !== UserSource.IAM.value
// 只有系统新增的可以编辑
return (record.status + '') === '2' && record.source === UserSource.SYSTEMADD.value
}
}
// 上传手写章