优化覆冰微气象页面

menu1.0
fanluyan 7 months ago
parent 1b9e1701e2
commit b51c25c2ef

@ -150,20 +150,28 @@
</el-form> </el-form>
</div> </div>
<div class="termalBox"> <div class="termalBox">
<h3>当前监测终端</h3> <p>
<el-descriptions direction="vertical" :column="4" border> <span class="text"
<el-descriptions-item label="线路">{{ >线路:{{ childMsg.lineName || childMsg.lineName }}</span
childMsg.lineName >
}}</el-descriptions-item> <span class="text"
<el-descriptions-item label="杆塔">{{ >杆塔:{{ childMsg.towerName || childMsg.name }}</span
childMsg.towerName >
}}</el-descriptions-item> <span class="text">终端:{{ childMsg.cmdid }}</span>
<el-descriptions-item label="终端">{{ </p>
childMsg.cmdid <div class="gropBtn">
}}</el-descriptions-item> <el-button type="text" @click="onWdLine" icon="el-icon-odometer"
</el-descriptions> >温度趋势</el-button
>
<el-button
type="text"
@click="onSdLine"
icon="el-icon-heavy-rain"
>湿度趋势</el-button
>
</div>
</div> </div>
<div class="echartsBox"> <!-- <div class="echartsBox">
<div class="btnbox"> <div class="btnbox">
<el-button type="primary" @click="onWdLine" <el-button type="primary" @click="onWdLine"
>温度变化趋势</el-button >温度变化趋势</el-button
@ -175,16 +183,16 @@
</div> </div>
<div id="wDechart" class="chartClass" v-show="wdFlag"></div> <div id="wDechart" class="chartClass" v-show="wdFlag"></div>
<div id="sDechart" class="chartClass" v-show="sdFlag"></div> <div id="sDechart" class="chartClass" v-show="sdFlag"></div>
</div> </div> -->
<div class="childTableShowBox"> <div class="childTableShowBox">
<h3>气象数据列表</h3>
<el-table <el-table
:data="childTableDate" :data="childTableDate"
style="width: 100%" style="width: 100%"
v-loading="loading" v-loading="loading"
height="calc(100% - 40px)" height="calc(100% - 2px)"
> >
<el-table-column prop="updateTime" label="时间"> <el-table-column prop="updateTime" label="时间" width="138px">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.updateTime"> <span v-if="scope.row.updateTime">
{{ {{
@ -278,6 +286,12 @@
> >
</el-pagination> </el-pagination>
</div> </div>
<el-dialog title="温度折线图" :visible.sync="wdFlag">
<div id="wDechart" class="chartClass"></div>
</el-dialog>
<el-dialog title="湿度折线图" :visible.sync="sdFlag">
<div id="sDechart" class="chartClass"></div>
</el-dialog>
</div> </div>
</div> </div>
</div> </div>
@ -310,7 +324,7 @@ export default {
childParma: "", childParma: "",
childMsg: "", childMsg: "",
echartsData: "", //echarts echartsData: "", //echarts
wdFlag: true, wdFlag: false,
sdFlag: false, sdFlag: false,
}; };
}, },
@ -363,12 +377,13 @@ export default {
this.getWeatherData(weatherParams); this.getWeatherData(weatherParams);
} else { } else {
console.log("装置-杆塔"); console.log("装置-杆塔");
weatherParams = { // weatherParams = {
pageNum: 1, // pageNum: 1,
pageSize: this.pageSize, // pageSize: this.pageSize,
towerId: data.towerid, // towerId: data.towerid,
}; // };
this.getWeatherData(weatherParams); this.moreDataClick(data);
// this.getWeatherData(weatherParams);
} }
//this.getAllData(data); //this.getAllData(data);
}, },
@ -523,10 +538,6 @@ export default {
.then((res) => { .then((res) => {
console.log(res); console.log(res);
this.echartsData = res.data.list; this.echartsData = res.data.list;
//线
this.getEchart4(this.echartsData);
this.getEchart5(this.echartsData);
}) })
.catch((err) => { .catch((err) => {
console.log(err); // console.log(err); //
@ -535,10 +546,13 @@ export default {
onWdLine() { onWdLine() {
this.wdFlag = true; this.wdFlag = true;
this.sdFlag = false; this.sdFlag = false;
//线
this.getEchart4(this.echartsData);
}, },
onSdLine() { onSdLine() {
this.wdFlag = false; this.wdFlag = false;
this.sdFlag = true; this.sdFlag = true;
this.getEchart5(this.echartsData);
}, },
onHidden() { onHidden() {
this.wdFlag = false; this.wdFlag = false;
@ -733,6 +747,10 @@ export default {
border-left: 1px solid #ddd; border-left: 1px solid #ddd;
.el-table .el-table__cell { .el-table .el-table__cell {
text-align: center; text-align: center;
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
user-select: text;
} }
.dataBox { .dataBox {
width: calc(100% - 24px); width: calc(100% - 24px);
@ -745,23 +763,24 @@ export default {
} }
.childBox { .childBox {
height: 100%; height: 100%;
.echartsBox { .chartClass {
display: flex; height: 450px;
flex-direction: column; width: 100%;
align-items: center;
.btnbox {
display: flex;
margin-bottom: 8px;
.el-button--primary {
width: auto;
}
}
.chartClass {
height: 450px;
width: 800px;
}
} }
// .echartsBox {
// display: flex;
// flex-direction: column;
// align-items: center;
// .btnbox {
// display: flex;
// margin-bottom: 8px;
// .el-button--primary {
// width: auto;
// }
// }
// }
.childTableShowBox { .childTableShowBox {
h3 { h3 {
font-size: 16px; font-size: 16px;
@ -771,27 +790,21 @@ export default {
color: #666; color: #666;
margin-top: 16px; margin-top: 16px;
} }
height: calc(100% - 200px); height: calc(100% - 124px);
} }
.termalBox { .termalBox {
h3 { margin-bottom: 4px;
font-size: 16px; display: flex;
font-weight: normal; align-items: center;
margin-bottom: 4px; line-height: 32px;
text-align: center; p {
color: #666; .text {
} margin-right: 12px;
.el-descriptions {
margin-bottom: 16px;
.el-descriptions-item__label.is-bordered-label {
color: #333;
}
.el-descriptions__body
.el-descriptions__table
.el-descriptions-item__cell {
text-align: center;
} }
} }
.gropBtn {
//margin-left: auto;
}
} }
} }
} }

Loading…
Cancel
Save