|
@@ -2,7 +2,10 @@
|
|
<el-dialog v-model="dialogVisible" width="80%" top="120px">
|
|
<el-dialog v-model="dialogVisible" width="80%" top="120px">
|
|
<template #title>
|
|
<template #title>
|
|
<div class="dialog-title">
|
|
<div class="dialog-title">
|
|
- <div class="title">设备报警信息</div>
|
|
|
|
|
|
+ <div class="title">
|
|
|
|
+ 设备报警信息
|
|
|
|
+ <span style="font-size:12px">(3小时内)</span>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<div class="dialog-body">
|
|
<div class="dialog-body">
|
|
@@ -27,8 +30,12 @@
|
|
>
|
|
>
|
|
<template #default="{ row }">
|
|
<template #default="{ row }">
|
|
<span v-if="item.code == 'rank'">{{ getRank(row.rank) }}</span>
|
|
<span v-if="item.code == 'rank'">{{ getRank(row.rank) }}</span>
|
|
|
|
+ <span
|
|
|
|
+ v-else-if="item.code == 'endts' && item.title == '是否解除'"
|
|
|
|
+ >{{ row.endts ? "已解除" : "未解除" }}</span
|
|
|
|
+ >
|
|
<span v-else-if="item.code == 'endts'">{{
|
|
<span v-else-if="item.code == 'endts'">{{
|
|
- row.endts ? "解除" : "未解除"
|
|
|
|
|
|
+ row.endts ? getTime(row.endts) : "--"
|
|
}}</span>
|
|
}}</span>
|
|
<span v-else>{{ row[item.code] }}</span>
|
|
<span v-else>{{ row[item.code] }}</span>
|
|
</template>
|
|
</template>
|
|
@@ -62,8 +69,8 @@ export default {
|
|
{ title: "场站名称", code: "stationname", width: "200" },
|
|
{ title: "场站名称", code: "stationname", width: "200" },
|
|
{ title: "设备名称", code: "devicename", width: "180" },
|
|
{ title: "设备名称", code: "devicename", width: "180" },
|
|
{ title: "报警描述", code: "description" },
|
|
{ title: "报警描述", code: "description" },
|
|
- // { title: "级别", code: "rank", width: "120" },
|
|
|
|
{ title: "是否解除", code: "endts", width: "120" },
|
|
{ title: "是否解除", code: "endts", width: "120" },
|
|
|
|
+ { title: "解除时间", code: "endts", width: "200" },
|
|
{ title: "是否确认", code: "confirmed", width: "120" },
|
|
{ title: "是否确认", code: "confirmed", width: "120" },
|
|
],
|
|
],
|
|
page: {
|
|
page: {
|
|
@@ -78,6 +85,9 @@ export default {
|
|
},
|
|
},
|
|
created() {},
|
|
created() {},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ getTime(endts) {
|
|
|
|
+ return dayjs(endts).format("YYYY-MM-DD HH:mm:ss");
|
|
|
|
+ },
|
|
getRank(rank) {
|
|
getRank(rank) {
|
|
if (rank === 1) {
|
|
if (rank === 1) {
|
|
return "低级";
|
|
return "低级";
|
|
@@ -102,9 +112,9 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
getTableData() {
|
|
getTableData() {
|
|
- this.BASE.showLoading();
|
|
|
|
|
|
+ this.BASE.showLoading();
|
|
GetTableData({
|
|
GetTableData({
|
|
- begin: dayjs().startOf("day").format("YYYY-MM-DD HH:mm:ss"),
|
|
|
|
|
|
+ begin: dayjs().add(-3, "hour").format("YYYY-MM-DD HH:mm:ss"),
|
|
end: dayjs().format("YYYY-MM-DD HH:mm:ss"),
|
|
end: dayjs().format("YYYY-MM-DD HH:mm:ss"),
|
|
alarmType: this.wtype == -1 ? "windturbine" : "inverter",
|
|
alarmType: this.wtype == -1 ? "windturbine" : "inverter",
|
|
stationid: this.wpid,
|
|
stationid: this.wpid,
|