| | |
| | | |
| | | // 主菜单已有选择的表名,模态框没有表名时,复制主菜单表名 |
| | | _config.tables = _config.tables.length === 0 ? _menu.tables : _config.tables |
| | | |
| | | let _source = fromJS(SearchItems).toJS() |
| | | if (!!this.props.editTab) { |
| | | _source.push({ |
| | | type: 'form', |
| | | label: this.state.dict['header.form.linkMain'], |
| | | subType: 'linkMain', |
| | | url: '' |
| | | }) |
| | | } |
| | | |
| | | _config = updateForm(_config) |
| | | |
| | | this.setState({ |
| | | openEdition: editAction.open_edition || '', |
| | | menu: _menu, |
| | | source: _source, |
| | | config: _config, |
| | | originConfig: fromJS(_config).toJS(), |
| | | modalformlist: [ |
| | |
| | | } |
| | | |
| | | render () { |
| | | const { config, source, dict } = this.state |
| | | const { config, dict } = this.state |
| | | |
| | | return ( |
| | | <div className="modal-form-board"> |
| | |
| | | </Panel> |
| | | <Panel header={dict['header.menu.form']} key="1"> |
| | | <div className="search-element"> |
| | | {source.map((item, index) => { |
| | | {SearchItems.map((item, index) => { |
| | | return (<SourceElement key={index} content={item}/>) |
| | | })} |
| | | </div> |