| | |
| | | } |
| | | |
| | | /** |
| | | * @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) { |
| | |
| | | if (em) { |
| | | item.setting.supModule = '' |
| | | } |
| | | if (item.wrap && item.wrap.supModule) { |
| | | item.wrap.supModule = item.setting.supModule |
| | | } |
| | | } |
| | | |
| | | if (item.wrap && item.wrap.doubleClick) { |