|
|
@ -312,15 +312,15 @@ |
|
|
|
options.apiTimeLength = apiTimeLength; |
|
|
|
options.currentElement = element; |
|
|
|
options.onPitchTime = onPitchTime |
|
|
|
initTimeLine() |
|
|
|
initTimeLine(reloadData) |
|
|
|
// if (options.currentTab === 'MWR') |
|
|
|
// activeContrastImage(); |
|
|
|
// else |
|
|
|
// activeImage(moment(options.times[options.index].date).hour(), moment(options.times[options.index].date).minute()); |
|
|
|
if (element === 'six-minute') { |
|
|
|
setTimeout(() => { |
|
|
|
changeColor() |
|
|
|
},0) |
|
|
|
changeColor() |
|
|
|
},0) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -509,8 +509,8 @@ |
|
|
|
options.date = moment(options.date).add(-1, 'day').format('YYYY-MM-DD'); |
|
|
|
options.titleStartTime = moment(options.date).hour(parseInt(options.currentHour) + options.apiTimeLength).minute(options.currentElement === 'six-minute' ? 36 : 30).format('YYYY-MM-DD HH:mm:ss'); |
|
|
|
options.titleEndTime = moment(options.date).hour(parseInt(options.currentHour)).minute(options.currentElement === 'six-minute' ? 30 : 0).format('YYYY-MM-DD HH:mm:ss'); |
|
|
|
reloadQualityComparison() |
|
|
|
reloadQualityInterpolation() |
|
|
|
options.currentTime = options.titleEndTime; |
|
|
|
reloadData(); |
|
|
|
} |
|
|
|
|
|
|
|
//下一天 |
|
|
@ -518,8 +518,8 @@ |
|
|
|
options.date = moment(options.date).add(1, 'day').format('YYYY-MM-DD'); |
|
|
|
options.titleStartTime = moment(options.date).hour(parseInt(options.currentHour) + options.apiTimeLength).minute(options.currentElement === 'six-minute' ? 36 : 30).format('YYYY-MM-DD HH:mm:ss'); |
|
|
|
options.titleEndTime = moment(options.date).hour(parseInt(options.currentHour)).minute(options.currentElement === 'six-minute' ? 30 : 0).format('YYYY-MM-DD HH:mm:ss'); |
|
|
|
reloadQualityComparison() |
|
|
|
reloadQualityInterpolation() |
|
|
|
options.currentTime = options.titleEndTime; |
|
|
|
reloadData(); |
|
|
|
} |
|
|
|
|
|
|
|
// const onPrevImgClick = () => { |
|
|
@ -668,8 +668,9 @@ |
|
|
|
|
|
|
|
// 重新加载质控对比数据 |
|
|
|
const reloadQualityComparison = () => { |
|
|
|
const startTime = moment(options.currentTime).add(options.apiTimeLength, 'h').add(options.apiTimeInterval, 'm').format('YYYY-MM-DD HH:mm:00'); |
|
|
|
const params = prepareApiParams(401, startTime, options.titleEndTime); |
|
|
|
const startTime = moment(options.currentTime).add(options.apiTimeLength, 'h').add(options.apiTimeInterval, 'm').format('YYYY-MM-DD HH:mm:00'); |
|
|
|
const params = prepareApiParams(401, startTime, options.titleEndTime); |
|
|
|
console.log(params); |
|
|
|
get('/njplatform/radardata/getOriginRangeData',params,'http://rdp.nagr.com.cn:18080').then((response: any)=> { |
|
|
|
clearBoxDrawer(drawers.originalDrawer); |
|
|
|
clearBoxDrawer(drawers.abnormalDrawer); |
|
|
@ -689,7 +690,7 @@ |
|
|
|
drawers.originalDrawer = new BoxDrawer(1500, 500, prepareTmpOriginalColors(), response.data, 'original-data-canvas'); |
|
|
|
drawers.abnormalDrawer = new BoxDrawer(1500, 500, prepareTmpOriginalColors(), response.data, 'abnormal-canvas'); |
|
|
|
options.contrast.noQCImgUrl = drawers.originalDrawer.base64Image; |
|
|
|
options.contrast.checkImgUrl = drawers.abnormalDrawer.base64Image |
|
|
|
options.contrast.checkImgUrl = drawers.abnormalDrawer.base64Image; |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|