king
2024-06-21 2bccb9ec7bdefe23292a22bc153463cfa1479a49
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'] || '菜单已删除或没有访问权限!',
          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