214 lines
5.7 KiB
Vue
214 lines
5.7 KiB
Vue
<template>
|
|
<div class="layout-container">
|
|
<div class="top-container"></div>
|
|
<div class="content">
|
|
<div class="left-container">
|
|
<div class="userPanel">
|
|
<UserPanel
|
|
:title="userPanelTitleImg"
|
|
:userList="interactionStore.userList"
|
|
:panelHeight="750"
|
|
@click:selectedGroup="handleSelectedUserGroup"
|
|
></UserPanel>
|
|
</div>
|
|
</div>
|
|
<div class="middle-container">
|
|
<div class="graph">
|
|
<Graph :title="graphTitleImg"></Graph>
|
|
</div>
|
|
<div class="postList">
|
|
<PostList :posts="interactionStore.posts"></PostList>
|
|
</div>
|
|
</div>
|
|
<div class="right-container">
|
|
<div class="anlysisPanel">
|
|
<AnlysisPanle
|
|
:anlysis-list="interactionStore.anlysisList"
|
|
:title="analysisTitleImg"
|
|
></AnlysisPanle>
|
|
</div>
|
|
<div class="cloudWords">
|
|
<WordsCloud :wordsCloudList="interactionStore.wordCloudData"></WordsCloud>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { onMounted } from "vue"
|
|
import { provide } from "vue"
|
|
import { useCharacterInteractionStore } from "@/store/llinkPrediction/index"
|
|
import UserPanel from "../components/userPanel.vue"
|
|
import PostList from "../components/postList.vue"
|
|
import AnlysisPanle from "../components/anlysisPanle.vue"
|
|
import Graph from "../components/graph.vue"
|
|
import WordsCloud from "../components/cloudWords.vue"
|
|
import userPanelTitleImg from "@/assets/images/linkPrediction/title/user-title.png"
|
|
import graphTitleImg from "@/assets/images/linkPrediction/title/graph1-title.png"
|
|
import analysisTitleImg from "@/assets/images/linkPrediction/title/analysis-title.png"
|
|
const interactionStore = useCharacterInteractionStore()
|
|
|
|
//选择某个用户组,更新贴文列表
|
|
const handleSelectedUserGroup = (group) => {
|
|
interactionStore.initInteractionPostList(group.relationId)
|
|
}
|
|
|
|
onMounted(() => {
|
|
interactionStore.initGroupList() //初始化用户组列表
|
|
interactionStore.initGraphCommunityNode() //初始化所有社团节点
|
|
interactionStore.initGraphStatistics() //初始化所有社团状态统计
|
|
interactionStore.initInteractionPostList("106888") //初始贴文列表
|
|
})
|
|
provide("communityNodeList", interactionStore.communityNodeList) // 提供数据
|
|
provide("statisticsList", interactionStore.statisticsList)
|
|
</script>
|
|
|
|
<style scoped lang="less">
|
|
:deep(.custom-dialog) {
|
|
width: 640px;
|
|
border-width: 0px, 0px, 0px, 0px;
|
|
border-style: solid;
|
|
border-image-source: linear-gradient(180deg, #3aa1f8 0%, rgba(58, 161, 248, 0.2) 100%);
|
|
background-color: rgba(6, 45, 90, 1);
|
|
border: 1px solid #1a8bff;
|
|
border-radius: 2px;
|
|
padding: 0 0;
|
|
z-index: 1;
|
|
}
|
|
:deep(.post-dialog) {
|
|
height: 300px;
|
|
}
|
|
:deep(.custom-dialog) .postTitleImage {
|
|
margin-top: -24px;
|
|
margin-left: -2px;
|
|
}
|
|
:deep(.custom-dialog) .dialog-content {
|
|
width: 100%;
|
|
padding: 25px 20px;
|
|
}
|
|
|
|
:deep(.custom-dialog) .dialog-content .content {
|
|
color: rgba(255, 255, 255, 0.8);
|
|
font-family: "PingFang SC";
|
|
font-size: 16px;
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
opacity: 0.7;
|
|
}
|
|
.post-content {
|
|
color: #fff;
|
|
font-size: 16px;
|
|
opacity: 0.7;
|
|
}
|
|
.heat {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
margin-top: 20px;
|
|
.item-heat-detail {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
div {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 70px;
|
|
color: #fff;
|
|
opacity: 0.7;
|
|
}
|
|
}
|
|
}
|
|
.layout-container {
|
|
width: 1544px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
.top-container {
|
|
width: 100%;
|
|
height: 88px;
|
|
background-image: url(@/assets/images/linkPrediction/title/page-title.png);
|
|
background-repeat: no-repeat;
|
|
background-size: cover;
|
|
fill: linear-gradient(270deg, rgba(6, 61, 113, 0.1) 0%, rgba(8, 30, 56, 0.38) 100%);
|
|
stroke-width: 1px;
|
|
stroke: #3aa1f8;
|
|
}
|
|
|
|
.content {
|
|
width: 100%;
|
|
height: 805px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 15px;
|
|
.left-container {
|
|
width: 352px;
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
.userPanel {
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 2px;
|
|
flex-shrink: 0;
|
|
background-color: rgba(6, 45, 90, 0.3);
|
|
border: 1px solid rgba(0, 113, 188, 0.705);
|
|
}
|
|
}
|
|
|
|
.middle-container {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
.search {
|
|
width: 100%;
|
|
height: 60px;
|
|
}
|
|
.graph {
|
|
width: 100%;
|
|
height: 541px;
|
|
background-color: #070a22;
|
|
border-radius: 4px;
|
|
background-color: rgba(6, 45, 90, 0.3);
|
|
border: 1px solid rgba(0, 113, 188, 0.705);
|
|
}
|
|
.postList {
|
|
flex: 1;
|
|
border-radius: 4px;
|
|
background-color: rgba(6, 45, 90, 0.3);
|
|
border: 1px solid rgba(0, 113, 188, 0.705);
|
|
fill: linear-gradient(270deg, rgba(6, 61, 113, 0.1) 0%, rgba(8, 30, 56, 0.38) 100%);
|
|
stroke-width: 1px;
|
|
stroke: #3aa1f8;
|
|
overflow: auto;
|
|
padding: 10px 10px;
|
|
}
|
|
}
|
|
|
|
.right-container {
|
|
width: 352px;
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
.anlysisPanel {
|
|
width: 100%;
|
|
height: 540px;
|
|
border-radius: 2px;
|
|
flex-shrink: 0;
|
|
background-color: rgba(6, 45, 90, 0.3);
|
|
border: 1px solid rgba(0, 113, 188, 0.705);
|
|
}
|
|
.cloudWords {
|
|
flex: 1;
|
|
border-radius: 2px;
|
|
flex-shrink: 0;
|
|
background-color: rgba(6, 45, 90, 0.3);
|
|
border: 1px solid rgba(0, 113, 188, 0.705);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|