lohir
2024-10-23 d95b36a88357d018f76d926e9074c521eb8335a7
src/views/home/data-car/index.vue
@@ -28,8 +28,7 @@
import * as echarts from 'echarts';
import {car} from "../../../api/platform/home";
var chartDom = document.getElementById('main');
var myChart = echarts.init(chartDom);
var myChart = null;
var option;
let observer = null;
export default {
@@ -42,7 +41,6 @@
      },
      options: [
        {label: '省厅', value: 1},
        {label: '公安部', value: 2}
      ],
      dataList: [],
    }
@@ -275,6 +273,7 @@
    const month = (date.getMonth() + 1) >= 10 ? date.getMonth() + 1 : '0' + (date.getMonth() + 1);
    this.date = year + '-' + month;
    this.params.date = this.date;
    myChart = echarts.init(this.$refs.chartContent);
    this.getChart();
    this.observe();
  },