- 修复更新 bug

This commit is contained in:
sin 2019-05-09 20:56:12 +08:00
parent b1e8f64a49
commit 58e7f0b19e

View File

@ -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