king
2021-09-03 b1725ffebe2166c2997d4943046307e5f87eaeb9
src/views/pcdesign/index.jsx
@@ -903,6 +903,10 @@
    nodes.children = trees
    nodes.popviews = popviews
    if (config.components.findIndex(item => item.type === 'login') > -1) {
      nodes.login = true
    }
    return nodes
  }
@@ -924,23 +928,6 @@
        })
      }
    }
  }
  filterConfig = (components) => {
    return components.map(item => {
      if (item.type === 'tabs') {
        item.subtabs.forEach(tab => {
          tab.components = this.filterConfig(tab.components)
        })
      } else if (item.type === 'group') {
        item.components = this.filterConfig(item.components)
      } else if (item.type === 'table' && item.subtype === 'normaltable') {
        item.search = item.search.filter(a => !a.origin)
        item.action = item.action.filter(a => !a.origin)
        item.cols = item.cols.filter(a => !a.origin)
      }
      return item
    })
  }
  submitConfig = () => {
@@ -966,8 +953,6 @@
    })
    setTimeout(() => {
      config.components = this.filterConfig(config.components)
      if (config.enabled && this.verifyConfig()) {
        config.enabled = false
      }