1. 迁移角色相关逻辑
2. admin-web 接入角色新接口
This commit is contained in:
@@ -44,6 +44,12 @@ const CreateForm = Form.create()(props => {
|
||||
initialValue: initValues.name,
|
||||
})(<Input placeholder="请输入" />)}
|
||||
</FormItem>
|
||||
<FormItem labelCol={{ span: 5 }} wrapperCol={{ span: 15 }} label="角色编码">
|
||||
{form.getFieldDecorator('code', {
|
||||
rules: [{ required: false }],
|
||||
initialValue: initValues.code,
|
||||
})(<Input placeholder="请输入" />)}
|
||||
</FormItem>
|
||||
</Modal>
|
||||
);
|
||||
});
|
||||
@@ -286,6 +292,10 @@ class RoleList extends PureComponent {
|
||||
title: '名称',
|
||||
dataIndex: 'name',
|
||||
},
|
||||
{
|
||||
title: '编码',
|
||||
dataIndex: 'code',
|
||||
},
|
||||
{
|
||||
title: '创建时间',
|
||||
dataIndex: 'createTime',
|
||||
|
||||
Reference in New Issue
Block a user