From 123c582b1a5a0378af4c54395be4de66839e8ed5 Mon Sep 17 00:00:00 2001 From: duanhao Date: Thu, 24 Jul 2025 17:02:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A1=A5=E6=A2=81=E8=8A=82=E7=82=B9=E4=B8=80?= =?UTF-8?q?=E7=BA=A7=E7=BD=91=E7=BB=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/keyNodeStore2.js | 12 + .../components/GraphPanel.vue | 8 +- .../components/LeaderDetailDialog.vue | 2 +- .../components/graph/bridgeCommunityGraph.vue | 280 ++++++++++++++---- src/views/KeyNodeRecognition2/index.vue | 1 + 5 files changed, 250 insertions(+), 53 deletions(-) diff --git a/src/store/keyNodeStore2.js b/src/store/keyNodeStore2.js index 28ad044..88540fc 100644 --- a/src/store/keyNodeStore2.js +++ b/src/store/keyNodeStore2.js @@ -27,6 +27,7 @@ export const useKeyNodeStore2 = defineStore('keyNode2', () => { const allLeaderData = ref([ { id: "President Biden Archived", + nodeId: "1349149096909668363", postId: 1, name: "President Biden Archived", chineseName: null, @@ -39,6 +40,7 @@ export const useKeyNodeStore2 = defineStore('keyNode2', () => { }, { id: "Joe Truzman", + nodeId: "3006348240", postId: 2, name: "Joe Truzman", chineseName: null, @@ -51,6 +53,7 @@ export const useKeyNodeStore2 = defineStore('keyNode2', () => { }, { id: "OSINTdefender", + nodeId: "1457867047334031360", postId: 3, name: "OSINTdefender", chineseName: null, @@ -63,6 +66,7 @@ export const useKeyNodeStore2 = defineStore('keyNode2', () => { }, { id: "Paul Golding", + nodeId: "455264233", postId: 4, name: "Paul Golding", chineseName: null, @@ -75,6 +79,7 @@ export const useKeyNodeStore2 = defineStore('keyNode2', () => { }, { id: "Rep. Matt Gaetz", + nodeId: "818948638890217473", postId: 5, name: "Rep. Matt Gaetz", chineseName: null, @@ -87,6 +92,7 @@ export const useKeyNodeStore2 = defineStore('keyNode2', () => { }, { id: "Israel Defense Forces", + nodeId: "18576537", postId: 6, name: "Israel Defense Forces", chineseName: null, @@ -99,6 +105,7 @@ export const useKeyNodeStore2 = defineStore('keyNode2', () => { }, { id: "Andy Ngo", + nodeId: "2835451658", postId: 7, name: "Andy Ngo", chineseName: null, @@ -111,6 +118,7 @@ export const useKeyNodeStore2 = defineStore('keyNode2', () => { }, { id: "Secretary Antony Blinken", + nodeId: "1350150750966603777", postId: 8, name: "Secretary Antony Blinken", chineseName: null, @@ -123,6 +131,8 @@ export const useKeyNodeStore2 = defineStore('keyNode2', () => { }, { id: "Emmanuel Macron", + nodeId: "1976143068", + postId: 9, name: "Emmanuel Macron", chineseName: null, followers: "1018.6万", @@ -134,6 +144,8 @@ export const useKeyNodeStore2 = defineStore('keyNode2', () => { }, { id: "Jackson Hinkle 🇺🇸", + nodeId: "1151913018936053760", + postId: 10, name: "Jackson Hinkle 🇺🇸", chineseName: null, followers: "304.9万", diff --git a/src/views/KeyNodeRecognition2/components/GraphPanel.vue b/src/views/KeyNodeRecognition2/components/GraphPanel.vue index 42ffa13..61e5d7c 100644 --- a/src/views/KeyNodeRecognition2/components/GraphPanel.vue +++ b/src/views/KeyNodeRecognition2/components/GraphPanel.vue @@ -51,7 +51,7 @@ :allLeaderData="store.allLeaderData" @handle:openDialog="handleGraphNodeClick" /> - +
2023.10.07 00:00:00 @@ -102,6 +102,8 @@ import BridgeCommunityGraph from './graph/bridgeCommunityGraph.vue'; const store = useKeyNodeStore2(); const leaderGraphRef = ref(null); +// 添加对BridgeCommunityGraph的引用 +const bridgeGraphRef = ref(null); const handleGraphNodeClick = (leaderData) => { store.openLeaderDetail(leaderData); @@ -111,6 +113,10 @@ const highlightNode = (leaderId) => { if (leaderGraphRef.value) { leaderGraphRef.value.highlightNode(leaderId); } + // 调用BridgeCommunityGraph的highlightNode方法 + if (bridgeGraphRef.value) { + bridgeGraphRef.value.highlightNode(leaderId); + } }; // 计算时间点在时间轴上的位置百分比 diff --git a/src/views/KeyNodeRecognition2/components/LeaderDetailDialog.vue b/src/views/KeyNodeRecognition2/components/LeaderDetailDialog.vue index 4c43798..ad6cce2 100644 --- a/src/views/KeyNodeRecognition2/components/LeaderDetailDialog.vue +++ b/src/views/KeyNodeRecognition2/components/LeaderDetailDialog.vue @@ -56,7 +56,7 @@

- 贴文被转总数:   1329 + 贴文被转总数: {{ store.activeLeader.leaderOriginInfo.transmit }}

diff --git a/src/views/KeyNodeRecognition2/components/graph/bridgeCommunityGraph.vue b/src/views/KeyNodeRecognition2/components/graph/bridgeCommunityGraph.vue index 5abe6ad..4772ccd 100644 --- a/src/views/KeyNodeRecognition2/components/graph/bridgeCommunityGraph.vue +++ b/src/views/KeyNodeRecognition2/components/graph/bridgeCommunityGraph.vue @@ -3,106 +3,191 @@