diff --git a/src/views/system/UserList.vue b/src/views/system/UserList.vue index 509d551..326c28e 100644 --- a/src/views/system/UserList.vue +++ b/src/views/system/UserList.vue @@ -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 } } // 上传手写章