画轨道
This commit is contained in:
parent
ced8b052d1
commit
076d4fec30
BIN
src/assets/images/groupStructure/track.png
Normal file
BIN
src/assets/images/groupStructure/track.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.4 KiB |
|
|
@ -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(() => {
|
||||||
|
|
|
||||||
|
|
@ -13,9 +13,9 @@
|
||||||
<div class="title-content">关注话题: {{ group.focusedTopic }}</div>
|
<div class="title-content">关注话题: {{ 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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user