From 747a71059231304aa054641760ef9183001340eb Mon Sep 17 00:00:00 2001 From: "si@aidatagov.com" Date: Tue, 27 May 2025 00:22:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E4=BA=A7=E6=A8=A1=E5=9D=97=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/dataAsset/directory/index.vue | 74 ++++++++++++------- 1 file changed, 47 insertions(+), 27 deletions(-) diff --git a/vue-fastapi-frontend/src/views/dataAsset/directory/index.vue b/vue-fastapi-frontend/src/views/dataAsset/directory/index.vue index 0d12ed5..33ea1a1 100644 --- a/vue-fastapi-frontend/src/views/dataAsset/directory/index.vue +++ b/vue-fastapi-frontend/src/views/dataAsset/directory/index.vue @@ -290,28 +290,51 @@ {{ currentNode.dataAstDesc }} - + - + - + + + + - - - + + + + + +
@@ -390,6 +413,7 @@ const defaultProps = { } const directoryTree = ref([]) const currentNode = ref({}) + const currentColumnData = ref({}); const directoryTableData = ref([]) const tableHeaderLabel = computed(() => { @@ -512,27 +536,21 @@ const handleNodeClick = async (node) => { await setHtmlContent(node) } else { faq.value = node.dataAstFaq + const fides =await getAssetFieldTable(node.astNo) + assetFieldData.value = fides.data.columnList || [] + tablesRowCol.value = assetFieldData.value.map((item) => ({ + prop: item.fldEngName, + label: item.fldCnName, + })) getMetaSecurityData({ dataAstSrc: node.dataAstSrc, dataAstEngName: node.dataAstEngName, }) .then(({ data }) => { metaSecurityData.value = data.data - tablesRowCol.value = data.tablesRowCol - .split(',') - .map((i) => ({ prop: i, label: '' })) - return getAssetFieldTable(node.astNo) - }) - .then(({ data }) => { - assetFieldData.value = data.columnList || [] - tablesRowCol.value = tablesRowCol.value.map((i) => { - const item = assetFieldData.value.find((j) => j.fldEngName === i.prop) - if (item) { - i.label = item.fldCnName - } - return i - }) + }) + } } @@ -734,7 +752,9 @@ const handleIframeLoad = () => { .faq { white-space: pre-wrap; } - +.full-height-tabs { + height: calc(100vh - 320px); +} .html-box { :deep(.el-card__body) { overflow: auto;