|
|
|
@ -35,7 +35,7 @@
|
|
|
|
|
:data="tableData" |
|
|
|
|
@row-click="handlerow" |
|
|
|
|
highlight-current-row |
|
|
|
|
height="500" |
|
|
|
|
height="400" |
|
|
|
|
ref="maintable" |
|
|
|
|
:cell-style="tableRowStyle" |
|
|
|
|
> |
|
|
|
@ -43,10 +43,18 @@
|
|
|
|
|
<el-table-column v-if="showDeviceName" prop="deviceName" label="设备名称"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="0点" align="center" prop="temp00" /> |
|
|
|
|
<el-table-column label="1点" align="center" prop="temp01" /> |
|
|
|
|
<el-table-column label="2点" align="center" prop="temp02" /> |
|
|
|
|
<el-table-column label="3点" align="center" prop="temp03" /> |
|
|
|
|
<el-table-column label="4点" align="center" prop="temp04" /> |
|
|
|
|
<el-table-column label="5点" align="center" prop="temp05" /> |
|
|
|
|
<el-table-column label="6点" align="center" prop="temp06" /> |
|
|
|
|
<el-table-column label="7点" align="center" prop="temp07" /> |
|
|
|
|
<el-table-column label="8点" align="center" prop="temp08" /> |
|
|
|
|
<el-table-column label="9点" align="center" prop="temp09" /> |
|
|
|
|
<el-table-column label="10点" align="center" prop="temp10" /> |
|
|
|
|
<el-table-column label="11点" align="center" prop="temp11" /> |
|
|
|
|
<el-table-column label="12点" align="center" prop="temp12" /> |
|
|
|
|
<el-table-column label="13点" align="center" prop="temp13" /> |
|
|
|
|
<el-table-column label="14点" align="center" prop="temp14" /> |
|
|
|
|
<el-table-column label="15点" align="center" prop="temp15" /> |
|
|
|
@ -235,7 +243,7 @@ export default {
|
|
|
|
|
const data = params[0]; |
|
|
|
|
const month = data.name; |
|
|
|
|
const value = data.value; |
|
|
|
|
return `${month}<br/>温度: ${value} ℃`; |
|
|
|
|
return `${month}<br/>水位: ${value} %`; |
|
|
|
|
}, |
|
|
|
|
}; |
|
|
|
|
this.brokenOption.xAxis.data = this.brokenTime; |
|
|
|
@ -250,10 +258,18 @@ export default {
|
|
|
|
|
"楼栋名称", |
|
|
|
|
"设备名称", |
|
|
|
|
"0点", |
|
|
|
|
"02点", |
|
|
|
|
"06点", |
|
|
|
|
"1点", |
|
|
|
|
"2点", |
|
|
|
|
"3点", |
|
|
|
|
"4点", |
|
|
|
|
"5点", |
|
|
|
|
"6点", |
|
|
|
|
"7点", |
|
|
|
|
"8点", |
|
|
|
|
"9点", |
|
|
|
|
"10点", |
|
|
|
|
"11点", |
|
|
|
|
"12点", |
|
|
|
|
"13点", |
|
|
|
|
"14点", |
|
|
|
|
"15点", |
|
|
|
@ -270,10 +286,18 @@ export default {
|
|
|
|
|
"buildingName", |
|
|
|
|
"deviceName", |
|
|
|
|
"temp00", |
|
|
|
|
"temp01", |
|
|
|
|
"temp02", |
|
|
|
|
"temp03", |
|
|
|
|
"temp04", |
|
|
|
|
"temp05", |
|
|
|
|
"temp06", |
|
|
|
|
"temp07", |
|
|
|
|
"temp08", |
|
|
|
|
"temp09", |
|
|
|
|
"temp10", |
|
|
|
|
"temp11", |
|
|
|
|
"temp12", |
|
|
|
|
"temp13", |
|
|
|
|
"temp14", |
|
|
|
|
"temp15", |
|
|
|
@ -290,10 +314,18 @@ export default {
|
|
|
|
|
var tHeader = [ |
|
|
|
|
"楼栋名称", |
|
|
|
|
"0点", |
|
|
|
|
"02点", |
|
|
|
|
"06点", |
|
|
|
|
"1点", |
|
|
|
|
"2点", |
|
|
|
|
"3点", |
|
|
|
|
"4点", |
|
|
|
|
"5点", |
|
|
|
|
"6点", |
|
|
|
|
"7点", |
|
|
|
|
"8点", |
|
|
|
|
"9点", |
|
|
|
|
"10点", |
|
|
|
|
"11点", |
|
|
|
|
"12点", |
|
|
|
|
"13点", |
|
|
|
|
"14点", |
|
|
|
|
"15点", |
|
|
|
@ -309,10 +341,18 @@ export default {
|
|
|
|
|
var filterVal = [ |
|
|
|
|
"buildingName", |
|
|
|
|
"temp00", |
|
|
|
|
"temp01", |
|
|
|
|
"temp02", |
|
|
|
|
"temp03", |
|
|
|
|
"temp04", |
|
|
|
|
"temp05", |
|
|
|
|
"temp06", |
|
|
|
|
"temp07", |
|
|
|
|
"temp08", |
|
|
|
|
"temp09", |
|
|
|
|
"temp10", |
|
|
|
|
"temp11", |
|
|
|
|
"temp12", |
|
|
|
|
"temp13", |
|
|
|
|
"temp14", |
|
|
|
|
"temp15", |
|
|
|
@ -331,7 +371,7 @@ export default {
|
|
|
|
|
excel.export_json_to_excel({ |
|
|
|
|
header: tHeader, //表头 |
|
|
|
|
data, //数据 |
|
|
|
|
filename: "温度变化报表", //名称 |
|
|
|
|
filename: "水位变化报表", //名称 |
|
|
|
|
autoWidth: true, //宽度自适应 |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|