From 59220ed4d1cde45e309d323f6af89df47c3560d4 Mon Sep 17 00:00:00 2001 From: xueyinfei <1207092115@qq.com> Date: Fri, 26 Sep 2025 17:57:02 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=85=83=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E4=BF=A1=E6=81=AF=E9=A1=B5=E9=9D=A2bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/meta/metaInfo/index.vue | 165 ++++++++++++------ 1 file changed, 107 insertions(+), 58 deletions(-) diff --git a/vue-fastapi-frontend/src/views/meta/metaInfo/index.vue b/vue-fastapi-frontend/src/views/meta/metaInfo/index.vue index 91f733b..4880ac8 100644 --- a/vue-fastapi-frontend/src/views/meta/metaInfo/index.vue +++ b/vue-fastapi-frontend/src/views/meta/metaInfo/index.vue @@ -387,40 +387,31 @@ width="1100" > - - - - - - - - - - - - - - - - 新增 - + + + + + + + + + + 新增 + + @@ -557,24 +548,14 @@ - - - - - - - - - + 0){ + const index = array.indexOf("表标签"); + let arr = index !== -1 ? array.slice(index + 1) : []; + let numberMap = { + 1: '一', + 2: '二', + 3: '三', + 4: '四', + 5: '五', + 6: '六', + 7: '七', + 8: '八', + 9: '九', + 10: '十' + }; + if (arr.length > 0){ + for (let i = 0; i < arr.length; i++) { + currentTableTag.value.clasList.push({idxName: numberMap[i+1], clasName: arr[i]}) + } + } + } } } function changeAstTag(){ @@ -1294,6 +1297,29 @@ currentColumnTag.value = item } } + currentColumnTag.value.clasList = [] + let array = findFullPathNames(currentColumnTag.value.beltBatchContent) + if (array && array.length>0){ + const index = array.indexOf("字段标签"); + let arr = index !== -1 ? array.slice(index + 1) : []; + let numberMap = { + 1: '一', + 2: '二', + 3: '三', + 4: '四', + 5: '五', + 6: '六', + 7: '七', + 8: '八', + 9: '九', + 10: '十' + }; + if (arr.length > 0){ + for (let i = 0; i < arr.length; i++) { + currentColumnTag.value.clasList.push({idxName: numberMap[i+1], clasName: arr[i]}) + } + } + } } } function handleTableTagClose(index){ @@ -1433,6 +1459,29 @@ procId.value = -1; } }) + getDirectoryTree({pageSize: 999}).then(res => { + directoryTree.value = res.rows + }) + } + + function findFullPathNames(targetId) { + function dfs(node, path = []) { + // 创建新路径数组避免引用污染 + const currentPath = [...path, node.contentName]; + // 检查当前节点是否为目标 + if (node.contentOnum === targetId) { + return currentPath; + } + // 递归搜索子节点 + if (node.children?.length > 0) { + for (const child of node.children) { + const result = dfs(child, currentPath); + if (result) return result; + } + } + return null; + } + return dfs(directoryTree.value[0],[]) } function getDatabaseList() { From 1e4090febbf2712ef2cef70f69e1a7577f8ffac8 Mon Sep 17 00:00:00 2001 From: xueyinfei <1207092115@qq.com> Date: Sat, 27 Sep 2025 09:16:01 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=85=83=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E4=BF=A1=E6=81=AF=E9=A1=B5=E9=9D=A2bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue-fastapi-frontend/src/views/meta/metaInfo/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vue-fastapi-frontend/src/views/meta/metaInfo/index.vue b/vue-fastapi-frontend/src/views/meta/metaInfo/index.vue index 4880ac8..7f7b6ae 100644 --- a/vue-fastapi-frontend/src/views/meta/metaInfo/index.vue +++ b/vue-fastapi-frontend/src/views/meta/metaInfo/index.vue @@ -1626,7 +1626,8 @@ delete dataAst.showDataAstSrc }) publishAstData({assetItems:data}).then(res=>{ - proxy.$modal.msgSuccess(res.msg) + proxy.$modal.msgSuccess("发布成功,已提交审批") + // proxy.$modal.msgSuccess(res.msg) astPublish.value = false }) }