king
2022-05-20 1637a24e160f87e171fc4978a8c9cb8875cdcabb
src/tabviews/zshare/actionList/exceloutbutton/index.jsx
@@ -25,7 +25,7 @@
    setting: PropTypes.any,           // 页面通用设置
    updateStatus: PropTypes.func,     // 按钮状态更新
    disabled: PropTypes.any,          // 行按钮禁用
    lineId: PropTypes.any,            // 行索引+主键值,用于行按钮双击
    lineBtn: PropTypes.any,           // 是否为行级按钮
  }
  state = {
@@ -117,17 +117,12 @@
  /**
   * @description 触发按钮操作
   */
  actionTrigger = (triggerId, record) => {
  actionTrigger = (triggerId, record, type) => {
    const { setting, Tab, BID, btn } = this.props
    const { loading, disabled } = this.state
    if (loading || disabled) return
    if (triggerId) {
      if (btn.uuid !== triggerId) return
      if (this.props.lineId && record && record[0] && this.props.lineId !== record[0].$$key) {
        return
      }
    }
    if (triggerId && btn.uuid !== triggerId) return
    if (((Tab && Tab.supMenu) || setting.supModule) && !BID) {
      notification.warning({
@@ -136,6 +131,8 @@
        duration: 5
      })
      return
    } else if (type === 'linkbtn' && this.props.lineBtn && !is(fromJS(this.props.selectedData || []), fromJS(record))) {
      return
    }
    if (!btn.verify || !btn.verify.columns || btn.verify.columns.length === 0) {