|
|
@ -246,9 +246,10 @@ export default { |
|
|
|
backscatterDrawer: null |
|
|
|
} |
|
|
|
let options = reactive({ |
|
|
|
currentTab: 'MWR', |
|
|
|
// currentRegion: 'pk', |
|
|
|
currentRegion: 'jn', |
|
|
|
// currentTab: 'MWR', |
|
|
|
currentTab: 'optical-property', |
|
|
|
currentRegion: 'pk', |
|
|
|
// currentRegion: 'jn', |
|
|
|
currentElement: 'PBLH', |
|
|
|
currentType: '边界层高度', |
|
|
|
date: moment('2022-04-01 12:00:00').format('YYYY-MM-DD HH:mm:ss'), |
|
|
@ -362,10 +363,11 @@ export default { |
|
|
|
const onTabClick = (name) => { |
|
|
|
// initTimeLine() |
|
|
|
options.currentTab = name; |
|
|
|
setTimeout(() => { |
|
|
|
initEcharts(name) |
|
|
|
reloadChangeData() |
|
|
|
}, 500) |
|
|
|
// setTimeout(() => { |
|
|
|
|
|
|
|
// }, 500) |
|
|
|
initEcharts(name) |
|
|
|
reloadChangeData() |
|
|
|
} |
|
|
|
|
|
|
|
const reloadChangeData = () => { |
|
|
@ -654,16 +656,21 @@ export default { |
|
|
|
const drawOpticsExtinction = (result: CustomeArray<any>) => { |
|
|
|
if (result.length != 12) return; |
|
|
|
|
|
|
|
console.log(document.getElementById("extinction_optics_chart")) |
|
|
|
options.loadingExtinctionOpticsStatus = false; |
|
|
|
if (creates.opticsExtinctionDrawer != null) { |
|
|
|
creates.opticsExtinctionDrawer.close(); |
|
|
|
} |
|
|
|
|
|
|
|
console.log("extinction_optics_chart") |
|
|
|
let matrix = converCloudRecognition(801, result, 'extinctionOptics'); |
|
|
|
console.log(matrix) |
|
|
|
creates.opticsExtinctionDrawer = new HeatMapDrawer(800, 600, matrix, "extinction_optics_chart",'/km/sr'); |
|
|
|
console.log(options.timeArray) |
|
|
|
creates.opticsExtinctionDrawer.setAxis(new CoordinateScale(options.timeArray), new CoordinateScale([0, 2000, 4000, 6000, 8000, 10000, 12000], true, true)); |
|
|
|
creates.opticsExtinctionDrawer.setColorChart(prepareExtinctionnColors()); |
|
|
|
creates.opticsExtinctionDrawer.draw(); |
|
|
|
console.log(1) |
|
|
|
} |
|
|
|
|
|
|
|
const drawSingleWatervapor = (result: CustomeArray<any>) => { |
|
|
@ -788,8 +795,19 @@ export default { |
|
|
|
return; |
|
|
|
} |
|
|
|
const interval = Math.round(11 / r.data[0].length); |
|
|
|
for (let h = 0, len = r.data.length; h < len; h++) { |
|
|
|
for (let h = 0, len = capacity; h < len; h++) { |
|
|
|
let tempIndex = parseInt(index + ""); |
|
|
|
if (r.data[h] == null){ |
|
|
|
for(let i = 0; i < 11; i++){ |
|
|
|
tempIndex++; |
|
|
|
if (matrix[tempIndex] == null) { |
|
|
|
matrix[tempIndex] = new Array<Box>(capacity); |
|
|
|
} |
|
|
|
matrix[tempIndex][h] = new Box(tempIndex, h, 0, 0, NaN, h * 15, time, "米"); |
|
|
|
} |
|
|
|
|
|
|
|
continue; |
|
|
|
} |
|
|
|
r.data[h] = r.data[h].slice(0, 11); |
|
|
|
for (let i = 0, len = r.data[h].length; i < len; i++) { |
|
|
|
for (let _i = 0; _i < interval; _i++) { |
|
|
@ -822,9 +840,10 @@ export default { |
|
|
|
} |
|
|
|
|
|
|
|
setCloudRecognitionResult(capacity, time, response.message, response.data, result); |
|
|
|
}).catch(error => { |
|
|
|
setCloudRecognitionResult(capacity, time, error.message, null, result); |
|
|
|
}) |
|
|
|
// .catch(error => { |
|
|
|
// setCloudRecognitionResult(capacity, time, error.message, null, result); |
|
|
|
// }) |
|
|
|
} |
|
|
|
|
|
|
|
// |
|
|
|