提交 6c3fe473 作者: 龚洪江

修复:超管不能删除

上级 84c8e9e9
......@@ -186,6 +186,7 @@ export type listRoleInfoPageType = InterItemFunction<
userName: string;
roleName: string;
remark: string;
superAdmin: number;
}[]
>;
//账号权限-新增
......
......@@ -63,7 +63,7 @@ const AddOrEditLimitModal: FC<ModalProps & selfProps> = ({
<Input placeholder='请输入角色名称' maxLength={10} />
</Form.Item>
<Form.Item label='角色备注' name='remark'>
<Input.TextArea placeholder='请输入备注信息' rows={4} maxLength={255} showCount />
<Input.TextArea placeholder='请输入备注信息' rows={4} maxLength={225} showCount />
</Form.Item>
</Form>
</Modal>
......
......@@ -61,7 +61,12 @@ const AccountLimit = () => {
<Button type='link' onClick={() => toLimitInfo(record)}>
权限
</Button>
<Button type='link' danger onClick={() => deleteAccountLimit(record)}>
<Button
type='link'
danger
onClick={() => deleteAccountLimit(record)}
disabled={!!record.superAdmin}
>
删除
</Button>
</>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论