From e48bcbb74beca5fe0e3a64b68a149786d30c66a2 Mon Sep 17 00:00:00 2001
From: zdl <3489966805@qq.com>
Date: Mon, 15 Dec 2025 14:17:28 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E6=A1=91=E5=9F=BA=E5=9B=BE=E6=A0=B7?=
=?UTF-8?q?=E5=BC=8F=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/TransmissionChainAnalysis.js | 87 +++++++++++++++++--
1 file changed, 79 insertions(+), 8 deletions(-)
diff --git a/src/views/EventDetail/components/TransmissionChainAnalysis.js b/src/views/EventDetail/components/TransmissionChainAnalysis.js
index f87efc8c..c9ce0085 100644
--- a/src/views/EventDetail/components/TransmissionChainAnalysis.js
+++ b/src/views/EventDetail/components/TransmissionChainAnalysis.js
@@ -339,20 +339,39 @@ function getGraphOption(data) {
};
}
-// 桑基图配置
+// 桑基图配置
function getSankeyOption(data) {
if (!data || !data.nodes || !data.links) {
return { title: { text: '暂无桑基图数据', left: 'center', top: 'center' } };
}
- return {
- title: { text: '事件影响力传导流向', left: 'center', top: 10 },
- tooltip: {
- trigger: 'item',
+ return {
+ title: {
+ text: '事件影响力传导流向',
+ left: 'center',
+ top: 10,
+ textStyle: {
+ color: '#00d2d3',
+ fontSize: 16,
+ fontWeight: 'bold'
+ }
+ },
+ tooltip: {
+ trigger: 'item',
triggerOn: 'mousemove',
+ backgroundColor: 'rgba(30, 30, 30, 0.95)',
+ borderColor: '#444',
+ textStyle: {
+ color: '#fff'
+ },
formatter: (params) => {
if (params.dataType === 'node') {
- return `${params.name}
类型: ${params.data.type || 'N/A'}
层级: ${params.data.level || 'N/A'}
点击查看详情`;
+ return `