|
|
|
@ -38,7 +38,12 @@
|
|
|
|
|
<el-table-column prop="humidity" label="湿度(%RH)">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span v-if="scope.row.lastWeathers !== null"
|
|
|
|
|
><span v-if="scope.row.lastWeathers.humidity != 65535">
|
|
|
|
|
><span
|
|
|
|
|
v-if="
|
|
|
|
|
scope.row.lastWeathers.humidity != 65535 &&
|
|
|
|
|
scope.row.lastWeathers.humidity != 255
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
{{ scope.row.lastWeathers.humidity.toFixed(1) }}</span
|
|
|
|
|
><span v-else> - </span></span
|
|
|
|
|
>
|
|
|
|
@ -67,17 +72,25 @@
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="precipitation" label="雨量(mm/hour)">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span v-if="scope.row.lastWeathers !== null">{{
|
|
|
|
|
scope.row.lastWeathers.precipitation.toFixed(1)
|
|
|
|
|
}}</span>
|
|
|
|
|
<span
|
|
|
|
|
v-if="
|
|
|
|
|
scope.row.lastWeathers !== null &&
|
|
|
|
|
scope.row.lastWeathers.precipitation != 255
|
|
|
|
|
"
|
|
|
|
|
>{{ scope.row.lastWeathers.precipitation.toFixed(1) }}</span
|
|
|
|
|
>
|
|
|
|
|
<span v-else> - </span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="airPressure" label="气压(hPa(百帕))">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span v-if="scope.row.lastWeathers !== null">{{
|
|
|
|
|
scope.row.lastWeathers.airPressure.toFixed(1)
|
|
|
|
|
}}</span>
|
|
|
|
|
<span
|
|
|
|
|
v-if="
|
|
|
|
|
scope.row.lastWeathers !== null &&
|
|
|
|
|
scope.row.lastWeathers.airPressure != 255
|
|
|
|
|
"
|
|
|
|
|
>{{ scope.row.lastWeathers.airPressure.toFixed(1) }}</span
|
|
|
|
|
>
|
|
|
|
|
<span v-else> - </span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
@ -85,7 +98,10 @@
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span v-if="scope.row.lastWeathers !== null"
|
|
|
|
|
><span
|
|
|
|
|
v-if="scope.row.lastWeathers.radiationIntensity != 65535"
|
|
|
|
|
v-if="
|
|
|
|
|
scope.row.lastWeathers.radiationIntensity != 255 &&
|
|
|
|
|
scope.row.lastWeathers.radiationIntensity != 65535
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
{{
|
|
|
|
|
scope.row.lastWeathers.radiationIntensity.toFixed(0)
|
|
|
|
@ -204,39 +220,85 @@
|
|
|
|
|
<span v-else> - </span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="airTemperature"
|
|
|
|
|
label="温度(℃)"
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column prop="airTemperature" label="温度(℃)">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span
|
|
|
|
|
v-if="
|
|
|
|
|
scope.row.airTemperature !== null &&
|
|
|
|
|
scope.row.airTemperature != 255
|
|
|
|
|
"
|
|
|
|
|
>{{ scope.row.airTemperature.toFixed(1) }}</span
|
|
|
|
|
>
|
|
|
|
|
<span v-else> - </span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="humidity" label="湿度(%RH)">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span v-if="scope.row.humidity != 65535">
|
|
|
|
|
{{ scope.row.humidity.toFixed(1) }}</span
|
|
|
|
|
<span
|
|
|
|
|
v-if="
|
|
|
|
|
scope.row.humidity !== null && scope.row.humidity != 255
|
|
|
|
|
"
|
|
|
|
|
>{{ scope.row.humidity.toFixed(1) }}</span
|
|
|
|
|
>
|
|
|
|
|
<span v-else> - </span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="maxWindSpeed" label="瞬时风速(m/s)">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span> {{ scope.row.maxWindSpeed.toFixed(1) }} </span>
|
|
|
|
|
<span
|
|
|
|
|
v-if="
|
|
|
|
|
scope.row.maxWindSpeed !== null &&
|
|
|
|
|
scope.row.maxWindSpeed != 255
|
|
|
|
|
"
|
|
|
|
|
>{{ scope.row.maxWindSpeed.toFixed(1) }}</span
|
|
|
|
|
>
|
|
|
|
|
<span v-else> - </span>
|
|
|
|
|
</template></el-table-column
|
|
|
|
|
>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="windDirection"
|
|
|
|
|
label="瞬时风向(°)"
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="precipitation"
|
|
|
|
|
label="雨量(mm/hour)"
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="airPressure"
|
|
|
|
|
label="气压(hPa(百帕))"
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column prop="windDirection" label="瞬时风向(°)">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span
|
|
|
|
|
v-if="
|
|
|
|
|
scope.row.windDirection !== null &&
|
|
|
|
|
scope.row.windDirection != 255
|
|
|
|
|
"
|
|
|
|
|
>{{ scope.row.windDirection.toFixed(1) }}</span
|
|
|
|
|
>
|
|
|
|
|
<span v-else> - </span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="precipitation" label="雨量(mm/hour)">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span
|
|
|
|
|
v-if="
|
|
|
|
|
scope.row.precipitation !== null &&
|
|
|
|
|
scope.row.precipitation != 255
|
|
|
|
|
"
|
|
|
|
|
>{{ scope.row.precipitation.toFixed(1) }}</span
|
|
|
|
|
>
|
|
|
|
|
<span v-else> - </span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="airPressure" label="气压(hPa(百帕))">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span
|
|
|
|
|
v-if="
|
|
|
|
|
scope.row.airPressure !== null &&
|
|
|
|
|
scope.row.airPressure != 255
|
|
|
|
|
"
|
|
|
|
|
>{{ scope.row.airPressure.toFixed(1) }}</span
|
|
|
|
|
>
|
|
|
|
|
<span v-else> - </span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="radiationIntensity" label="日照(W/m2)">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span v-if="scope.row.radiationIntensity !== 65535">
|
|
|
|
|
{{ scope.row.radiationIntensity.toFixed(0) }}</span
|
|
|
|
|
<span
|
|
|
|
|
v-if="
|
|
|
|
|
scope.row.radiationIntensity !== null &&
|
|
|
|
|
scope.row.radiationIntensity != 255
|
|
|
|
|
"
|
|
|
|
|
>{{ scope.row.radiationIntensity.toFixed(1) }}</span
|
|
|
|
|
>
|
|
|
|
|
<span v-else> - </span>
|
|
|
|
|
</template>
|
|
|
|
@ -248,7 +310,18 @@
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="avgWindSpeed1min"
|
|
|
|
|
label="1分钟平均风向(°)"
|
|
|
|
|
></el-table-column>
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span
|
|
|
|
|
v-if="
|
|
|
|
|
scope.row.avgWindSpeed1min !== null &&
|
|
|
|
|
scope.row.avgWindSpeed1min != 255
|
|
|
|
|
"
|
|
|
|
|
>{{ scope.row.avgWindSpeed1min.toFixed(1) }}</span
|
|
|
|
|
>
|
|
|
|
|
<span v-else> - </span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="avgWindSpeed10min"
|
|
|
|
|
label="10分钟平均风速(m/s)"
|
|
|
|
@ -570,7 +643,7 @@ export default {
|
|
|
|
|
var xData = [];
|
|
|
|
|
var yData = [];
|
|
|
|
|
xData = wd.map((item) =>
|
|
|
|
|
this.$moment(item.updateTime * 1000).format("HH:mm:ss")
|
|
|
|
|
this.$moment(item.updateTime * 1000).format("YYYY-MM-DD HH:mm:ss")
|
|
|
|
|
);
|
|
|
|
|
yData = wd.map((item) => item.airTemperature);
|
|
|
|
|
let option = {
|
|
|
|
@ -580,7 +653,7 @@ export default {
|
|
|
|
|
grid: {
|
|
|
|
|
//left: "6%", //图表距离容器左侧多少距离
|
|
|
|
|
//right: "6%", //图表距离容器右侧侧多少距离
|
|
|
|
|
bottom: "6%", //图表距离容器上面多少距离
|
|
|
|
|
bottom: "15%", //图表距离容器上面多少距离
|
|
|
|
|
//top: "2%", //图表距离容器下面多少距离
|
|
|
|
|
},
|
|
|
|
|
title: {
|
|
|
|
@ -602,6 +675,20 @@ export default {
|
|
|
|
|
saveAsImage: {},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
dataZoom: [
|
|
|
|
|
{
|
|
|
|
|
show: true,
|
|
|
|
|
realtime: true,
|
|
|
|
|
start: 0,
|
|
|
|
|
end: 100,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
type: "inside",
|
|
|
|
|
realtime: true,
|
|
|
|
|
start: 0,
|
|
|
|
|
end: 100,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
xAxis: {
|
|
|
|
|
name: "时间", // 坐标轴名称
|
|
|
|
|
type: "category",
|
|
|
|
@ -640,7 +727,7 @@ export default {
|
|
|
|
|
var xData = [];
|
|
|
|
|
var yData = [];
|
|
|
|
|
xData = sd.map((item) =>
|
|
|
|
|
this.$moment(item.updateTime * 1000).format("HH:mm:ss")
|
|
|
|
|
this.$moment(item.updateTime * 1000).format("YYYY-MM-DD HH:mm:ss")
|
|
|
|
|
);
|
|
|
|
|
yData = sd.map((item) => item.humidity);
|
|
|
|
|
let option = {
|
|
|
|
@ -650,7 +737,7 @@ export default {
|
|
|
|
|
grid: {
|
|
|
|
|
//left: "6%", //图表距离容器左侧多少距离
|
|
|
|
|
//right: "6%", //图表距离容器右侧侧多少距离
|
|
|
|
|
bottom: "6%", //图表距离容器上面多少距离
|
|
|
|
|
bottom: "15%", //图表距离容器上面多少距离
|
|
|
|
|
//top: "2%", //图表距离容器下面多少距离
|
|
|
|
|
},
|
|
|
|
|
title: {
|
|
|
|
@ -672,6 +759,20 @@ export default {
|
|
|
|
|
saveAsImage: {},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
dataZoom: [
|
|
|
|
|
{
|
|
|
|
|
show: true,
|
|
|
|
|
realtime: true,
|
|
|
|
|
start: 0,
|
|
|
|
|
end: 100,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
type: "inside",
|
|
|
|
|
realtime: true,
|
|
|
|
|
start: 0,
|
|
|
|
|
end: 100,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
xAxis: {
|
|
|
|
|
name: "时间", // 坐标轴名称
|
|
|
|
|
type: "category",
|
|
|
|
|