|
|
@ -49,9 +49,15 @@
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="温度(℃)">
|
|
|
|
<el-table-column label="温度(℃)">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<span v-if="scope.row.lastWeathers !== null">{{
|
|
|
|
<span
|
|
|
|
|
|
|
|
v-if="
|
|
|
|
|
|
|
|
scope.row.lastWeathers !== null &&
|
|
|
|
|
|
|
|
scope.row.lastWeathers.airTemperature != 255
|
|
|
|
|
|
|
|
"
|
|
|
|
|
|
|
|
>{{
|
|
|
|
scope.row.lastWeathers.airTemperature.toFixed(1)
|
|
|
|
scope.row.lastWeathers.airTemperature.toFixed(1)
|
|
|
|
}}</span>
|
|
|
|
}}</span
|
|
|
|
|
|
|
|
>
|
|
|
|
<span v-else> - </span>
|
|
|
|
<span v-else> - </span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
@ -72,9 +78,13 @@
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="precipitation" label="10分钟降雨量(mm)">
|
|
|
|
<el-table-column prop="precipitation" label="10分钟降雨量(mm)">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<span v-if="scope.row.lastWeathers !== null">{{
|
|
|
|
<span
|
|
|
|
scope.row.lastWeathers.precipitation.toFixed(1)
|
|
|
|
v-if="
|
|
|
|
}}</span>
|
|
|
|
scope.row.lastWeathers !== null &&
|
|
|
|
|
|
|
|
scope.row.lastWeathers.precipitation != 255
|
|
|
|
|
|
|
|
"
|
|
|
|
|
|
|
|
>{{ scope.row.lastWeathers.precipitation.toFixed(1) }}</span
|
|
|
|
|
|
|
|
>
|
|
|
|
<span v-else> - </span>
|
|
|
|
<span v-else> - </span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
@ -127,42 +137,68 @@
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="avgWindSpeed10min" label="10分钟平均风速">
|
|
|
|
<el-table-column prop="avgWindSpeed10min" label="10分钟平均风速">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<span v-if="scope.row.lastWeathers !== null">{{
|
|
|
|
<span
|
|
|
|
|
|
|
|
v-if="
|
|
|
|
|
|
|
|
scope.row.lastWeathers !== null &&
|
|
|
|
|
|
|
|
scope.row.lastWeathers.avgWindSpeed10min != 255
|
|
|
|
|
|
|
|
"
|
|
|
|
|
|
|
|
>{{
|
|
|
|
scope.row.lastWeathers.avgWindSpeed10min.toFixed(1)
|
|
|
|
scope.row.lastWeathers.avgWindSpeed10min.toFixed(1)
|
|
|
|
}}</span>
|
|
|
|
}}</span
|
|
|
|
|
|
|
|
>
|
|
|
|
<span v-else> - </span>
|
|
|
|
<span v-else> - </span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="avgWindDir10min" label="10分钟平均风向">
|
|
|
|
<el-table-column prop="avgWindDir10min" label="10分钟平均风向">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<span v-if="scope.row.lastWeathers !== null">{{
|
|
|
|
<span
|
|
|
|
scope.row.lastWeathers.avgWindDir10min
|
|
|
|
v-if="
|
|
|
|
}}</span>
|
|
|
|
scope.row.lastWeathers !== null &&
|
|
|
|
|
|
|
|
scope.row.lastWeathers.avgWindDir10min != 255
|
|
|
|
|
|
|
|
"
|
|
|
|
|
|
|
|
>{{ scope.row.lastWeathers.avgWindDir10min }}</span
|
|
|
|
|
|
|
|
>
|
|
|
|
<span v-else> - </span>
|
|
|
|
<span v-else> - </span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column prop="maxWindSpeed" label="最大风速(m/s)">
|
|
|
|
<el-table-column prop="maxWindSpeed" label="最大风速(m/s)">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<span v-if="scope.row.lastWeathers !== null">{{
|
|
|
|
<span
|
|
|
|
scope.row.lastWeathers.maxWindSpeed.toFixed(1)
|
|
|
|
v-if="
|
|
|
|
}}</span>
|
|
|
|
scope.row.lastWeathers !== null &&
|
|
|
|
|
|
|
|
scope.row.lastWeathers.maxWindSpeed != 255
|
|
|
|
|
|
|
|
"
|
|
|
|
|
|
|
|
>{{ scope.row.lastWeathers.maxWindSpeed.toFixed(1) }}</span
|
|
|
|
|
|
|
|
>
|
|
|
|
<span v-else> - </span>
|
|
|
|
<span v-else> - </span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="extremeWindSpeed" label="极大风速(m/s)">
|
|
|
|
<el-table-column prop="extremeWindSpeed" label="极大风速(m/s)">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<span v-if="scope.row.lastWeathers !== null">{{
|
|
|
|
<span
|
|
|
|
|
|
|
|
v-if="
|
|
|
|
|
|
|
|
scope.row.lastWeathers !== null &&
|
|
|
|
|
|
|
|
scope.row.lastWeathers.extremeWindSpeed != 255
|
|
|
|
|
|
|
|
"
|
|
|
|
|
|
|
|
>{{
|
|
|
|
scope.row.lastWeathers.extremeWindSpeed.toFixed(1)
|
|
|
|
scope.row.lastWeathers.extremeWindSpeed.toFixed(1)
|
|
|
|
}}</span>
|
|
|
|
}}</span
|
|
|
|
|
|
|
|
>
|
|
|
|
<span v-else> - </span>
|
|
|
|
<span v-else> - </span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="maxWindSpeed" label="标准风速(m/s)">
|
|
|
|
<el-table-column prop="maxWindSpeed" label="标准风速(m/s)">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<span v-if="scope.row.lastWeathers !== null">{{
|
|
|
|
<span
|
|
|
|
|
|
|
|
v-if="
|
|
|
|
|
|
|
|
scope.row.lastWeathers !== null &&
|
|
|
|
|
|
|
|
scope.row.lastWeathers.standardWindSpeed != 255
|
|
|
|
|
|
|
|
"
|
|
|
|
|
|
|
|
>{{
|
|
|
|
scope.row.lastWeathers.standardWindSpeed.toFixed(1)
|
|
|
|
scope.row.lastWeathers.standardWindSpeed.toFixed(1)
|
|
|
|
}}</span>
|
|
|
|
}}</span
|
|
|
|
|
|
|
|
>
|
|
|
|
<span v-else> - </span>
|
|
|
|
<span v-else> - </span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
@ -220,6 +256,13 @@
|
|
|
|
<el-button type="primary" @click="onSubmit">查询</el-button>
|
|
|
|
<el-button type="primary" @click="onSubmit">查询</el-button>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
|
|
@click="collectWeather"
|
|
|
|
|
|
|
|
class="weathClass"
|
|
|
|
|
|
|
|
>采集数据</el-button
|
|
|
|
|
|
|
|
>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="termalBox">
|
|
|
|
<div class="termalBox">
|
|
|
|
<p>
|
|
|
|
<p>
|
|
|
@ -290,21 +333,19 @@
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="温度(℃)">
|
|
|
|
<el-table-column label="温度(℃)">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<span v-if="scope.row !== null">{{
|
|
|
|
<span
|
|
|
|
scope.row.airTemperature.toFixed(1)
|
|
|
|
v-if="
|
|
|
|
}}</span>
|
|
|
|
scope.row !== null && scope.row.airTemperature != 255
|
|
|
|
|
|
|
|
"
|
|
|
|
|
|
|
|
>{{ scope.row.airTemperature.toFixed(1) }}</span
|
|
|
|
|
|
|
|
>
|
|
|
|
<span v-else> - </span>
|
|
|
|
<span v-else> - </span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="humidity" label="湿度(%RH)">
|
|
|
|
<el-table-column prop="humidity" label="湿度(%RH)">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<span v-if="scope.row !== null"
|
|
|
|
<span v-if="scope.row !== null"
|
|
|
|
><span
|
|
|
|
><span v-if="scope.row.humidity != 255">
|
|
|
|
v-if="
|
|
|
|
|
|
|
|
scope.row.humidity != 65535 &&
|
|
|
|
|
|
|
|
scope.row.humidity != 255
|
|
|
|
|
|
|
|
"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
{{ scope.row.humidity.toFixed(1) }}</span
|
|
|
|
{{ scope.row.humidity.toFixed(1) }}</span
|
|
|
|
><span v-else> - </span></span
|
|
|
|
><span v-else> - </span></span
|
|
|
|
>
|
|
|
|
>
|
|
|
@ -313,9 +354,12 @@
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="precipitation" label="10分钟降雨量(mm)">
|
|
|
|
<el-table-column prop="precipitation" label="10分钟降雨量(mm)">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<span v-if="scope.row !== null">{{
|
|
|
|
<span
|
|
|
|
scope.row.precipitation.toFixed(1)
|
|
|
|
v-if="
|
|
|
|
}}</span>
|
|
|
|
scope.row !== null && scope.row.precipitation != 255
|
|
|
|
|
|
|
|
"
|
|
|
|
|
|
|
|
>{{ scope.row.precipitation.toFixed(1) }}</span
|
|
|
|
|
|
|
|
>
|
|
|
|
<span v-else> - </span>
|
|
|
|
<span v-else> - </span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
@ -364,42 +408,55 @@
|
|
|
|
label="10分钟平均风速"
|
|
|
|
label="10分钟平均风速"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<span v-if="scope.row !== null">{{
|
|
|
|
<span
|
|
|
|
scope.row.avgWindSpeed10min.toFixed(1)
|
|
|
|
v-if="
|
|
|
|
}}</span>
|
|
|
|
scope.row !== null && scope.row.avgWindSpeed10min != 255
|
|
|
|
|
|
|
|
"
|
|
|
|
|
|
|
|
>{{ scope.row.avgWindSpeed10min.toFixed(1) }}</span
|
|
|
|
|
|
|
|
>
|
|
|
|
<span v-else> - </span>
|
|
|
|
<span v-else> - </span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="avgWindDir10min" label="10分钟平均风向">
|
|
|
|
<el-table-column prop="avgWindDir10min" label="10分钟平均风向">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<span v-if="scope.row !== null">{{
|
|
|
|
<span
|
|
|
|
scope.row.avgWindDir10min
|
|
|
|
v-if="
|
|
|
|
}}</span>
|
|
|
|
scope.row !== null && scope.row.avgWindDir10min != 255
|
|
|
|
|
|
|
|
"
|
|
|
|
|
|
|
|
>{{ scope.row.avgWindDir10min }}</span
|
|
|
|
|
|
|
|
>
|
|
|
|
<span v-else> - </span>
|
|
|
|
<span v-else> - </span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column prop="maxWindSpeed" label="最大风速(m/s)">
|
|
|
|
<el-table-column prop="maxWindSpeed" label="最大风速(m/s)">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<span v-if="scope.row !== null">{{
|
|
|
|
<span
|
|
|
|
scope.row.maxWindSpeed.toFixed(1)
|
|
|
|
v-if="scope.row !== null && scope.row.maxWindSpeed != 255"
|
|
|
|
}}</span>
|
|
|
|
>{{ scope.row.maxWindSpeed.toFixed(1) }}</span
|
|
|
|
|
|
|
|
>
|
|
|
|
<span v-else> - </span>
|
|
|
|
<span v-else> - </span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="extremeWindSpeed" label="极大风速(m/s)">
|
|
|
|
<el-table-column prop="extremeWindSpeed" label="极大风速(m/s)">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<span v-if="scope.row !== null">{{
|
|
|
|
<span
|
|
|
|
scope.row.extremeWindSpeed.toFixed(1)
|
|
|
|
v-if="
|
|
|
|
}}</span>
|
|
|
|
scope.row !== null && scope.row.extremeWindSpeed != 255
|
|
|
|
|
|
|
|
"
|
|
|
|
|
|
|
|
>{{ scope.row.extremeWindSpeed.toFixed(1) }}</span
|
|
|
|
|
|
|
|
>
|
|
|
|
<span v-else> - </span>
|
|
|
|
<span v-else> - </span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="maxWindSpeed" label="标准风速(m/s)">
|
|
|
|
<el-table-column prop="maxWindSpeed" label="标准风速(m/s)">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<span v-if="scope.row !== null">{{
|
|
|
|
<span
|
|
|
|
scope.row.standardWindSpeed.toFixed(1)
|
|
|
|
v-if="
|
|
|
|
}}</span>
|
|
|
|
scope.row !== null && scope.row.standardWindSpeed != 255
|
|
|
|
|
|
|
|
"
|
|
|
|
|
|
|
|
>{{ scope.row.standardWindSpeed.toFixed(1) }}</span
|
|
|
|
|
|
|
|
>
|
|
|
|
<span v-else> - </span>
|
|
|
|
<span v-else> - </span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
@ -431,6 +488,7 @@
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import leftTree from "../components/leftTree";
|
|
|
|
import leftTree from "../components/leftTree";
|
|
|
|
import { weatherJoggle, weatherListJoggle } from "@/utils/api/iceApi";
|
|
|
|
import { weatherJoggle, weatherListJoggle } from "@/utils/api/iceApi";
|
|
|
|
|
|
|
|
import { getTermStatus, setTermCamera } from "@/utils/api/index";
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "weather",
|
|
|
|
name: "weather",
|
|
|
|
components: {
|
|
|
|
components: {
|
|
|
@ -627,6 +685,56 @@ export default {
|
|
|
|
onSubmit() {
|
|
|
|
onSubmit() {
|
|
|
|
this.getchildWeatherData(this.childParma);
|
|
|
|
this.getchildWeatherData(this.childParma);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
//采集数据
|
|
|
|
|
|
|
|
collectWeather() {
|
|
|
|
|
|
|
|
getTermStatus({ termId: this.childMsg.id }).then((res) => {
|
|
|
|
|
|
|
|
console.log(res);
|
|
|
|
|
|
|
|
if (res.data.isonline) {
|
|
|
|
|
|
|
|
let params = [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
name: "act",
|
|
|
|
|
|
|
|
value: "reqdata",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
name: "reqType",
|
|
|
|
|
|
|
|
value: "1",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
name: "startTime",
|
|
|
|
|
|
|
|
value: 0,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
name: "endTime",
|
|
|
|
|
|
|
|
value: 0,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
this.setTermFn(params);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.$message({
|
|
|
|
|
|
|
|
duration: 1500,
|
|
|
|
|
|
|
|
showClose: true,
|
|
|
|
|
|
|
|
message: "装置下线,发送指令失败",
|
|
|
|
|
|
|
|
type: "error",
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
setTermFn(val) {
|
|
|
|
|
|
|
|
setTermCamera({
|
|
|
|
|
|
|
|
termId: this.childMsg.id,
|
|
|
|
|
|
|
|
list: val,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.then((res) => {
|
|
|
|
|
|
|
|
console.log(res);
|
|
|
|
|
|
|
|
this.$message({
|
|
|
|
|
|
|
|
duration: 1500,
|
|
|
|
|
|
|
|
showClose: true,
|
|
|
|
|
|
|
|
message: "命令已下发",
|
|
|
|
|
|
|
|
type: "success",
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch((err) => {});
|
|
|
|
|
|
|
|
},
|
|
|
|
getchildWeatherData(row) {
|
|
|
|
getchildWeatherData(row) {
|
|
|
|
this.loading = true;
|
|
|
|
this.loading = true;
|
|
|
|
this.childMsg = row;
|
|
|
|
this.childMsg = row;
|
|
|
@ -922,6 +1030,13 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.childBox {
|
|
|
|
.childBox {
|
|
|
|
height: 100%;
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
.searchBox {
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
|
|
.weathClass {
|
|
|
|
|
|
|
|
margin-bottom: 18px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
.chartClass {
|
|
|
|
.chartClass {
|
|
|
|
height: 450px;
|
|
|
|
height: 450px;
|
|
|
|
width: 100%;
|
|
|
|
width: 100%;
|
|
|
|