diff --git a/src/views/demo/onlineform/formCall/CallModal.vue b/src/views/demo/onlineform/formCall/CallModal.vue index a80f393e..c8c50735 100644 --- a/src/views/demo/onlineform/formCall/CallModal.vue +++ b/src/views/demo/onlineform/formCall/CallModal.vue @@ -408,13 +408,43 @@ } if (!unref(isUpdate) && unref(isDetail)) { getTitle.value = '详情'; + let isTabs = false data.tab = changeCardStructure(data.tab) data.tab.forEach(itemComponent => { - if(itemComponent.component){ + if(itemComponent.component === 'Tabs'){ + isTabs = true + itemComponent.componentProps.options.forEach(itemChild => { + itemChild.children.forEach(itemChildComponent => { + if(itemChildComponent.component){ + itemChildComponent.componentProps.disabled = true + } + }) + }) + }else if(itemComponent.component){ itemComponent.componentProps.disabled = true } }) - data.tab = cardNestStructure(data.tab) + if(isTabs){ + data.tab = data.tab[0] + data.tab.componentProps.options = data.tab.componentProps.options.map(item => { + return { + value: item.value, + label: item.label, + schemas: item.children + } + }) + data.tab.componentProps.options = cardNestStructure(data.tab.componentProps.options) + data.tab.componentProps.options = data.tab.componentProps.options.map(item => { + return { + value: item.value, + label: item.label, + children: item.schemas + } + }) + tabsColumns.value = data.tab.componentProps.options + }else{ + data.tab = cardNestStructure(data.tab) + } if (Object.keys(cardValues.value).length > 0) { Object.keys(cardValues.value).forEach((cardItem) => { let cardItemKeyList = Object.keys(cardValues.value[cardItem]);