| | |
| | | dataType: 'HourPicker', |
| | | defaultData: {}, |
| | | newData: [], |
| | | high1: 1000, |
| | | high2: 7000, |
| | | high1: 100, |
| | | high2: 3000, |
| | | timeList: null, |
| | | currentTimeIdx: 0 |
| | | }; |
| | |
| | | }, |
| | | mounted() { |
| | | const now = new Date(); |
| | | const startTime = new Date(now.getTime() - 20 * 60 * 1000); |
| | | const startTime = new Date(now.getTime() - 24*60 * 60 * 1000); |
| | | const fmt = (d) => { |
| | | const Y = d.getFullYear(); |
| | | const M = String(d.getMonth() + 1).padStart(2, '0'); |
| | |
| | | this.chart = null; |
| | | } |
| | | this.chart = chartLib.init(chartEl); |
| | | console.log(DATA); |
| | | if (!DATA || !DATA.time || !DATA.time.length) { |
| | | console.log(222); |
| | | if (!DATA || !DATA.time||!DATA.time.length) { |
| | | this.chart.setOption({ |
| | | graphic: { |
| | | type: 'text', |