feat:完善舆情页面

This commit is contained in:
zjc
2024-12-19 18:21:28 +08:00
parent 42a680c9c3
commit 188e233c7f
25 changed files with 641 additions and 139 deletions

View File

@@ -61,7 +61,6 @@
fontSize: fitChartSize(12)
}
},
series: [
{
type: 'pie',
@@ -98,14 +97,6 @@
}
]
}
const resize = () => {
if (pieChart) {
pieChart.dispose()
pieChart = null
init()
}
}
const init = () => {
const dom = document.getElementById(id.value)
pieChart = echarts.init(dom)
@@ -116,7 +107,13 @@
// 监听窗口大小变化
window.addEventListener('resize', resize)
}
const resize = () => {
if (pieChart) {
pieChart.dispose()
pieChart = null
init()
}
}
onMounted(() => {
init()
})