调整目录结构
This commit is contained in:
		
							parent
							
								
									f68df3cb8b
								
							
						
					
					
						commit
						63ee4cc14c
					
				| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
import { createRouter, createWebHistory } from "vue-router";
 | 
			
		||||
// 导入组件,这里先占位
 | 
			
		||||
const KeyNodeRecognition2 = () => import("@/views/KeyNodeRecognition1.vue");
 | 
			
		||||
const KeyNodeRecognition3 = () => import("@/views/KeyNodeRecognition2.vue");
 | 
			
		||||
const KeyNodeRecognition2 = () => import("@/views/KeyNodeRecognition1/index.vue");
 | 
			
		||||
const KeyNodeRecognition3 = () => import("@/views/KeyNodeRecognition2/index.vue");
 | 
			
		||||
const KeyNodeRecognition1 = () => import("@/views/KeyNodeRecognition3/index.vue");
 | 
			
		||||
const LinkPrediction1 = () => import("@/views/LinkPrediction1.vue");
 | 
			
		||||
const LinkPrediction2 = () => import("@/views/LinkPrediction2.vue");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,22 +0,0 @@
 | 
			
		|||
import { defineStore } from 'pinia';
 | 
			
		||||
 | 
			
		||||
export const useActionStore = defineStore('action', {
 | 
			
		||||
  state: () => ({
 | 
			
		||||
    triggerCombineAction: false,
 | 
			
		||||
    targetNodeId: '840983' // 默认高亮节点ID
 | 
			
		||||
  }),
 | 
			
		||||
  actions: {
 | 
			
		||||
    // 触发定位并高亮操作
 | 
			
		||||
    triggerCombine() {
 | 
			
		||||
      this.triggerCombineAction = true;
 | 
			
		||||
      // 自动重置状态,避免重复触发
 | 
			
		||||
      setTimeout(() => {
 | 
			
		||||
        this.triggerCombineAction = false;
 | 
			
		||||
      }, 100);
 | 
			
		||||
    },
 | 
			
		||||
    // 设置目标节点ID
 | 
			
		||||
    setTargetNodeId(id) {
 | 
			
		||||
      this.targetNodeId = id;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
});
 | 
			
		||||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
import { defineStore } from 'pinia'
 | 
			
		||||
import { ref, computed } from 'vue'
 | 
			
		||||
import { defineStore } from "pinia";
 | 
			
		||||
import { ref, computed } from "vue";
 | 
			
		||||
 | 
			
		||||
export const useKeyNodeStore1 = defineStore('keyNode1', () => {
 | 
			
		||||
export const useKeyNodeStore1 = defineStore("keyNode1", () => {
 | 
			
		||||
  const allLeaderData = ref([
 | 
			
		||||
    {
 | 
			
		||||
      userid: "huxijin",
 | 
			
		||||
| 
						 | 
				
			
			@ -516,7 +516,7 @@ export const useKeyNodeStore1 = defineStore('keyNode1', () => {
 | 
			
		|||
  const visibleLeaders = computed(() => allLeaderData.value.slice(0, activeTimePoint.value));
 | 
			
		||||
 | 
			
		||||
  const getLeaderById = (id) => {
 | 
			
		||||
    const leader = allLeaderData.value.find(l => l.id === id);
 | 
			
		||||
    const leader = allLeaderData.value.find((l) => l.id === id);
 | 
			
		||||
    if (!leader) return null;
 | 
			
		||||
 | 
			
		||||
    return {
 | 
			
		||||
| 
						 | 
				
			
			@ -525,10 +525,10 @@ export const useKeyNodeStore1 = defineStore('keyNode1', () => {
 | 
			
		|||
        avatar: leader.avatar,
 | 
			
		||||
        followers: leader.followers,
 | 
			
		||||
        posts: posts.value
 | 
			
		||||
          .filter(p => p.author === leader.id)
 | 
			
		||||
          .map(p => ({
 | 
			
		||||
          .filter((p) => p.author === leader.id)
 | 
			
		||||
          .map((p) => ({
 | 
			
		||||
            id: p.id,
 | 
			
		||||
            type: '舆情监测',
 | 
			
		||||
            type: "舆情监测",
 | 
			
		||||
            content: p.content,
 | 
			
		||||
            time: p.timestamp,
 | 
			
		||||
            like: p.like,
 | 
			
		||||
| 
						 | 
				
			
			@ -544,7 +544,7 @@ export const useKeyNodeStore1 = defineStore('keyNode1', () => {
 | 
			
		|||
    timePoints.value = allLeaderData.value.map((leader, index) => ({
 | 
			
		||||
      id: index + 1,
 | 
			
		||||
      leaderId: leader.id,
 | 
			
		||||
      timestamp: posts.value[index]?.timestamp || 'N/A'
 | 
			
		||||
      timestamp: posts.value[index]?.timestamp || "N/A"
 | 
			
		||||
    }));
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -554,7 +554,7 @@ export const useKeyNodeStore1 = defineStore('keyNode1', () => {
 | 
			
		|||
 | 
			
		||||
  function openLeaderDetail(leaderDataFromGraph) {
 | 
			
		||||
    activeLeader.value = getLeaderById(leaderDataFromGraph.id);
 | 
			
		||||
    if(activeLeader.value) {
 | 
			
		||||
    if (activeLeader.value) {
 | 
			
		||||
      isLeaderDetailDialogVisible.value = true;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
| 
						 | 
				
			
			@ -600,6 +600,6 @@ export const useKeyNodeStore1 = defineStore('keyNode1', () => {
 | 
			
		|||
    openPostDetail,
 | 
			
		||||
    closePostDetail,
 | 
			
		||||
    openDetailsModal,
 | 
			
		||||
    closeDetailsModal,
 | 
			
		||||
  }
 | 
			
		||||
})
 | 
			
		||||
    closeDetailsModal
 | 
			
		||||
  };
 | 
			
		||||
});
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -50,16 +50,16 @@
 | 
			
		|||
import { ref, onMounted, onUnmounted } from "vue";
 | 
			
		||||
import { useKeyNodeStore1 } from "@/store/keyNodeStore1";
 | 
			
		||||
 | 
			
		||||
import LeaderList from "./KeyNodeRecognition1/components/LeaderList.vue";
 | 
			
		||||
import GraphPanel from "./KeyNodeRecognition1/components/GraphPanel.vue";
 | 
			
		||||
import DetailsModal from "./KeyNodeRecognition1/components/DetailsModal.vue";
 | 
			
		||||
import LeaderDetailDialog from "./KeyNodeRecognition1/components/LeaderDetailDialog.vue";
 | 
			
		||||
import PostDetailDialog from "./KeyNodeRecognition1/components/PostDetailDialog.vue";
 | 
			
		||||
import LeaderList from "./components/LeaderList.vue";
 | 
			
		||||
import GraphPanel from "./components/GraphPanel.vue";
 | 
			
		||||
import DetailsModal from "./components/DetailsModal.vue";
 | 
			
		||||
import LeaderDetailDialog from "./components/LeaderDetailDialog.vue";
 | 
			
		||||
import PostDetailDialog from "./components/PostDetailDialog.vue";
 | 
			
		||||
 | 
			
		||||
import LeaderAnalysis from "./KeyNodeRecognition1/components/LeaderAnalysis.vue";
 | 
			
		||||
import EventHeatmap from "../components/weight/EventHeatmap.vue";
 | 
			
		||||
import PostDynamics from "../components/weight/PostDynamics.vue";
 | 
			
		||||
import WordCloud from "../components/weight/WordCloud.vue";
 | 
			
		||||
import LeaderAnalysis from "./components/LeaderAnalysis.vue";
 | 
			
		||||
import EventHeatmap from "../../components/weight/EventHeatmap.vue";
 | 
			
		||||
import PostDynamics from "../../components/weight/PostDynamics.vue";
 | 
			
		||||
import WordCloud from "../../components/weight/WordCloud.vue";
 | 
			
		||||
 | 
			
		||||
const store = useKeyNodeStore1();
 | 
			
		||||
const graphPanelRef = ref(null);
 | 
			
		||||
| 
						 | 
				
			
			@ -42,16 +42,16 @@
 | 
			
		|||
import { ref, onMounted, onUnmounted } from "vue";
 | 
			
		||||
import { useKeyNodeStore2 } from "@/store/keyNodeStore2";
 | 
			
		||||
 | 
			
		||||
import LeaderList from "./KeyNodeRecognition2/components/LeaderList.vue";
 | 
			
		||||
import GraphPanel from "./KeyNodeRecognition2/components/GraphPanel.vue";
 | 
			
		||||
import DetailsModal from "./KeyNodeRecognition2/components/DetailsModal.vue";
 | 
			
		||||
import LeaderDetailDialog from "./KeyNodeRecognition2/components/LeaderDetailDialog.vue";
 | 
			
		||||
import PostDetailDialog from "./KeyNodeRecognition2/components/PostDetailDialog.vue";
 | 
			
		||||
import LeaderList from "./components/LeaderList.vue";
 | 
			
		||||
import GraphPanel from "./components/GraphPanel.vue";
 | 
			
		||||
import DetailsModal from "./components/DetailsModal.vue";
 | 
			
		||||
import LeaderDetailDialog from "./components/LeaderDetailDialog.vue";
 | 
			
		||||
import PostDetailDialog from "./components/PostDetailDialog.vue";
 | 
			
		||||
 | 
			
		||||
import LeaderAnalysis from "./KeyNodeRecognition2/components/LeaderAnalysis.vue";
 | 
			
		||||
import EventHeatmap from "../components/weight/EventHeatmap.vue";
 | 
			
		||||
import PostDynamics from "../components/weight/PostDynamics.vue";
 | 
			
		||||
import WordCloud from "../components/weight/WordCloud.vue";
 | 
			
		||||
import LeaderAnalysis from "./components/LeaderAnalysis.vue";
 | 
			
		||||
import EventHeatmap from "../../components/weight/EventHeatmap.vue";
 | 
			
		||||
import PostDynamics from "../../components/weight/PostDynamics.vue";
 | 
			
		||||
import WordCloud from "../../components/weight/WordCloud.vue";
 | 
			
		||||
 | 
			
		||||
const store = useKeyNodeStore2();
 | 
			
		||||
const graphPanelRef = ref(null);
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user