king
2022-11-04 6c919b7a55f15af56b212d059f1a5ea44d1ed5b8
src/utils/utils-custom.js
@@ -277,6 +277,31 @@
  }
  /**
   * @description 获取上级模块
   * @return {String}  selfId  当前组件id
   */
  static checkSupModules (modules, supId) {
    let has = false
    let check = (list) => {
      list.forEach(m => {
        if (has) return
        if (supId === m.value) {
          has = true
          return
        }
        if (m.children) {
          check(m.children)
        }
      })
    }
    check(modules)
    return has
  }
  /**
   * @description 获取可关联模块
   */
  static getLinkModules (components) {
@@ -815,6 +840,9 @@
      if (em) {
        item.setting.supModule = ''
      }
      if (item.wrap && item.wrap.supModule) {
        item.wrap.supModule = item.setting.supModule
      }
    }
    if (item.wrap && item.wrap.doubleClick) {