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] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=85=83=E6=95=B0=E6=8D=AE?=
=?UTF-8?q?=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() {