Browse Source

modify some codes

master
xiaowuler 3 years ago
parent
commit
c10e4ebb04
  1. 16
      04.系统编码/Frontend/src/components/RamanLidar.vue

16
04.系统编码/Frontend/src/components/RamanLidar.vue

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

Loading…
Cancel
Save