| | |
| | | <script> |
| | | import * as echarts from 'echarts'; |
| | | import {video} from "../../../api/platform/home"; |
| | | var chartDom = document.getElementById('main'); |
| | | var myChart = echarts.init(chartDom); |
| | | var myChart =null; |
| | | var option; |
| | | let observer = null; |
| | | export default { |
| | |
| | | </div>`; |
| | | }).join(''); |
| | | tooltipHtml = `${tooltipHtml}${pointsHtml}`; |
| | | tooltipHtml += `<div style="font-weight: bold; margin-top: 10px;padding:0 12px;">录像正常参考值: ${baseLine.toLocaleString()}</div>`; |
| | | tooltipHtml += `<div style="font-weight: bold; margin-top: 10px;padding:0 12px;">录像完整参考值: ${baseLine.toLocaleString()}</div>`; |
| | | |
| | | return tooltipHtml; |
| | | } |
| | |
| | | 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(); |
| | | }, |