[update] 修改bug87997

This commit is contained in:
lideqin
2024-08-05 17:24:04 +08:00
parent 16511cd88f
commit c1dcb53015
+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.SYSTEMADD.value return record.source !== UserSource.IAM.value
} }
}, },
// 详情 // 详情
@@ -321,8 +321,8 @@ export default {
clickEvent: 'handleChangePassword', clickEvent: 'handleChangePassword',
has: '', has: '',
show: (record) => { show: (record) => {
// 系统新增的才可以修改 // IAM同步过来的不能编辑
return record.source === UserSource.SYSTEMADD.value return record.source !== UserSource.IAM.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.SYSTEMADD.value return record.source !== UserSource.IAM.value
} }
}, },
// 冻结 // 冻结