king
2020-11-10 5df578ff69f6b02e821d59a8883bc75d78695a62
src/menu/menuform/index.jsx
@@ -58,7 +58,7 @@
          }
        })
        this.props.initMenuList(fromJS(menulist).toJS())
        this.props.initMenuList({fstMenuList: fromJS(menulist).toJS(), fstMenuId: result.FstIDSeleted})
        this.setState({
          fstMenuId: result.FstIDSeleted,
@@ -105,8 +105,8 @@
      }, () => {
        let _id = smenulist[0] ? smenulist[0].value : ''
        this.props.form.setFieldsValue({parentId: _id})
        this.props.updateConfig({...config, fstMenuId: value, parentId: _id})
      })
      this.props.updateConfig({...config, fstMenuId: value})
    } else if (key === 'parentId') {
      this.props.updateConfig({...config, parentId: value})
    }
@@ -128,7 +128,7 @@
  }
  render() {
    const { dict, MenuName, MenuNo } = this.props
    const { dict, MenuName, MenuNo, config } = this.props
    const { menulist, smenulist } = this.state
    const { getFieldDecorator } = this.props.form
    const formItemLayout = {
@@ -216,7 +216,7 @@
          <Col span={24}>
            <Form.Item label={dict['mob.menu.easycode']}>
              {getFieldDecorator('easyCode', {
                initialValue: ''
                initialValue: config.easyCode
              })(<Input placeholder="" autoComplete="off" onChange={this.changeEasyCode}/>)}
            </Form.Item>
          </Col>