From 176c6e1da22e96a1110fa91f8fc8eb8ad2881e08 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 08 八月 2022 18:13:37 +0800 Subject: [PATCH] 2022-08-08 --- src/utils/utils-custom.js | 18 +++++++++++++++--- 1 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/utils/utils-custom.js b/src/utils/utils-custom.js index eafbca4..630ecc0 100644 --- a/src/utils/utils-custom.js +++ b/src/utils/utils-custom.js @@ -3,16 +3,17 @@ * @description 鑾峰彇涓嬬骇妯″潡 * @return {String} selfId 褰撳墠缁勪欢id */ - static getSubModules (components, selfId) { + static getSubModules (components, selfId, supId) { let modules = components.map(item => { - if (item.uuid === selfId) { + if (item.uuid === selfId || item.type === 'navbar') { return { children: null } } else if (item.format) { // 鏁版嵁鏍煎紡锛屽瓨鍦ㄦ暟鎹簮 return { value: item.uuid, - label: item.name + label: item.name, + disabled: supId === item.uuid } } else if (item.type === 'tabs') { let _item = { @@ -575,6 +576,17 @@ return col }) } + } else if (item.type === 'form') { + item.subcards = item.subcards.map(cell => { + cell.uuid = this.getuuid() + + cell.fields = cell.fields.map(m => { + m.uuid = this.getuuid() + + return m + }) + return cell + }) } if (item.btnlog) { -- Gitblit v1.8.0