- 修复更新 bug
This commit is contained in:
parent
b1e8f64a49
commit
58e7f0b19e
@ -99,7 +99,10 @@ const CreateForm = Form.create()(props => {
|
|||||||
<FormItem labelCol={{ span: 5 }} wrapperCol={{ span: 15 }} label="父级菜单">
|
<FormItem labelCol={{ span: 5 }} wrapperCol={{ span: 15 }} label="父级菜单">
|
||||||
{form.getFieldDecorator('pid', {
|
{form.getFieldDecorator('pid', {
|
||||||
rules: [{ required: true, message: '请输入父级编号!' }],
|
rules: [{ required: true, message: '请输入父级编号!' }],
|
||||||
initialValue: initValues.pid,
|
initialValue:
|
||||||
|
initValues.pid === 0
|
||||||
|
? `根节点-${initValues.pid}`
|
||||||
|
: `${initValues.displayName}-${initValues.pid}`,
|
||||||
})(
|
})(
|
||||||
<TreeSelect
|
<TreeSelect
|
||||||
showSearch
|
showSearch
|
||||||
|
Loading…
Reference in New Issue
Block a user