数据查询历史趋势

This commit is contained in:
sjl
2025-12-10 15:19:26 +08:00
parent 0e0b753126
commit cd33151920
3 changed files with 171 additions and 35 deletions

View File

@@ -8,7 +8,9 @@
import { onBeforeUnmount, onMounted, ref, watch } from 'vue'
// import echarts from './echarts'
import * as echarts from 'echarts' // 全引入
// import 'echarts/lib/component/dataZoom'
import 'echarts-gl'
import 'echarts-liquidfill'
import 'echarts/lib/component/dataZoom'
const color = [
'var(--el-color-primary)',
@@ -39,11 +41,13 @@ const resizeHandler = () => {
})
}
const initChart = () => {
if (!props.isInterVal && !props.pieInterVal) {
chart?.dispose()
}
// chart?.dispose()
chart = echarts.init(chartRef.value as HTMLDivElement)
const options = {
title: {
left: 'center',