king
2021-01-07 696d85238a734a4b691f486fde05c93fc5dba3ab
src/tabviews/custom/index.jsx
@@ -248,14 +248,14 @@
      }
      // 权限过滤
      if (this.props.menuType !== 'HS') {
      let isHS = this.props.menuType === 'HS'
        if (item.action && item.action.length > 0) {
          item.action = item.action.filter(cell => {
            cell.logLabel = item.name + '-' + cell.label
            cell.ContainerId = this.state.ContainerId
            cell.$menuId = item.uuid
            return permAction[cell.uuid]
          return isHS || permAction[cell.uuid]
          })
        }
        if (item.type === 'card') {
@@ -277,7 +277,7 @@
                cell.innerHeight = 'auto'
              }
              return cell.eleType !== 'button' || permAction[cell.uuid]
            return cell.eleType !== 'button' || isHS || permAction[cell.uuid]
            })
            card.backElements = card.backElements.filter(cell => {
              if (cell.eleType === 'button') {
@@ -288,7 +288,7 @@
              } else if (['text', 'number', 'link'].includes(cell.eleType) && !cell.height && _hasheight) {
                cell.innerHeight = 'auto'
              }
              return cell.eleType !== 'button' || permAction[cell.uuid]
            return cell.eleType !== 'button' || isHS || permAction[cell.uuid]
            })
          })
        } else if (item.type === 'table' && item.subtype === 'tablecard') {
@@ -303,7 +303,7 @@
              } else if (['text', 'number', 'link'].includes(cell.eleType) && !cell.height && _hasheight) {
                cell.innerHeight = 'auto'
              }
              return cell.eleType !== 'button' || permAction[cell.uuid]
            return cell.eleType !== 'button' || isHS || permAction[cell.uuid]
            })
          })
        } else if (item.type === 'table' && item.subtype === 'normaltable') {
@@ -315,19 +315,10 @@
              cell.ContainerId = this.state.ContainerId
              cell.$menuId = item.uuid
              return permAction[cell.uuid]
            return isHS || permAction[cell.uuid]
            })
            return col.elements.length !== 0
          })
        }
      } else {
        if (item.action && item.action.length > 0) {
          item.action = item.action.map(cell => {
            cell.logLabel = item.name + '-' + cell.label
            cell.$menuId = item.uuid
            return cell
          })
        }
      }
      if (item.setting && item.setting.supModule) {