| | |
| | | },
|
| | | // 当前小时默认值
|
| | | currentHour() {
|
| | | // const aData = new Date()
|
| | | // const month = aData.getMonth() < 9 ? '0' + (aData.getMonth() + 1) : aData.getMonth() + 1
|
| | | // const date = aData.getDate() <= 9 ? '0' + aData.getDate() : aData.getDate()
|
| | | // const hour = aData.getHours() <= 9 ? '0' + aData.getHours() - 1 : aData.getHours() - 1
|
| | | // const currentDate = aData.getFullYear() + '-' + month + '-' + date + ' ' + hour + ':00'
|
| | | // this.dateFormat = currentDate.toString()
|
| | | const aData = new Date()
|
| | | const month = aData.getMonth() < 9 ? '0' + (aData.getMonth() + 1) : aData.getMonth() + 1
|
| | | const date = aData.getDate() <= 9 ? '0' + aData.getDate() : aData.getDate()
|
| | | const hour = aData.getHours() <= 9 ? '0' + aData.getHours() - 1 : aData.getHours() - 1
|
| | | const date = aData.getDate() < 10 ? '0' + aData.getDate() : aData.getDate()
|
| | | const hour = aData.getHours() |
| | | const currentDate = aData.getFullYear() + '-' + month + '-' + date + ' ' + hour + ':00'
|
| | | this.dateFormat = currentDate.toString()
|
| | | },
|
| | |
| | | url: '/monitorPoint/getWindData',
|
| | | method: 'get',
|
| | | params: {
|
| | | monitorPointIds: JSON.stringify(this.monitorPointIds[0]),
|
| | | monitorPointIds: this.monitorPointIds.toString(),
|
| | | chooseTime: this.chooseTime,
|
| | | time: this.nyr
|
| | | }
|