| | |
| | | } |
| | | }) |
| | | |
| | | this.props.initMenuList(fromJS(menulist).toJS()) |
| | | this.props.initMenuList({fstMenuList: fromJS(menulist).toJS(), fstMenuId: result.FstIDSeleted}) |
| | | |
| | | this.setState({ |
| | | fstMenuId: result.FstIDSeleted, |
| | |
| | | }, () => { |
| | | 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}) |
| | | } |
| | |
| | | } |
| | | |
| | | 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 = { |
| | |
| | | <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> |