king
2025-05-15 43251c34515c1d8e0163917da181424811e09ba7
src/tabviews/zshare/actionList/tabbutton/index.jsx
@@ -22,7 +22,8 @@
  state = {
    disabled: false,
    hidden: false,
    primaryId: ''
    primaryId: '',
    dict: window.GLOB.dict
  }
  UNSAFE_componentWillMount () {
@@ -102,7 +103,7 @@
   */
  actionTrigger = (triggerId, record, type, lid) => {
    const { btn, selectedData, BID, LID } = this.props
    const { disabled } = this.state
    const { disabled, dict } = this.state
    if (disabled || btn.multiMenus) return
    if (triggerId && btn.uuid !== triggerId) return
@@ -114,7 +115,7 @@
      // 需要选择行时,校验数据
      notification.warning({
        top: 92,
        message: '请选择行!',
        message: dict['select_row'] || '请选择行!',
        duration: 5
      })
      return false
@@ -122,7 +123,7 @@
      // 需要选择单行时,校验数据
      notification.warning({
        top: 92,
        message: '请选择单行数据!',
        message: dict['select_single_row'] || '请选择单行数据!',
        duration: 5
      })
      return
@@ -187,7 +188,7 @@
      if (!menu) {
        notification.warning({
          top: 92,
          message: '菜单已删除或没有访问权限!',
          message: dict['no_perm'] || `没有${btn.MenuName ? `菜单《${btn.MenuName}》的` : '当前菜单的'}访问权限!`,
          duration: 5
        })
        return
@@ -219,6 +220,7 @@
  triggerMenu = (tab) => {
    const { btn, selectedData, BID } = this.props
    const { dict } = this.state
    let data = selectedData || []
@@ -226,7 +228,7 @@
      // 需要选择行时,校验数据
      notification.warning({
        top: 92,
        message: '请选择行!',
        message: dict['select_row'] || '请选择行!',
        duration: 5
      })
      return false
@@ -234,7 +236,7 @@
      // 需要选择单行时,校验数据
      notification.warning({
        top: 92,
        message: '请选择单行数据!',
        message: dict['select_single_row'] || '请选择单行数据!',
        duration: 5
      })
      return
@@ -283,7 +285,7 @@
    if (!menu) {
      notification.warning({
        top: 92,
        message: '菜单已删除或没有访问权限!',
        message: dict['no_perm'] || '没有当前菜单的访问权限!',
        duration: 5
      })
      return