king
2023-07-18 a5c71db861ec548245200767cdbf24839ad2b866
src/tabviews/zshare/actionList/exceloutbutton/index.jsx
@@ -557,6 +557,29 @@
      return col
    })
    if (data && data[0]) {
      let errors = []
      columns.forEach(col => {
        if (col.Column && data[0][col.Column] === undefined) {
          errors.push(col.Text)
        }
      })
      if (errors.length) {
        notification.error({
          top: 92,
          message: '数据中缺少字段:' + errors.join('、'),
          duration: 5
        })
        this.setState({
          loading: false
        })
        return
      }
    }
    
    try {
      if (imgCol) {
@@ -1143,6 +1166,10 @@
      let node = document.getElementById('tab' + id)
      node && node.click()
    }
    if (btn.execSuccess === 'popclose' && btn.$tabId) { // 标签关闭刷新
      MKEmitter.emit('refreshPopButton', btn.$tabId)
    }
  }
  /**
@@ -1184,6 +1211,10 @@
    } else if (btn.execError !== 'never') {
      MKEmitter.emit('refreshByButtonResult', btn.$menuId, btn.execError, btn, '', [])
    }
    if (btn.execError === 'popclose' && btn.$tabId) { // 标签关闭刷新
      MKEmitter.emit('refreshPopButton', btn.$tabId)
    }
  }
  render() {
@@ -1219,6 +1250,7 @@
    return (
      <Button
        type={type}
        id={'button' + btn.uuid}
        title={disabled ? (btn.reason || '') : (btn.show === 'icon' ? btn.label : '')}
        loading={loading}
        disabled={disabled}