king
2020-03-31 86aab033b5129b00651b716ee70ce871cf670008
src/templates/formtabconfig/index.jsx
@@ -119,6 +119,7 @@
        })
      })
    }
    console.log(_config)
    if (menu && menu.LongParam && menu.LongParam.columns) {
      columns = menu.LongParam.columns
@@ -631,7 +632,9 @@
    if (modaltype === 'search') {
      this.modalFormRef.handleConfirm().then(res => {
        if (config.setting.primaryKey && config.setting.primaryKey.toLowerCase() === res.field.toLowerCase()) {
        let _config = JSON.parse(JSON.stringify(config))
        if (_config.setting.primaryKey && _config.setting.primaryKey.toLowerCase() === res.field.toLowerCase()) {
          notification.warning({
            top: 92,
            message: '表单中字段名不可与主键重复!',
@@ -657,7 +660,7 @@
        let fieldrepet = false // 字段重复
        if (card.iscopy) {
          _groups = config.groups.map(group => {
          _groups = _config.groups.map(group => {
            let _index = null
            group.sublist.forEach((item, index) => {
              if (item.uuid === card.originUuid) {
@@ -679,7 +682,7 @@
            return group
          })
        } else {
          _groups = config.groups.map(group => {
          _groups = _config.groups.map(group => {
            group.sublist = group.sublist.map(item => {
              if (item.uuid !== res.uuid && item.field === res.field) {
                fieldrepet = true
@@ -708,7 +711,7 @@
        }
        this.setState({
          config: {...config, groups: _groups},
          config: {..._config, groups: _groups},
          optionLibs: optionLibs,
          modaltype: ''
        })
@@ -2055,6 +2058,7 @@
                      handleList={this.handleList}
                      handleMenu={this.handleTab}
                      deleteMenu={this.deleteElement}
                      doubleClickCard={(tab) => this.setSubConfig(tab, 'tab')}
                      placeholder={this.state.dict['header.form.tab.placeholder']}
                    />
                  </div>)