| | |
| | | }, |
| | | fetchRealTimeData() { |
| | | this.fetchData((page) => { |
| | | return fetchHistoryData({ |
| | | return fetchHistoryData( |
| | | { |
| | | deviceCode: this.deviceCode, |
| | | // startTime: '2024-08-20 06:00:00', |
| | | // endTime: '2024-08-20 06:02:00', |
| | | page, |
| | | perPage: 100 |
| | | }).then((res) => { |
| | | }, |
| | | false |
| | | ).then((res) => { |
| | | this.onFetchData(res.data); |
| | | this.onMapData(res.data); |
| | | // if (res.data.length > 0) { |
| | |
| | | this.notFirstFetch = true; |
| | | } |
| | | startIndex = startIndex < 0 ? 0 : startIndex; |
| | | return new Promise((resolve, reject) => { |
| | | return new Promise(() => { |
| | | this.allFactorDatas.addData(dataList, this.drawMode, () => { |
| | | realTimeMapAnimation.moveAnimation( |
| | | this.allFactorDatas, |