diff --git a/vue-fastapi-frontend/src/views/meta/metaInfo/index.vue b/vue-fastapi-frontend/src/views/meta/metaInfo/index.vue
index 91f733b..7f7b6ae 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() {
@@ -1577,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
})
}