From 172b2c1698ae0bca0436e54513a37f81c4c8b30c Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期三, 19 三月 2025 11:39:09 +0800 Subject: [PATCH] doc docx --- src/views/project/yw/dataManage/graph/GraphIndex.vue | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/views/project/yw/dataManage/graph/GraphIndex.vue b/src/views/project/yw/dataManage/graph/GraphIndex.vue index 840ca42..caa6f78 100644 --- a/src/views/project/yw/dataManage/graph/GraphIndex.vue +++ b/src/views/project/yw/dataManage/graph/GraphIndex.vue @@ -10,6 +10,7 @@ label: 'group_name', children: 'children', }" + defaultExpandAll :treedata="listTreeData" title-name="鍒嗙粍鍒楄〃" :show-more-operate="false" @@ -48,6 +49,7 @@ :data="displayTableData" highlight-current-row > + <el-table-column type="index" label="搴忓彿" width="55" fixed="left" align="center"></el-table-column> <el-table-column prop="name" label="鏂囦欢鍚嶇О" fixed="left" show-overflow-tooltip align="left" /> <el-table-column prop="type" width="120" label="鏂囦欢绫诲瀷" show-overflow-tooltip align="center" /> <el-table-column prop="size" width="120" label="鏂囦欢澶у皬" show-overflow-tooltip align="center" /> @@ -94,6 +96,7 @@ import mittBus from '/@/utils/mitt'; import { useCompRef } from '/@/utils/types'; import { convertFileSize, convertListToTree } from '/@/utils/util'; +import { OptClassificationMap, classificationEnum } from '/@/views/types/metrics'; const state = reactive({ tableParams: { PageIndex: 1, @@ -110,13 +113,18 @@ const listData = ref([]); const currentListID = computed(() => currentNode.value?.group_id); const currentNode = ref(null); - const listTreeData = computed(() => { - const result = convertListToTree(listData.value, { + const byParentData = convertListToTree(listData.value, { ID: 'group_id', ParentID: 'p_group_id', Children: 'children', }); + const result = []; + byParentData.forEach((item) => { + if (item.group_type == OptClassificationMap[classificationEnum.Knowledge]) { + result.push(item); + } + }); return result; }); -- Gitblit v1.9.3