From 7e22b0940b987546f1db06ae8ff12ef0657f7b09 Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期一, 18 十一月 2024 11:09:06 +0800
Subject: [PATCH] 修改建议

---
 src/views/project/yw/dataManage/graph/GraphIndex.vue |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/src/views/project/yw/dataManage/graph/GraphIndex.vue b/src/views/project/yw/dataManage/graph/GraphIndex.vue
index fa36d2a..a9b915b 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"
@@ -94,6 +95,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,12 +112,17 @@
 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;
 });
@@ -192,7 +199,6 @@
 //#region ====================== 璺宠浆鏂囨。璇︽儏椤甸潰 init======================
 const router = useRouter();
 const openOperateDemoPage = (row: any) => {
-	console.log('馃殌 ~ row:', row);
 	router.push({
 		name: 'ViewFile',
 		query: {

--
Gitblit v1.9.3