[update] 修改bug87997

This commit is contained in:
lideqin
2024-08-05 17:22:38 +08:00
parent 1803fd2432
commit 16511cd88f
2 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -255,8 +255,8 @@ export const OcrConvertStateEnums = {
// 用户管理来源
export const UserSource = {
IAM: { text: 'IAM', value: '1' },
SYSTEMADD: { text: '系统新增', value: '2' }
IAM: { text: 'IAM', value: '2' },
SYSTEMADD: { text: '系统新增', value: '1' }
}
/**
+6 -6
View File
@@ -305,8 +305,8 @@ export default {
clickEvent: 'handleEdit',
has: 'user:edit',
show: (record) => {
// IAM同步过来的不能编辑
return record.source !== UserSource.IAM.value
// 系统新增的才可以修改
return record.source === UserSource.SYSTEMADD.value
}
},
// 详情
@@ -321,8 +321,8 @@ export default {
clickEvent: 'handleChangePassword',
has: '',
show: (record) => {
// IAM同步过来的不能编辑
return record.source !== UserSource.IAM.value
// 系统新增的才可以修改
return record.source === UserSource.SYSTEMADD.value
}
},
// 删除
@@ -331,8 +331,8 @@ export default {
clickEvent: 'handleDelete',
has: 'sys:user:sel',
show: (record) => {
// IAM同步过来的不能删除
return record.source !== UserSource.IAM.value
// 系统新增的才可以删除
return record.source === UserSource.SYSTEMADD.value
}
},
// 冻结