king
2021-08-26 e9c48bd7356462ba9257540b130a47a65ad1861d
src/templates/modalconfig/index.jsx
@@ -97,22 +97,12 @@
    // 主菜单已有选择的表名,模态框没有表名时,复制主菜单表名
    _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: [
@@ -611,7 +601,7 @@
  }
  render () {
    const { config, source, dict } = this.state
    const { config, dict } = this.state
    return (
      <div className="modal-form-board">
@@ -632,7 +622,7 @@
              </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>