king
2023-05-22 43a517b80f2803e0dcf6658113520c4a14c8c17f
src/tabviews/custom/index.jsx
@@ -486,6 +486,12 @@
        }
      }
      let pass = skip
      if (item.wrap && item.wrap.permission === 'false') {
        pass = true
      }
      // 权限过滤
      if (item.action && item.action.length > 0) {
        item.action = item.action.filter(cell => {
@@ -506,7 +512,7 @@
            cell = this.getPrinter(cell, item.uuid)
          }
          return skip || permAction[cell.uuid]
          return pass || permAction[cell.uuid]
        })
      }
@@ -559,7 +565,7 @@
                    cell = this.getPrinter(cell, item.uuid)
                  }
                  return skip || permAction[cell.uuid]
                  return pass || permAction[cell.uuid]
                } else {
                  cell = this.resetElement(cell)
                }
@@ -618,7 +624,7 @@
              cell = this.resetElement(cell)
            }
            return cell.eleType !== 'button' || skip || permAction[cell.uuid]
            return cell.eleType !== 'button' || pass || permAction[cell.uuid]
          })
          if (!card.backElements || card.backElements.length === 0) return
@@ -643,7 +649,7 @@
              cell = this.resetElement(cell)
            }
            return cell.eleType !== 'button' || skip || permAction[cell.uuid]
            return cell.eleType !== 'button' || pass || permAction[cell.uuid]
          })
        })
      } else if (item.type === 'balcony') {
@@ -674,7 +680,7 @@
            cell = this.resetElement(cell)
          }
          return cell.eleType !== 'button' || skip || permAction[cell.uuid]
          return cell.eleType !== 'button' || pass || permAction[cell.uuid]
        })
      } else if (item.type === 'form') {
        item.subcards = item.subcards.map(group => {