king
2024-05-21 8a6ce370f1aa1c061b76fa3e9d2d4d1df53ca4c5
src/tabviews/zshare/actionList/tabbutton/index.jsx
@@ -100,16 +100,13 @@
  /**
   * @description 触发按钮操作
   */
  actionTrigger = (triggerId, record, type) => {
    const { btn, selectedData, BID } = this.props
  actionTrigger = (triggerId, record, type, lid) => {
    const { btn, selectedData, BID, LID } = this.props
    const { disabled } = this.state
    if (disabled || btn.multiMenus) return
    if (triggerId && btn.uuid !== triggerId) return
    if (type === 'linkbtn' && !btn.$toolbtn && !is(fromJS(selectedData || []), fromJS(record))) {
      return
    }
    if (type === 'linkbtn' && !btn.$toolbtn && LID !== lid) return
    
    let data = record || selectedData || []
@@ -152,7 +149,7 @@
          return uuid
        })()
        primaryId = primaryId + (btn.sign || '')
      } else {
      } else if (btn.sysId !== 'empty') {
        primaryId = BID || ''
      }
    }
@@ -194,6 +191,14 @@
          duration: 5
        })
        return
      }
      if (btn.Ot === 'requiredSgl' || btn.Ot === 'requiredOnce') {
        Object.keys(data[0]).forEach(key => {
          if (/^\$/.test(key)) return
          if (key === 'children') return
          menu.param[key] = data[0][key]
        })
      }
      newtab = menu
@@ -256,7 +261,7 @@
          return uuid
        })()
        primaryId = primaryId + (tab.sign || '')
      } else {
      } else if (btn.sysId !== 'empty') {
        primaryId = BID || ''
      }
    }
@@ -325,7 +330,7 @@
          type="link"
          title={btn.show === 'icon' ? btn.label : ''}
          style={btn.style || null}
          className={btn.$toolbtn ? (btn.hover || '') : ''}
          className={btn.hover || ''}
        >{label}</Button>
      </Dropdown>)
    }
@@ -337,7 +342,7 @@
        title={disabled ? (btn.reason || '') : (btn.show === 'icon' ? btn.label : '')}
        style={btn.style || null}
        disabled={disabled}
        className={btn.$toolbtn ? (btn.hover || '') : ''}
        className={btn.hover || ''}
        onClick={(e) => {e.stopPropagation(); this.actionTrigger()}}
      >{label}</Button>
    )