king
2023-06-01 aa8a9f0845ed197adbfdf152376121e172bee574
src/tabviews/custom/index.jsx
@@ -153,7 +153,7 @@
      // 数据缓存设置
      if (config.cacheUseful === 'true') {
        if (!['day', 'hour'].includes(config.timeUnit)) {
        if (!['day', 'hour', 'minute'].includes(config.timeUnit)) {
          config.timeUnit = 'day'
        }
        config.cacheTime = config.cacheTime || 1
@@ -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 => {
@@ -495,7 +501,7 @@
          cell.$toolbtn = true
          if (!mutil && cell.syncComponentId === item.setting.supModule) {
          if (!mutil && cell.syncComponentId && cell.syncComponentId === item.setting.supModule) {
            cell.syncComponentId = ''
            if (cell.execSuccess === 'line' || cell.execSuccess === 'grid') {
              cell.execSuccess = 'mainline'
@@ -506,7 +512,7 @@
            cell = this.getPrinter(cell, item.uuid)
          }
          return skip || permAction[cell.uuid]
          return pass || permAction[cell.uuid]
        })
      }
@@ -548,7 +554,7 @@
                  cell = this.resetButton(item, cell, popview)
                  if (cell.syncComponentId === item.setting.supModule) {
                  if (cell.syncComponentId && cell.syncComponentId === item.setting.supModule) {
                    cell.syncComponentId = ''
                    if (cell.execSuccess === 'line' || cell.execSuccess === 'grid') {
                      cell.execSuccess = 'mainline'
@@ -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)
                }
@@ -588,6 +594,14 @@
        if (item.subtype === 'editable') {
          item.submit.logLabel = item.$menuname + '-提交'
          item.submit.$menuId = item.uuid
          item.submit.syncComponentId = item.submit.syncComponent ? (item.submit.syncComponent.pop() || '') : ''
          if (item.submit.syncComponentId && item.submit.syncComponentId === item.setting.supModule) {
            item.submit.syncComponentId = ''
            if (item.submit.execSuccess === 'grid') {
              item.submit.execSuccess = 'mainline'
            }
          }
        }
      } else if (item.type === 'card' || item.type === 'carousel' || item.type === 'timeline') {
        item.subcards && item.subcards.forEach(card => {
@@ -604,7 +618,7 @@
              cell = this.resetButton(item, cell, popview)
              if (!mutil && cell.syncComponentId === item.setting.supModule) {
              if (!mutil && cell.syncComponentId && cell.syncComponentId === item.setting.supModule) {
                cell.syncComponentId = ''
                if (cell.execSuccess === 'line' || cell.execSuccess === 'grid') {
                  cell.execSuccess = 'mainline'
@@ -618,7 +632,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
@@ -629,7 +643,7 @@
              cell = this.resetButton(item, cell, popview)
              if (!mutil && cell.syncComponentId === item.setting.supModule) {
              if (!mutil && cell.syncComponentId && cell.syncComponentId === item.setting.supModule) {
                cell.syncComponentId = ''
                if (cell.execSuccess === 'line' || cell.execSuccess === 'grid') {
                  cell.execSuccess = 'mainline'
@@ -643,7 +657,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') {
@@ -660,7 +674,7 @@
            cell = this.resetButton(item, cell, popview)
            if (cell.syncComponentId === item.wrap.supModule) {
            if (cell.syncComponentId && cell.syncComponentId === item.wrap.supModule) {
              cell.syncComponentId = ''
              if (cell.execSuccess === 'line' || cell.execSuccess === 'grid') {
                cell.execSuccess = 'mainline'
@@ -674,7 +688,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 => {
@@ -690,9 +704,9 @@
            group.subButton.Ot = item.wrap.datatype === 'static' ? 'notRequired' : 'requiredSgl'
          }
          group.subButton.syncComponentId = group.subButton.syncComponent ? group.subButton.syncComponent.pop() : ''
          group.subButton.syncComponentId = group.subButton.syncComponent ? (group.subButton.syncComponent.pop() || '') : ''
          if (group.subButton.syncComponentId === item.setting.supModule) {
          if (group.subButton.syncComponentId && group.subButton.syncComponentId === item.setting.supModule) {
            group.subButton.syncComponentId = ''
            if (group.subButton.execSuccess === 'grid') {
              group.subButton.execSuccess = 'mainline'