From 598c3f880c572adefde7fc0891ed3f3370d7df48 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Wed, 12 Mar 2025 12:05:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF=E3=80=81?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E4=B8=A4=E4=B8=AA=E7=BB=84=E4=BB=B6=EF=BC=8C=E7=BB=84=E5=90=88?= =?UTF-8?q?=E5=90=8E=E5=86=8D=E6=8B=96=E5=85=A5tab=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=EF=BC=8C=E5=AF=BC=E5=87=BA=E5=BA=94=E7=94=A8=E6=8A=A5=E9=94=99?= =?UTF-8?q?=20#15248?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/de-app/AppExportForm.vue | 25 ++++--------------- 1 file changed, 5 insertions(+), 20 deletions(-) diff --git a/core/core-frontend/src/components/de-app/AppExportForm.vue b/core/core-frontend/src/components/de-app/AppExportForm.vue index ed4d37c19e..365c2ef57c 100644 --- a/core/core-frontend/src/components/de-app/AppExportForm.vue +++ b/core/core-frontend/src/components/de-app/AppExportForm.vue @@ -138,43 +138,28 @@ const close = () => { state.applyDownloadDrawer = false } -const gatherAppInfo = (viewIds, dsIds) => { - componentData.value.forEach(item => { +const gatherAppInfo = (viewIds, dsIds, componentDataCheck) => { + componentDataCheck.forEach(item => { if (item.component === 'UserView' && canvasViewInfo.value[item.id]) { const viewDetails = canvasViewInfo.value[item.id] const { id, tableId } = viewDetails viewIds.push(id) dsIds.push(tableId) } else if (item.component === 'Group') { - item.propValue.forEach(groupItem => { - if (groupItem.component === 'UserView') { - const viewDetails = canvasViewInfo.value[groupItem.id] - const { id, tableId } = viewDetails - viewIds.push(id) - dsIds.push(tableId) - } - }) + gatherAppInfo(viewIds, dsIds, item.propValue) } else if (item.component === 'DeTabs') { item.propValue.forEach(tabItem => { - tabItem.componentData.forEach(tabComponent => { - if (tabComponent.component === 'UserView') { - const viewDetails = canvasViewInfo.value[tabComponent.id] - const { id, tableId } = viewDetails - viewIds.push(id) - dsIds.push(tableId) - } - }) + gatherAppInfo(viewIds, dsIds, tabItem.componentData) }) } }) } - const downloadApp = () => { applyDownloadForm.value?.validate(valid => { if (valid) { const viewIds = [] const dsIds = [] - gatherAppInfo(viewIds, dsIds) + gatherAppInfo(viewIds, dsIds, componentData.value) export2AppCheck({ dvId: dvInfo.value.id, viewIds, dsIds }).then(rsp => { const params = { ...rsp.data,