From 3e13e3e61854671fce6aac45679e1b7252126105 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期日, 24 十二月 2023 23:41:01 +0800 Subject: [PATCH] Merge branch 'master' into positec --- src/utils/utils-custom.js | 32 ++++++++++++-------------------- 1 files changed, 12 insertions(+), 20 deletions(-) diff --git a/src/utils/utils-custom.js b/src/utils/utils-custom.js index 44a9750..d08226b 100644 --- a/src/utils/utils-custom.js +++ b/src/utils/utils-custom.js @@ -6,7 +6,7 @@ * @description 鑾峰彇涓嬬骇妯″潡 * @return {String} selfId 褰撳墠缁勪欢id */ - static getSubModules (components, selfId, supId, has) { + static getSubModules (components, selfId, supId, interfaces) { let modules = [] components.forEach(item => { if (item.uuid === selfId || item.type === 'navbar') { @@ -49,7 +49,7 @@ type: 'tab', value: f_tab.uuid, label: f_tab.label, - children: this.getSubModules(f_tab.components, selfId, supId, has) + children: this.getSubModules(f_tab.components, selfId, supId) } if (subItem.children.length === 0) { @@ -94,6 +94,15 @@ } } }) + + if (interfaces && interfaces.length > 0) { + interfaces.forEach(item => { + modules.push({ + value: item.uuid, + label: item.name + }) + }) + } return modules } @@ -719,7 +728,7 @@ * @description 閲嶇疆缁勪欢閰嶇疆 * @return {String} item 缁勪欢淇℃伅 */ - static resetComponentConfig = (item, appType) => { + static resetComponentConfig = (item, appType, commonId) => { if (item.type === 'navbar') { return item } @@ -727,9 +736,6 @@ if (item.subtype === 'tablecard') { // 鍏煎 item.type = 'card' } - - item.uuid = this.getuuid() - let commonId = this.getuuid() // 閲嶇疆缁勪欢鍚嶇О let sign = this.getSignName() @@ -952,20 +958,6 @@ cell.uuid = this.getuuid() return cell }) - } - - if (item.setting && item.setting.supModule && item.setting.supModule[0] !== 'empty') { - item.setting.supModule = '' - } - - if (item.wrap && item.wrap.supType === 'multi') { - item.wrap.supType = 'single' - - delete item.supNodes - } - - if (item.wrap && item.wrap.supModule) { - item.wrap.supModule = '' } if (item.wrap && item.wrap.doubleClick) { -- Gitblit v1.8.0