king
2020-05-19 89949fc82a0194f985cb542abb7118724804bd5b
src/templates/modalconfig/index.jsx
@@ -69,7 +69,8 @@
    optionLibs: null,      // 自定义下拉选项库
    sources: null,         // 表单类型
    pasteVisible: null,    // 表单粘贴
    sqlVerifing: false     // sql验证
    sqlVerifing: false,    // sql验证
    openEdition: ''        // 编辑版本标记,防止多人操作
  }
  /**
@@ -153,6 +154,7 @@
    }
    this.setState({
      openEdition: editAction.open_edition || '',
      menu: _menu,
      source: _source,
      optionLibs: optionLibs,
@@ -715,7 +717,7 @@
  submitConfig = () => {
    const { editAction } = this.props
    const { config, menu } = this.state
    const { config, menu, openEdition } = this.state
    if ((!config.groups[0] && !config.fields[0]) || (config.fields[0] && config.fields[0].origin)) {
      notification.warning({
@@ -751,6 +753,10 @@
      LongParam: _LongParam
    }
    if (openEdition) {
      param.open_edition = openEdition
    }
    if (this.state.closeVisible) {
      this.setState({
        closeloading: true
@@ -764,6 +770,7 @@
    Api.getSystemConfig(param).then(response => {
      if (response.status) {
        this.setState({
          openEdition: response.open_edition || '',
          menuloading: false,
          closeloading: false,
          closeVisible: false,