king
2020-11-25 9cf5fc474d2159aad973e3208fbef670f325307f
src/tabviews/subtabtable/index.jsx
@@ -114,11 +114,34 @@
      config = UtilsUpdate.updateSubTable(config)
      // 仅支持exec、prompt、pop 三种类型按钮
      let labels = []
      if (type === 'calendar') {
        config.action = config.action.filter(item => ['exec', 'prompt', 'pop', 'tab', 'excelIn', 'excelOut'].includes(item.OpenType))
        config.action = config.action.filter(item => {
          if (['exec', 'prompt', 'pop', 'tab', 'excelIn', 'excelOut'].includes(item.OpenType)) return true
          labels.push(item.label)
          return false
        })
      } else {
        config.action = config.action.filter(item => ['exec', 'prompt', 'pop'].includes(item.OpenType))
        config.action = config.action.filter(item => {
          if (['exec', 'prompt', 'pop'].includes(item.OpenType)) return true
          labels.push(item.label)
          return false
        })
      }
      if (window.GLOB.systemType !== 'production' && labels.length > 0) {
        notification.warning({
          top: 92,
          message: `不支持按钮(${labels.join('、')})的打开方式!`,
          duration: 5
        })
      }
      // 权限过滤
      if (this.props.menuType !== 'HS') {
@@ -200,9 +223,7 @@
      config.columns.forEach(col => {
        if (_hideCol.includes(col.uuid)) return
        if (col.linkThdMenu) {
          col.linkThdMenu = ''
        }
        col.linkThdMenu = '' // 弹窗中不可使用字段透视
        if (col.type === 'colspan' && col.sublist) {
          let _col = JSON.parse(JSON.stringify(col))