|
@@ -26,30 +26,18 @@ const CreateForm = (props) => { |
|
|
<Form.Item name="id" hidden={true}> |
|
|
<Form.Item name="id" hidden={true}> |
|
|
<Input /> |
|
|
<Input /> |
|
|
</Form.Item> |
|
|
</Form.Item> |
|
|
<Row> |
|
|
|
|
|
<Col span={12}> |
|
|
|
|
|
<Form.Item name="code" label="角色编码" rules={[{ required: true, max: 20 }]}> |
|
|
|
|
|
<Input disabled={props.values.id ? true : false} placeholder="请输入角色编码" /> |
|
|
|
|
|
</Form.Item> |
|
|
|
|
|
</Col> |
|
|
|
|
|
<Col span={12}> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Form.Item name="name" label="角色名称" rules={[{ required: true, max: 64 }]}> |
|
|
<Form.Item name="name" label="角色名称" rules={[{ required: true, max: 64 }]}> |
|
|
<Input placeholder="请输入角色名称" /> |
|
|
<Input placeholder="请输入角色名称" /> |
|
|
</Form.Item> |
|
|
</Form.Item> |
|
|
</Col> |
|
|
|
|
|
</Row> |
|
|
|
|
|
<Row> |
|
|
|
|
|
<Col span={12}> |
|
|
|
|
|
|
|
|
<Form.Item name="sort" label="排序"> |
|
|
|
|
|
<InputNumber style={{width:'100%'}} min={1} decimalSeparator="0"/> |
|
|
|
|
|
</Form.Item> |
|
|
<Form.Item name="remark" label="备注" rules={[{ max: 500 }]}> |
|
|
<Form.Item name="remark" label="备注" rules={[{ max: 500 }]}> |
|
|
<Input.TextArea placeholder="请输入备注" /> |
|
|
<Input.TextArea placeholder="请输入备注" /> |
|
|
</Form.Item> |
|
|
</Form.Item> |
|
|
</Col> |
|
|
|
|
|
<Col span={12}> |
|
|
|
|
|
<Form.Item name="sort" label="排序"> |
|
|
|
|
|
<InputNumber min={1} decimalSeparator="0"/> |
|
|
|
|
|
</Form.Item> |
|
|
|
|
|
</Col> |
|
|
|
|
|
</Row> |
|
|
|
|
|
|
|
|
|
|
|
<Form.Item> |
|
|
<Form.Item> |
|
|
<Button htmlType="button" style={{float:'right',left:10}} onClick={props.onCancel} > |
|
|
<Button htmlType="button" style={{float:'right',left:10}} onClick={props.onCancel} > |
|
|
取消 |
|
|
取消 |
|
|