diff --git a/04.系统编码/Frontend/src/components/MicrowaveRadiation.vue b/04.系统编码/Frontend/src/components/MicrowaveRadiation.vue index 2a9c1f5..93f6d76 100644 --- a/04.系统编码/Frontend/src/components/MicrowaveRadiation.vue +++ b/04.系统编码/Frontend/src/components/MicrowaveRadiation.vue @@ -50,6 +50,18 @@ + +
@@ -123,20 +135,25 @@
-
-
-

BP反演温度

+
+
+
-
-

BP反演相对湿度

+
+ +
+
-
-

BP反演水汽密度

+
+ +
+
+
@@ -263,7 +280,8 @@ export default { highChartXAxis: [], specialStartTime: null, tLogPPicture: "/images/no-data.png", - SeasonValue: '1' + SeasonValue: '1', + ElementChange: "BP-temp" }); let drawers = { @@ -927,6 +945,10 @@ export default { reloadData() } + const onElementChange = (type) => { + options.ElementChange = type + } + return { ...toRefs(options), onTabClick, @@ -938,7 +960,8 @@ export default { onRefreshClick, onChange, changeColor, - onchangeSeason + onchangeSeason, + onElementChange } } } @@ -946,6 +969,7 @@ export default { diff --git a/04.系统编码/Frontend/src/index.less b/04.系统编码/Frontend/src/index.less index aac3cfb..6cd1822 100644 --- a/04.系统编码/Frontend/src/index.less +++ b/04.系统编码/Frontend/src/index.less @@ -383,7 +383,6 @@ img { width: 100%; height: calc(~"100% - 0.71rem"); position: relative; - .arrow { width: 0.68rem; display: block; @@ -414,19 +413,12 @@ img { //} .picture-container { - height: 100%; display: flex; //flex-direction: column; justify-content: center; align-content: center; - .picture { - //height: 100%; - //.el-image { - // height: 100%; - //} - } } .picture { diff --git a/04.系统编码/Frontend/src/model/high-chart-create.ts b/04.系统编码/Frontend/src/model/high-chart-create.ts index 94a51e8..64d01ee 100644 --- a/04.系统编码/Frontend/src/model/high-chart-create.ts +++ b/04.系统编码/Frontend/src/model/high-chart-create.ts @@ -17,10 +17,11 @@ export class HighChartCreate { this.id = id; } - public setChart(inverted: boolean = false, type: string = 'line'): void { + public setChart(inverted: boolean = false, type: string = 'line', width: number = null): void { this.chart = { type: type, - inverted: inverted + inverted: inverted, + width: width }; } @@ -50,8 +51,7 @@ export class HighChartCreate { this.xAxis.push({ type: 'datetime', labels: { - formatter: function () { - console.log(this) + formatter: function () { return Highcharts.dateFormat('%d日%H时', this.value); } } @@ -87,7 +87,7 @@ export class HighChartCreate { }) } - public setYAxis(text: string, max: number, min: number, tickInterval: number, tickAmount: number, opposite: boolean = false, lineWidth: number = 1, reversed: boolean = true){ + public setYAxis(text: string, max: number = null, min: number = null, tickInterval: number = null, tickAmount: number = null, opposite: boolean = false, lineWidth: number = 1, reversed: boolean = true){ this.yAxis.push({ title: { text: text,