Browse Source

commit

master
xuhuihui 3 years ago
parent
commit
e7627d2503
  1. 6
      04.系统编码/Frontend/src/components/MicrowaveRadiation.vue
  2. 56
      04.系统编码/Frontend/src/components/RamanLidar.vue
  3. 5
      04.系统编码/Frontend/src/model/high-chart-create.ts

6
04.系统编码/Frontend/src/components/MicrowaveRadiation.vue

@ -996,6 +996,7 @@ export default {
// justify-content: space-between; // justify-content: space-between;
.special-picture { .special-picture {
height: 100%!important; height: 100%!important;
.title { .title {
top: 80px!important; top: 80px!important;
} }
@ -1025,14 +1026,15 @@ export default {
} }
.picture { .picture {
width: 100%; width: 100%;
height: 100%;
position: relative; position: relative;
margin-top: 30px; //margin-top: 30px;
.title { .title {
width: 100%; width: 100%;
font-size: 0.22rem; font-size: 0.22rem;
position: absolute; position: absolute;
left: 3.4rem; left: 3.4rem;
top: 0; top: 0.3rem;
z-index: 1000; z-index: 1000;
} }
} }

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

@ -72,12 +72,12 @@
</div> </div>
</div> </div>
<div class="toolbar day-toolbar" v-if="currentElement=== 'lidarratio' || currentElement === 'watervapor'"> <div class="toolbar day-toolbar" v-if="currentElement === 'lidarratio' || currentElement === 'watervapor'">
<div class="times"> <div class="times">
<div class="time-item" v-for="(time, index) in times" :key="index" <div class="time-item" v-for="(time, index) in times" :key="index"
:class="{'active': currentTime === time.date, 'first-hour': time.day === '01'}"> :class="{'active': currentTime === time.date, 'first-hour': time.day === '01'}">
<span class="hour" style="padding-left: 10px">{{ time.month }}</span> <span class="hour" style="padding-left: 10px">{{ time.month }}</span>
<span class="time" @click="onDayClick(time, index)">{{ time.day }}</span> <span class="time" @click="onChangeDayClick(time, index)">{{ time.day }}</span>
</div> </div>
</div> </div>
@ -224,6 +224,7 @@
<div class="picture-container raman-picture-container" v-show="currentElement === 'extinction'"> <div class="picture-container raman-picture-container" v-show="currentElement === 'extinction'">
<div class="picture special-picture"> <div class="picture special-picture">
<h2 class="title" style="left: 3.3rem">质控前</h2>
<div v-loading="loadingExtinctionBeforeStatus" <div v-loading="loadingExtinctionBeforeStatus"
style="width: 100%;" style="width: 100%;"
custom-class="loading" custom-class="loading"
@ -232,6 +233,7 @@
</div> </div>
</div> </div>
<div class="picture special-picture"> <div class="picture special-picture">
<h2 class="title">质控后</h2>
<div v-loading="loadingExtinctionStatus" <div v-loading="loadingExtinctionStatus"
style="width: 100%;" style="width: 100%;"
custom-class="loading" custom-class="loading"
@ -243,6 +245,7 @@
<div class="picture-container raman-picture-container" v-show="currentElement === 'watervapor'"> <div class="picture-container raman-picture-container" v-show="currentElement === 'watervapor'">
<div class="picture special-picture"> <div class="picture special-picture">
<h2 class="title" style="left: 3.3rem">质控前</h2>
<div v-loading="loadingWatervaporBeforeStatus" <div v-loading="loadingWatervaporBeforeStatus"
style="width: 100%" style="width: 100%"
element-loading-text="加载中"> element-loading-text="加载中">
@ -250,6 +253,7 @@
</div> </div>
</div> </div>
<div class="picture special-picture"> <div class="picture special-picture">
<h2 class="title">质控后</h2>
<div v-loading="loadingWaterVaporStatus" <div v-loading="loadingWaterVaporStatus"
style="width: 100%" style="width: 100%"
element-loading-text="加载中"> element-loading-text="加载中">
@ -567,12 +571,12 @@ export default {
reloadCloudRecognition('backscatter', 801, 'backscatter', drawBackscatter); reloadCloudRecognition('backscatter', 801, 'backscatter', drawBackscatter);
break; break;
case 'pm2_5' : case 'pm2_5' :
initTimeLine() initTimeLine();
reloadCloudRecognition('pm2_5', 201, 'pm2_5', drawPm2Point5); reloadCloudRecognition('pm2_5', 201, 'pm2_5', drawPm2Point5);
reloadCloudRecognition('pm2_5', 201, 'pm10', drawPm10); reloadCloudRecognition('pm2_5', 201, 'pm10', drawPm10);
break; break;
case 'pblh' : case 'pblh' :
initTimeLine() initTimeLine();
reloadChartsRecognition('pblh', drawBoundaryLayerCharts); reloadChartsRecognition('pblh', drawBoundaryLayerCharts);
break; break;
case 'lidarratio' : case 'lidarratio' :
@ -580,7 +584,7 @@ export default {
reloadChartLidarratio('lidarratio', drawLidarRatioCharts); reloadChartLidarratio('lidarratio', drawLidarRatioCharts);
break; break;
case 'cloudSol' : case 'cloudSol' :
//initTimeLine() initTimeLine()
reloadCloudRecognition('cloudSol', 801, 'layertype', drawCloudSol); reloadCloudRecognition('cloudSol', 801, 'layertype', drawCloudSol);
break; break;
case 'cloudbaseheight' : case 'cloudbaseheight' :
@ -595,7 +599,6 @@ export default {
// reloadCloudRecognition('layertype', 801, 'layertype', drawCloudRecognition); // reloadCloudRecognition('layertype', 801, 'layertype', drawCloudRecognition);
// break; // break;
case 'extinction' : case 'extinction' :
// initTimeLineDay()
initTimeLine(true); initTimeLine(true);
reloadExtinctionBefore(); reloadExtinctionBefore();
reloadCloudRecognition('extinction', 801, 'extinction', drawExtinctionAfter, false, 12); reloadCloudRecognition('extinction', 801, 'extinction', drawExtinctionAfter, false, 12);
@ -620,6 +623,7 @@ export default {
post("/qualityCompare/findByTimeAndElement", params).then((response: any) => { post("/qualityCompare/findByTimeAndElement", params).then((response: any) => {
options.loadingWatervaporBeforeStatus = false; options.loadingWatervaporBeforeStatus = false;
if (response.error != 0){ if (response.error != 0){
createEmptyCanvas('watervapor_chart-before', 800, 650);
console.log("未找到质控前数据文件"); console.log("未找到质控前数据文件");
return; return;
} }
@ -629,7 +633,7 @@ export default {
} }
let matrix = convertValueToBox(response.data); let matrix = convertValueToBox(response.data);
creates.watervaporBeforeDrawer = new HeatMapDrawer(800, 650, matrix, "watervapor_chart-before", 'g/kg','质控前'); creates.watervaporBeforeDrawer = new HeatMapDrawer(800, 650, matrix, "watervapor_chart-before", 'g/kg');
creates.watervaporBeforeDrawer.setAxis(new CoordinateScale(quailtyTimes), new CoordinateScale([0, 500, 1000, 1500], true, true)); creates.watervaporBeforeDrawer.setAxis(new CoordinateScale(quailtyTimes), new CoordinateScale([0, 500, 1000, 1500], true, true));
creates.watervaporBeforeDrawer.setColorChart(prepareWatervaporColors()); creates.watervaporBeforeDrawer.setColorChart(prepareWatervaporColors());
creates.watervaporBeforeDrawer.draw(); creates.watervaporBeforeDrawer.draw();
@ -646,6 +650,7 @@ export default {
post("/qualityCompare/findByTimeAndElement", params).then((response: any) => { post("/qualityCompare/findByTimeAndElement", params).then((response: any) => {
options.loadingExtinctionBeforeStatus = false; options.loadingExtinctionBeforeStatus = false;
if (response.error != 0){ if (response.error != 0){
createEmptyCanvas('extinction_chart-before', 800, 650);
console.log("未找到质控前数据文件"); console.log("未找到质控前数据文件");
return; return;
} }
@ -655,7 +660,7 @@ export default {
} }
let matrix = convertValueToBox(response.data); let matrix = convertValueToBox(response.data);
creates.extinctionBeforeDrawer = new HeatMapDrawer(800, 650, matrix, "extinction_chart-before", 'km/sr','质控前'); creates.extinctionBeforeDrawer = new HeatMapDrawer(800, 650, matrix, "extinction_chart-before", 'km/sr');
creates.extinctionBeforeDrawer.setAxis(new CoordinateScale(options.timeArray), new CoordinateScale([0, 2000, 4000, 6000, 8000, 10000, 12000], true, true)); creates.extinctionBeforeDrawer.setAxis(new CoordinateScale(options.timeArray), new CoordinateScale([0, 2000, 4000, 6000, 8000, 10000, 12000], true, true));
creates.extinctionBeforeDrawer.setColorChart(prepareExtinctionnColors()); creates.extinctionBeforeDrawer.setColorChart(prepareExtinctionnColors());
creates.extinctionBeforeDrawer.draw(); creates.extinctionBeforeDrawer.draw();
@ -782,7 +787,7 @@ export default {
} }
let matrix = converCloudRecognition(801, result, 'backscatter'); let matrix = converCloudRecognition(801, result, 'backscatter');
creates.backscatterDrawer = new HeatMapDrawer(1200, 650, matrix, "backscatter_chart",'/km/sr'); creates.backscatterDrawer = new HeatMapDrawer(1200, 650, matrix, "backscatter_chart",'km/sr');
creates.backscatterDrawer.setAxis(new CoordinateScale(options.timeArray), new CoordinateScale([0, 2000, 4000, 6000, 8000, 10000, 12000], true, true)); creates.backscatterDrawer.setAxis(new CoordinateScale(options.timeArray), new CoordinateScale([0, 2000, 4000, 6000, 8000, 10000, 12000], true, true));
creates.backscatterDrawer.setColorChart(prepareBackscatterColors()); creates.backscatterDrawer.setColorChart(prepareBackscatterColors());
creates.backscatterDrawer.draw(); creates.backscatterDrawer.draw();
@ -943,7 +948,7 @@ export default {
} }
let matrix = converCloudRecognition(801, result, 'extinctionOptics'); let matrix = converCloudRecognition(801, result, 'extinctionOptics');
creates.opticsExtinctionDrawer = new HeatMapDrawer(1200, 650, matrix, "extinction_optics_chart",'/km/sr'); creates.opticsExtinctionDrawer = new HeatMapDrawer(1200, 650, matrix, "extinction_optics_chart",'km/sr');
creates.opticsExtinctionDrawer.setAxis(new CoordinateScale(options.timeArray), new CoordinateScale([0, 2000, 4000, 6000, 8000, 10000, 12000], true, true)); creates.opticsExtinctionDrawer.setAxis(new CoordinateScale(options.timeArray), new CoordinateScale([0, 2000, 4000, 6000, 8000, 10000, 12000], true, true));
creates.opticsExtinctionDrawer.setColorChart(prepareExtinctionnColors()); creates.opticsExtinctionDrawer.setColorChart(prepareExtinctionnColors());
creates.opticsExtinctionDrawer.draw(); creates.opticsExtinctionDrawer.draw();
@ -974,7 +979,7 @@ export default {
} }
let matrix = converCloudRecognition(101, result, 'watervapor'); let matrix = converCloudRecognition(101, result, 'watervapor');
creates.watervaporDrawer = new HeatMapDrawer(800, 650, matrix, "watervapor_chart-after",'g/kg', '质控前'); creates.watervaporDrawer = new HeatMapDrawer(800, 650, matrix, "watervapor_chart-after",'g/kg');
creates.watervaporDrawer.setAxis(new CoordinateScale(quailtyTimes), new CoordinateScale([0, 500, 1000, 1500], true, true)); creates.watervaporDrawer.setAxis(new CoordinateScale(quailtyTimes), new CoordinateScale([0, 500, 1000, 1500], true, true));
creates.watervaporDrawer.setColorChart(prepareWatervaporColors()); creates.watervaporDrawer.setColorChart(prepareWatervaporColors());
creates.watervaporDrawer.draw(); creates.watervaporDrawer.draw();
@ -996,7 +1001,7 @@ export default {
} }
let matrix = converCloudRecognition(801, result, 'extinction'); let matrix = converCloudRecognition(801, result, 'extinction');
creates.extinctionDrawer = new HeatMapDrawer(800, 650, matrix, "extinction_chart-after", 'km/sr','质控后'); creates.extinctionDrawer = new HeatMapDrawer(800, 650, matrix, "extinction_chart-after", 'km/sr');
creates.extinctionDrawer.setAxis(new CoordinateScale(options.timeArray), new CoordinateScale([0, 2000, 4000, 6000, 8000, 10000, 12000], true, true)); creates.extinctionDrawer.setAxis(new CoordinateScale(options.timeArray), new CoordinateScale([0, 2000, 4000, 6000, 8000, 10000, 12000], true, true));
creates.extinctionDrawer.setColorChart(prepareExtinctionnColors()); creates.extinctionDrawer.setColorChart(prepareExtinctionnColors());
creates.extinctionDrawer.draw(); creates.extinctionDrawer.draw();
@ -1550,12 +1555,12 @@ export default {
elementChange(element) elementChange(element)
} }
const onDayClick = (time, index) => { const onChangeDayClick = (time, index) => {
options.timeLineFormat = "hour" options.currentTime = time.date
options.currentTime = time.date;
options.date = moment(time.date).format('YYYY-MM-DD'); options.date = moment(time.date).format('YYYY-MM-DD');
options.index = index;
elementChange(options.currentElement) elementChange(options.currentElement)
options.index = index;
} }
const onPrevDayTimeClick = () => { const onPrevDayTimeClick = () => {
@ -1589,7 +1594,7 @@ export default {
// onSaveClick, // onSaveClick,
onTabClick, onTabClick,
onElementClick, onElementClick,
onDayClick, onChangeDayClick,
onPrevDayTimeClick, onPrevDayTimeClick,
onNextDayTimeClick onNextDayTimeClick
} }
@ -1628,35 +1633,36 @@ export default {
.picture { .picture {
width: 100%; width: 100%;
height: 100%;
position: relative; position: relative;
margin-top: 30px; //margin-top: 30px;
#watervapor_single_chart { #watervapor_single_chart {
transform: translateX(9%) translateY(15px); transform: translateX(9%) translateY(20px);
//transform: scale(1.0, 0.8) translateX(539px); //transform: scale(1.0, 0.8) translateX(539px);
} }
#extinction_optics_chart { #extinction_optics_chart {
//transform: scale(0.56, 0.85) translateX(-32%); //transform: scale(0.56, 0.85) translateX(-32%);
transform: translateX(9%) translateY(15px); transform: translateX(9%) translateY(20px);
} }
#pm2_5_chart { #pm2_5_chart {
transform: translateX(-50px) translateY(50px); transform: translateX(-50px) translateY(20px);
} }
#pm10_chart { #pm10_chart {
transform: translateX(-50px) translateY(50px); transform: translateX(-50px) translateY(20px);
} }
#backscatter_chart { #backscatter_chart {
transform: translateX(9%) translateY(50px); transform: translateX(9%) translateY(20px);
//transform: scale(0.6, 0.85) translateX(-76px); //transform: scale(0.6, 0.85) translateX(-76px);
} }
#cloud_sol_chart { #cloud_sol_chart {
transform: translateX(9%) translateY(50px); transform: translateX(9%) translateY(20px);
//transform: scale(0.6, 0.85) translate(-12%, -12px); //transform: scale(0.6, 0.85) translate(-12%, -12px);
} }
@ -1675,7 +1681,7 @@ export default {
width: 100%; width: 100%;
font-size: 0.22rem; font-size: 0.22rem;
position: absolute; position: absolute;
left: 2.10rem; left: 3.5rem;
top: 0.30rem; top: 0.30rem;
z-index: 100; z-index: 100;
} }

5
04.系统编码/Frontend/src/model/high-chart-create.ts

@ -82,6 +82,11 @@ export class HighChartCreate {
fontFamily: '微软雅黑' fontFamily: '微软雅黑'
} }
}, },
labels: {
style: {
fontSize:'18px'
},
},
max: max, max: max,
min: min, min: min,
tickInterval: tickInterval, tickInterval: tickInterval,

Loading…
Cancel
Save