king
2023-07-03 902ee517e0a3223ff2543924abe12df77376fb81
src/tabviews/custom/popview/index.jsx
@@ -201,6 +201,13 @@
          return false
        }
        if (item.setting.supModule) {
          let pid = item.setting.supModule.pop()
          item.setting.supModule = pid || ''
        } else {
          item.setting.supModule = ''
        }
        item.subtabs = item.subtabs.filter(tab => {
          if (
            tab.blacklist && tab.blacklist.length > 0 &&
@@ -210,12 +217,19 @@
          } else if (tab.hide === 'true') {
            return false
          }
          return true
        })
        if (item.setting.supModule) {
          let pid = item.setting.supModule.pop()
          item.setting.supModule = pid || ''
            if (tab.controlVal === '@pass@') {
              tab.$pass = true
            } else if (/,/ig.test(tab.controlVal)) {
              tab.controlVals = tab.controlVal.split(',')
            } else {
              tab.controlVals = [(tab.controlVal || '')]
            }
          }
          return true
        })
          if (item.setting.supModule) {
            item.setting.controlField = item.setting.controlField.toLowerCase()
@@ -230,15 +244,10 @@
              })
  
              item.subtabs = item.subtabs.filter(tab => {
                if (tab.controlVal === val) {
                  return false
                } else if (/,/ig.test(tab.controlVal)) {
                  return !tab.controlVal.split(',').includes(val)
                }
              if (tab.$pass) return true
      
                return true
              return !tab.controlVals.includes(val)
              })
            }
          }
        }