[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 = { export const UserSource = {
IAM: { text: 'IAM', value: '1' }, IAM: { text: 'IAM', value: '2' },
SYSTEMADD: { text: '系统新增', value: '2' } SYSTEMADD: { text: '系统新增', value: '1' }
} }
/** /**
+6 -6
View File
@@ -305,8 +305,8 @@ export default {
clickEvent: 'handleEdit', clickEvent: 'handleEdit',
has: 'user:edit', has: 'user:edit',
show: (record) => { show: (record) => {
// IAM同步过来的不能编辑 // 系统新增的才可以修改
return record.source !== UserSource.IAM.value return record.source === UserSource.SYSTEMADD.value
} }
}, },
// 详情 // 详情
@@ -321,8 +321,8 @@ export default {
clickEvent: 'handleChangePassword', clickEvent: 'handleChangePassword',
has: '', has: '',
show: (record) => { show: (record) => {
// IAM同步过来的不能编辑 // 系统新增的才可以修改
return record.source !== UserSource.IAM.value return record.source === UserSource.SYSTEMADD.value
} }
}, },
// 删除 // 删除
@@ -331,8 +331,8 @@ export default {
clickEvent: 'handleDelete', clickEvent: 'handleDelete',
has: 'sys:user:sel', has: 'sys:user:sel',
show: (record) => { show: (record) => {
// IAM同步过来的不能删除 // 系统新增的才可以删除
return record.source !== UserSource.IAM.value return record.source === UserSource.SYSTEMADD.value
} }
}, },
// 冻结 // 冻结