king
2020-05-19 89949fc82a0194f985cb542abb7118724804bd5b
src/templates/formtabconfig/index.jsx
@@ -70,7 +70,8 @@
    optionLibs: null,        // 自定义下拉选项库
    activeKey: '0',          // 默认展开基本信息
    pasteVisible: false,     // 粘贴模态框
    sqlVerifing: false       // sql验证
    sqlVerifing: false,      // sql验证
    openEdition: ''          // 编辑版本标记,防止多人操作
  }
  /**
@@ -148,6 +149,7 @@
    this.setState({
      config: _config,
      activeKey: btnTab.activeKey || '0',
      openEdition: btnTab.open_edition || '',
      optionLibs: optionLibs,
      columns: columns,
      originMenu: JSON.parse(JSON.stringify(_config)),
@@ -896,7 +898,7 @@
   */
  submitConfig = () => {
    const { menu, btnTab } = this.props
    const { delActions } = this.state
    const { delActions, openEdition } = this.state
    let config = JSON.parse(JSON.stringify(this.state.config))
@@ -1122,6 +1124,10 @@
          LongParam: _LongParam
        }
        if (openEdition) {
          param.open_edition = openEdition
        }
        // 有按钮或标签删除时,先进行删除操作
        // 删除成功后,保存页面配置
        new Promise(resolve => {
@@ -1172,6 +1178,7 @@
          Api.getSystemConfig(param).then(response => {
            if (response.status) {
              this.setState({
                openEdition: response.open_edition || '',
                config: _config,
                originMenu: _config
              })
@@ -1606,6 +1613,10 @@
                param.subConfig = _LongParam
              }
              if (param.editTab) {
                param.editTab.open_edition = res.open_edition || ''
              }
              this.props.handleView(param)
            } else {
              this.setState({