| | |
| | | import { Factor } from './Factor'; |
| | | import calculate from '@/utils/map/calculate'; |
| | | import { Legend } from './Legend'; |
| | | import moment from 'moment'; |
| | | |
| | | /** |
| | | * |
| | |
| | | }); |
| | | }, |
| | | |
| | | getByDate(s, e) { |
| | | const sTime = moment(s).format('YYYY-MM-DD HH:mm:ss'); |
| | | const eTime = moment(e).format('YYYY-MM-DD HH:mm:ss'); |
| | | const sIndex = this.times.findIndex((v) => { |
| | | return v == sTime; |
| | | }); |
| | | const eIndex = this.times.findIndex((v) => { |
| | | return v == eTime; |
| | | }); |
| | | if (sIndex != -1 && eIndex != -1) { |
| | | return this.getByIndex(sIndex, eIndex); |
| | | } |
| | | }, |
| | | |
| | | // 获取数据长度 |
| | | length: function () { |
| | | return this.lnglats_GD.length; |