king
2021-09-27 54d01e6ef9ac31f10de4a0e92824eba50b77eda6
src/templates/subtableconfig/index.jsx
@@ -863,17 +863,13 @@
  }
  /**
   * @description 编辑功能完成更新,包括解冻按钮、粘贴、替换等
   * @description 编辑功能完成更新,包括解冻按钮等
   */
  updateConfig = (res) => {
    if (res.type === 'thaw') {
      this.setState({
        thawButtons: res.thawButtons,
        config: res.config
      })
    } else if (res.type === 'paste') {
      this.setState({config: res.config})
    }
    this.setState({
      thawButtons: res.thawButtons,
      config: res.config
    })
  }
  /**
@@ -1008,11 +1004,7 @@
                    return (<SourceElement key={index} content={item}/>)
                  })}
                </div>
                <FieldsComponent
                  config={config}
                  type="search"
                  updatefield={this.updateconfig}
                />
                <FieldsComponent config={config} type="search" />
              </Panel>
              {/* 按钮添加 */}
              <Panel header={this.state.dict['header.menu.action']} key="2">
@@ -1051,11 +1043,7 @@
                    return (<SourceElement key={index} content={item}/>)
                  })}
                </div>
                <FieldsComponent
                  config={config}
                  type="columns"
                  updatefield={this.updateconfig}
                />
                <FieldsComponent config={config} type="columns" />
              </Panel>
            </Collapse>
          </div>