|
@@ -212,7 +212,7 @@
|
|
|
'text-align': 'center',
|
|
|
}"
|
|
|
>
|
|
|
- <el-table-column prop="alertTime" label="时间" width="220">
|
|
|
+ <el-table-column prop="lastUpdateTime" label="时间" width="220">
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="alertText" label="故障信息" width="280">
|
|
|
</el-table-column>
|
|
@@ -316,7 +316,7 @@ export default {
|
|
|
selectValue: "7",
|
|
|
healthInfo: {},
|
|
|
dataValues: {},
|
|
|
- warning: ["-"],
|
|
|
+ warning: [],
|
|
|
showData: [],
|
|
|
partsName: "",
|
|
|
modelData: {},
|
|
@@ -416,19 +416,15 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
async getWarning() {
|
|
|
- await api.getWindturbineWarning({
|
|
|
- pagenum: 1000,
|
|
|
- pagesize: 1,
|
|
|
+ await api.getAlarmSnap({
|
|
|
+ stationid: this.windturbine.stationId,
|
|
|
+ category1: 'windturbine',
|
|
|
windturbineid: this.windturbine.windturbineId,
|
|
|
- starttime: dayjs(new Date(this.windturbine.ts).getTime()- 172800000).format('YYYY-MM-DD HH:mm:ss'),
|
|
|
- endtime: dayjs(new Date(this.windturbine.ts).getTime()).format('YYYY-MM-DD HH:mm:ss'),
|
|
|
+ isopened: 1,
|
|
|
})
|
|
|
.then((msg) => {
|
|
|
if (msg.data) {
|
|
|
- msg.data.records.forEach((item) => {
|
|
|
- item.alertTime = dayjs(item.alertTime).format("MM-DD HH:mm:ss");
|
|
|
- });
|
|
|
- this.warning = msg.data.records;
|
|
|
+ this.warning = msg.data;
|
|
|
// this.warningDeal()
|
|
|
}
|
|
|
})
|