画轨道

This commit is contained in:
duanhao 2025-08-07 10:21:15 +08:00
parent ced8b052d1
commit 076d4fec30
3 changed files with 18 additions and 15 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@ -222,12 +222,14 @@ const initChart = () => {
const groupCenters = getGroupCenters(groupCount, width, height) const groupCenters = getGroupCenters(groupCount, width, height)
assignNodePositions(graph.value.nodes, groupCenters) assignNodePositions(graph.value.nodes, groupCenters)
createGraph() createGraph()
graphVis.addGraph({ ...toRaw(graph.value) }) graphVis.addGraph({ ...toRaw(graph.value) })
runForceLayout() runForceLayout()
} }
onMounted(async () => { onMounted(async () => {
await nextTick() // DOM await nextTick() // DOM
initChart() initChart()
}) })
onUnmounted(() => { onUnmounted(() => {

View File

@ -13,9 +13,9 @@
<div class="title-content">关注话题:&nbsp;&nbsp;{{ group.focusedTopic }}</div> <div class="title-content">关注话题:&nbsp;&nbsp;{{ group.focusedTopic }}</div>
</div> </div>
<div class="group-item-statistics"> <div class="group-item-statistics">
<div class="statistics-item" v-for="item in group.statistics" :key="item.id"> <div class="statistics-item">
<div class="statistics-item-name"> <div class="statistics-item-name">
{{ item.name }} 内部
</div> </div>
<div class="statistics-item-value"> <div class="statistics-item-value">
<!-- 轨道 --> <!-- 轨道 -->
@ -104,21 +104,22 @@ const props = defineProps({
display: flex; display: flex;
align-items: center; align-items: center;
font-size: 14px; font-size: 14px;
.sta-prefix { .statistics-item-name {
width: 32px; width: 50px;
height: 32px; padding-top: -5px;
} }
.statistics-content { .statistics-item-value {
width: 150px; width: 100%;
margin-left: 10px; display: flex;
color: #fff; align-items: center;
.sta-count { .track {
font-family: MiSans; width: 262px;
font-size: 18px; height: 8px;
font-style: normal; background-image: url('@/assets/images/groupStructure/track.png');
font-weight: 700; background-size: cover;
background-repeat: no-repeat;
} }
} }
} }
} }
} }