king
4 天以前 80deba0c2dcffd9e6b6f07815c7c52199309ce42
src/tabviews/custom/components/table/edit-table/index.jsx
@@ -61,6 +61,14 @@
      BID = BData.$BID || ''
    }
    if (setting.controlField) {
      if (setting.controlVal) {
        setting.controlVal = setting.controlVal.split(',')
      } else {
        setting.controlVal = ['']
      }
    }
    _config.submit.style = _config.submit.style || {}
    _config.submit.wrapStyle = {}
    setting.hasAction = _config.action.length > 0
@@ -209,6 +217,10 @@
      }
    } else {
      _config.colsCtrls = null
    }
    if (_config.setting.supModule && !BID) {
      _config.setting.onload = 'false'
    }
    this.setState({
@@ -433,6 +445,7 @@
        total: 0
      })
      reset && MKEmitter.emit('resetTable', config.uuid, 'true') // 列表重置
      MKEmitter.emit('transferData' + setting.tableId, [])
      this.requestId = ''
      return
@@ -487,6 +500,12 @@
              item[f] = Math.abs(item[f])
            }
          })
        }
        if (setting.controlField) {
          if (setting.controlVal.includes(item[setting.controlField] + '')) {
            item.$disabled = true
          }
        }
        return item
@@ -589,6 +608,12 @@
        })
      }
      if (setting.controlField) {
        if (setting.controlVal.includes(_data[setting.controlField] + '')) {
          _data.$disabled = true
        }
      }
      data = data.map(item => {
        if (item.$$uuid === _data.$$uuid) {
          _data.key = item.key
@@ -632,7 +657,7 @@
    if (setting.supModule && !BID) {
      notification.warning({
        top: 92,
        message: window.GLOB.dict['sup_key_req'] || '需要上级主键值!',
        message: setting.supModTip || window.GLOB.dict['sup_key_req'] || '需要上级主键值!',
        duration: 5
      })
      this.setState({