lohir
2024-10-23 d95b36a88357d018f76d926e9074c521eb8335a7
src/views/home/data-face/index.vue
@@ -28,8 +28,8 @@
import * as echarts from 'echarts';
import {car, face} from "../../../api/platform/home";
var chartDom = document.getElementById('main');
var myChart = echarts.init(chartDom);
var myChart = null;
var option;
let observer = null;
export default {
@@ -41,8 +41,7 @@
        month: '',
      },
      options: [
        {label: '省厅', value: 1},
        {label: '公安部', value: 2}
        {label: '省厅', value: 1}
      ],
      dataList: [],
    }
@@ -276,6 +275,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();
  },