|
@ -720,7 +720,8 @@ export default { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const BPTempData = () => { |
|
|
const BPTempData = () => { |
|
|
const startTime = moment(options.currentTime).add(options.apiTimeLength, 'h').add(options.apiTimeInterval, 'm').format('YYYY-MM-DD HH:mm:00'); |
|
|
// const startTime = moment(options.currentTime).add(options.apiTimeLength, 'h').add(options.apiTimeInterval, 'm').format('YYYY-MM-DD HH:mm:00'); |
|
|
|
|
|
const startTime = moment(options.currentTime).add(-options.apiTimeInterval, 'm').format('YYYY-MM-DD HH:mm:00'); |
|
|
const params = prepareApiParams(401, startTime, options.titleEndTime); |
|
|
const params = prepareApiParams(401, startTime, options.titleEndTime); |
|
|
get('/njplatform/radardata/getBpRangeData', params, Constant.baseUrl).then((response: any) => { |
|
|
get('/njplatform/radardata/getBpRangeData', params, Constant.baseUrl).then((response: any) => { |
|
|
// creates.verticalProfile.updateSeries(0, getVerticalProfileResponseData(response)); |
|
|
// creates.verticalProfile.updateSeries(0, getVerticalProfileResponseData(response)); |
|
@ -729,7 +730,8 @@ export default { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const BPVaporDensityData = () => { |
|
|
const BPVaporDensityData = () => { |
|
|
const startTime = moment(options.currentTime).add(options.apiTimeLength, 'h').add(options.apiTimeInterval, 'm').format('YYYY-MM-DD HH:mm:00'); |
|
|
// const startTime = moment(options.currentTime).add(options.apiTimeLength, 'h').add(options.apiTimeInterval, 'm').format('YYYY-MM-DD HH:mm:00'); |
|
|
|
|
|
const startTime = moment(options.currentTime).add(-options.apiTimeInterval, 'm').format('YYYY-MM-DD HH:mm:00'); |
|
|
const params = prepareApiParams(402, startTime, options.titleEndTime); |
|
|
const params = prepareApiParams(402, startTime, options.titleEndTime); |
|
|
get('/njplatform/radardata/getBpRangeData', params, Constant.baseUrl).then((response: any) => { |
|
|
get('/njplatform/radardata/getBpRangeData', params, Constant.baseUrl).then((response: any) => { |
|
|
// creates.verticalProfile.updateSeries(2, getVerticalProfileResponseData(response)); |
|
|
// creates.verticalProfile.updateSeries(2, getVerticalProfileResponseData(response)); |
|
@ -738,7 +740,8 @@ export default { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const BPRelativeHumidityData = () => { |
|
|
const BPRelativeHumidityData = () => { |
|
|
const startTime = moment(options.currentTime).add(options.apiTimeLength, 'h').add(options.apiTimeInterval, 'm').format('YYYY-MM-DD HH:mm:00'); |
|
|
// const startTime = moment(options.currentTime).add(options.apiTimeLength, 'h').add(options.apiTimeInterval, 'm').format('YYYY-MM-DD HH:mm:00'); |
|
|
|
|
|
const startTime = moment(options.currentTime).add(-options.apiTimeInterval, 'm').format('YYYY-MM-DD HH:mm:00'); |
|
|
const params = prepareApiParams(404, startTime, options.titleEndTime); |
|
|
const params = prepareApiParams(404, startTime, options.titleEndTime); |
|
|
get('/njplatform/radardata/getBpRangeData', params, Constant.baseUrl).then((response: any) => { |
|
|
get('/njplatform/radardata/getBpRangeData', params, Constant.baseUrl).then((response: any) => { |
|
|
// creates.verticalProfile.updateSeries(1, getVerticalProfileResponseData(response)); |
|
|
// creates.verticalProfile.updateSeries(1, getVerticalProfileResponseData(response)); |
|
|