From f95688c0f922375acd2f6f3c44b7db9aaeceaa7e Mon Sep 17 00:00:00 2001
From: QYF-GitLab1 <1940665526@qq.com>
Date: 星期四, 18 七月 2024 11:00:56 +0800
Subject: [PATCH] 1

---
 src/pages/academicSchools/index.vue |   89 ++++++++++++++++++++++----------------------
 1 files changed, 45 insertions(+), 44 deletions(-)

diff --git a/src/pages/academicSchools/index.vue b/src/pages/academicSchools/index.vue
index 7b41958..6c76c81 100644
--- a/src/pages/academicSchools/index.vue
+++ b/src/pages/academicSchools/index.vue
@@ -483,54 +483,24 @@
         animationDurationUpdate: 1500,
         animationEasingUpdate: "quinticInOut",
         series: [
-          {
-            type: "graph",
-            layout: "force",
-            roam: true,
-            symbolSize: SymbolSize, // 璋冩暣鑺傜偣澶у皬
-            label: {
-              show: true,
-              color: "black", // 璁剧疆鑺傜偣鏂囧瓧棰滆壊涓洪粦鑹�
-              fontSize: FontSize, // 璁剧疆鏂囧瓧澶у皬
-            },
-            edgeSymbol: ["circle", "arrow"],
-            edgeSymbolSize: [4, 10],
-            data: nodeData,
-            links: links,
-            categories: this.categories,
-            lineStyle: {
-              opacity: 0.9,
-              width: 2,
-              curveness: 0.3,
-            },
-            emphasis: {
-              focus: "adjacency",
-              lineStyle: {
-                width: 10,
-              },
-            },
-            force: {
-              // layoutAnimation: false,
-              // friction: 1,
-              repulsion: 800,
-              edgeLength: 400,
-            },
-          },
           // {
-          //   name: "Les Miserables",
           //   type: "graph",
-          //   legendHoverLink: false,
-          //   layout: "none",
-          //   data: nodeData,
-          //   links: links,
-          //   categories: this.categories,
+          //   layout: "force",
           //   roam: true,
+          //   symbolSize: SymbolSize, // 璋冩暣鑺傜偣澶у皬
           //   label: {
-          //     position: "right",
-          //     formatter: "{b}",
+          //     show: true,
+          //     color: "black", // 璁剧疆鑺傜偣鏂囧瓧棰滆壊涓洪粦鑹�
+          //     fontSize: FontSize, // 璁剧疆鏂囧瓧澶у皬
           //   },
+          //   edgeSymbol: ["circle", "arrow"],
+          //   edgeSymbolSize: [4, 10],
+          //   data: nodeData,
+          //   links,
+          //   categories: this.categories,
           //   lineStyle: {
-          //     color: "source",
+          //     opacity: 0.9,
+          //     width: 2,
           //     curveness: 0.3,
           //   },
           //   emphasis: {
@@ -539,11 +509,41 @@
           //       width: 10,
           //     },
           //   },
+          //   force: {
+          //     // layoutAnimation: false,
+          //     // friction: 1,
+          //     repulsion: 800,
+          //     edgeLength: 400,
+          //   },
           // },
+          {
+            name: "Les Miserables",
+            type: "graph",
+            legendHoverLink: false,
+            layout: "none",
+            data: nodeData,
+            links: links,
+            categories: this.categories,
+            roam: true,
+            label: {
+              position: "right",
+              formatter: "{b}",
+            },
+            lineStyle: {
+              color: "source",
+              curveness: 0.3,
+            },
+            emphasis: {
+              focus: "adjacency",
+              lineStyle: {
+                width: 10,
+              },
+            },
+          },
         ],
       };
       // 灏嗙敓鎴愮殑杩炴帴绾挎坊鍔犲埌echarts鍥捐〃鐨刼ption涓�
-      option.series[0].links = links;
+      // option.series[0].links = links;
       // 璁剧疆鐐瑰嚮浜嬩欢鐩戝惉
       myChart.off("click");
       myChart.on("click", (params) => {
@@ -551,7 +551,8 @@
           this.spaceTimeArr(params.data.id);
         }
       });
-      option && myChart.setOption(option);
+      console.log(option,'option')
+      myChart.setOption(option);
     },
     // 鍩虹鎼滅储
     onSearch(val, index) {

--
Gitblit v1.9.1