diff --git a/04.系统编码/Frontend/src/components/RamanLidar.vue b/04.系统编码/Frontend/src/components/RamanLidar.vue index 7b23523..920ccd6 100644 --- a/04.系统编码/Frontend/src/components/RamanLidar.vue +++ b/04.系统编码/Frontend/src/components/RamanLidar.vue @@ -268,7 +268,7 @@ export default { creates.boundaryLayerHeight.setSpecialXAxis('时间(小时)', 24,0,2); creates.boundaryLayerHeight.setYAxis('边界层高度(米)', 3000, 0, 500, 7); creates.boundaryLayerHeight.setLegend(); - creates.boundaryLayerHeight.setTooltip(''); + creates.boundaryLayerHeight.setTooltip('KM: {point.y}'); creates.boundaryLayerHeight.setSeries('边界层高度') creates.boundaryLayerHeight.init(); } @@ -280,7 +280,7 @@ export default { creates.cloudsHeight.setSpecialXAxis('时间(小时)', 24,0,2); creates.cloudsHeight.setYAxis('高度(米)', 14000, 0, 2000, 8); creates.cloudsHeight.setLegend(); - creates.cloudsHeight.setTooltip(''); + creates.cloudsHeight.setTooltip('KM: {point.y}'); creates.cloudsHeight.setSeries('云层高度') creates.cloudsHeight.init(); } @@ -291,7 +291,7 @@ export default { creates.cloudTopHeight.setSpecialXAxis('时间(小时)', 24,0,2); creates.cloudTopHeight.setYAxis('高度(米)', 14000, 0, 2000, 8); creates.cloudTopHeight.setLegend(); - creates.cloudTopHeight.setTooltip(''); + creates.cloudTopHeight.setTooltip('KM: {point.y}'); creates.cloudTopHeight.setSeries('云顶高度') creates.cloudTopHeight.init(); } @@ -303,7 +303,7 @@ export default { creates.LidarRatio.setSpecialXAxis('时间(小时)', 24,0,2); creates.LidarRatio.setYAxis('高度(米)', 500, 0, 50, 7); creates.LidarRatio.setLegend(); - creates.LidarRatio.setTooltip(''); + creates.LidarRatio.setTooltip('KM: {point.y}'); creates.LidarRatio.setSeries('激光雷达比') creates.LidarRatio.init(); } @@ -387,7 +387,6 @@ export default { switch (type) { case 'lidarratio': options.loadingLidarRatioStatus = true; - break; case 'pblh': options.loadingBoundaryLayerHeightStatus = true; @@ -673,6 +672,7 @@ export default { const interval = Math.round(60 / r.data[0].length); for(let h = 0, len = r.data.length; h < len; h++){ let tempIndex = parseInt(index + ""); + r.data[h] = r.data[h].slice(0, 60); for(let i = 0,len = r.data[h].length; i < len; i++){ for(let _i = 0; _i < interval; _i++){ tempIndex ++; @@ -702,6 +702,8 @@ export default { return; } setCloudRecognitionResult(capacity, time, response.message, response.data, result); + }).catch(error => { + setCloudRecognitionResult(capacity, time, error.message, null, result); }) } // @@ -712,7 +714,9 @@ export default { setChartsRecognitionResult(time, response.message, null, result); return; } - setChartsRecognitionResult( time, response.message, response.data, result); + setChartsRecognitionResult(time, response.message, response.data, result); + }).catch(error => { + setChartsRecognitionResult(time, error.message, null, result); }) }