提交 6c3fe473 作者: 龚洪江

修复:超管不能删除

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