| | |
| | | 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 { |
| | |
| | | month: '', |
| | | }, |
| | | options: [ |
| | | {label: '省厅', value: 1}, |
| | | {label: '公安部', value: 2} |
| | | {label: '省厅', value: 1} |
| | | ], |
| | | dataList: [], |
| | | } |
| | |
| | | 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(); |
| | | }, |