|
@@ -26,44 +26,46 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<el-scrollbar>
|
|
|
- <el-table
|
|
|
- :data="hiddenDangerData"
|
|
|
- border
|
|
|
- border-color="rgb(36,36,36)"
|
|
|
- max-height="650px"
|
|
|
- :header-cell-style="{
|
|
|
- background: 'Black',
|
|
|
- color: 'rgb(220,220,220)',
|
|
|
- border:'0px'
|
|
|
- }"
|
|
|
- :cell-style="{ background: 'Black', color: 'rgb(220,220,220)',}"
|
|
|
- >
|
|
|
- <el-table-column
|
|
|
- width="160"
|
|
|
- property="lastUpdateTime"
|
|
|
- label="时间"
|
|
|
- align="center"
|
|
|
- ></el-table-column>
|
|
|
- <el-table-column
|
|
|
- width="110"
|
|
|
- property="windturbineId"
|
|
|
- label="设备"
|
|
|
- align="center"
|
|
|
- ></el-table-column>
|
|
|
- <el-table-column
|
|
|
- width="250"
|
|
|
- property="alertText"
|
|
|
- label="故障信息"
|
|
|
- align="center"
|
|
|
- ></el-table-column>
|
|
|
- </el-table>
|
|
|
+ <el-table
|
|
|
+ :data="hiddenDangerData"
|
|
|
+ border
|
|
|
+ border-color="rgb(36,36,36)"
|
|
|
+ max-height="650px"
|
|
|
+ :header-cell-style="{
|
|
|
+ background: 'Black',
|
|
|
+ color: 'rgb(220,220,220)',
|
|
|
+ border: '0px',
|
|
|
+ }"
|
|
|
+ :cell-style="{ background: 'Black', color: 'rgb(220,220,220)' }"
|
|
|
+ >
|
|
|
+ <el-table-column
|
|
|
+ width="160"
|
|
|
+ property="lastUpdateTime"
|
|
|
+ label="时间"
|
|
|
+ align="center"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ width="110"
|
|
|
+ property="windturbineId"
|
|
|
+ label="设备"
|
|
|
+ align="center"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ width="250"
|
|
|
+ property="alertText"
|
|
|
+ label="故障信息"
|
|
|
+ align="center"
|
|
|
+ ></el-table-column>
|
|
|
+ </el-table>
|
|
|
</el-scrollbar>
|
|
|
</el-popover>
|
|
|
- <el-popover placement="top-start"
|
|
|
+ <el-popover
|
|
|
+ placement="top-start"
|
|
|
:width="521"
|
|
|
trigger="hover"
|
|
|
class="popoverBack"
|
|
|
- :show-arrow="false">
|
|
|
+ :show-arrow="false"
|
|
|
+ >
|
|
|
<template #reference>
|
|
|
<div class="status-list">
|
|
|
<img
|
|
@@ -82,9 +84,10 @@
|
|
|
:header-cell-style="{
|
|
|
background: 'Black',
|
|
|
color: 'rgb(220,220,220)',
|
|
|
- border:'0px'
|
|
|
+ border: '0px',
|
|
|
}"
|
|
|
- :cell-style="{ background: 'Black', color: 'rgb(220,220,220)',}">
|
|
|
+ :cell-style="{ background: 'Black', color: 'rgb(220,220,220)' }"
|
|
|
+ >
|
|
|
<el-table-column
|
|
|
width="160"
|
|
|
property="lastUpdateTime"
|
|
@@ -110,7 +113,8 @@
|
|
|
:width="521"
|
|
|
trigger="hover"
|
|
|
class="popoverBack"
|
|
|
- :show-arrow="false">
|
|
|
+ :show-arrow="false"
|
|
|
+ >
|
|
|
<template #reference>
|
|
|
<div class="status-list">
|
|
|
<img
|
|
@@ -129,9 +133,10 @@
|
|
|
:header-cell-style="{
|
|
|
background: 'Black',
|
|
|
color: 'rgb(220,220,220)',
|
|
|
- border:'0px'
|
|
|
+ border: '0px',
|
|
|
}"
|
|
|
- :cell-style="{ background: 'Black', color: 'rgb(220,220,220)',}">
|
|
|
+ :cell-style="{ background: 'Black', color: 'rgb(220,220,220)' }"
|
|
|
+ >
|
|
|
<el-table-column
|
|
|
width="160"
|
|
|
property="lastUpdateTime"
|
|
@@ -157,7 +162,8 @@
|
|
|
:width="521"
|
|
|
trigger="hover"
|
|
|
class="popoverBack"
|
|
|
- :show-arrow="false">
|
|
|
+ :show-arrow="false"
|
|
|
+ >
|
|
|
<template #reference>
|
|
|
<div class="status-list">
|
|
|
<img
|
|
@@ -176,9 +182,10 @@
|
|
|
:header-cell-style="{
|
|
|
background: 'Black',
|
|
|
color: 'rgb(220,220,220)',
|
|
|
- border:'0px'
|
|
|
+ border: '0px',
|
|
|
}"
|
|
|
- :cell-style="{ background: 'Black', color: 'rgb(220,220,220)',}">
|
|
|
+ :cell-style="{ background: 'Black', color: 'rgb(220,220,220)' }"
|
|
|
+ >
|
|
|
<el-table-column
|
|
|
width="160"
|
|
|
property="lastUpdateTime"
|
|
@@ -205,7 +212,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import BackgroundData from '../assets/script/BackgroundData'
|
|
|
+import BackgroundData from "../assets/script/BackgroundData";
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -216,10 +223,10 @@ export default {
|
|
|
statusTimer: "",
|
|
|
currentTime: "",
|
|
|
|
|
|
- hiddenDangerData:new Array(),
|
|
|
- defectData:new Array(),
|
|
|
- malfunctionData:new Array(),
|
|
|
- accidentData:new Array(),
|
|
|
+ hiddenDangerData: new Array(),
|
|
|
+ defectData: new Array(),
|
|
|
+ malfunctionData: new Array(),
|
|
|
+ accidentData: new Array(),
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
@@ -254,7 +261,7 @@ export default {
|
|
|
return obj;
|
|
|
}
|
|
|
},
|
|
|
- refreshData(){
|
|
|
+ refreshData() {
|
|
|
var bd = BackgroundData.getInstance();
|
|
|
this.hiddenDangerNum = bd.HiddenProblems.length;
|
|
|
this.defectNum = bd.Defects.length;
|
|
@@ -265,21 +272,23 @@ export default {
|
|
|
this.defectData = bd.Defects;
|
|
|
this.malfunctionData = bd.Failure;
|
|
|
this.accidentData = bd.Accidents;
|
|
|
- if(this.accidentData.length<=0){
|
|
|
- this.accidentData=[{lastUpdateTime:"-",stationName:"-",alertText:"-"}];
|
|
|
+ if (this.accidentData.length <= 0) {
|
|
|
+ this.accidentData = [
|
|
|
+ { lastUpdateTime: "-", stationName: "-", alertText: "-" },
|
|
|
+ ];
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|
|
|
-/deep/ .el-table__body-wrapper::-webkit-scrollbar {
|
|
|
+:deep(.el-table__body-wrapper::-webkit-scrollbar) {
|
|
|
width: 8px;
|
|
|
background-color: black;
|
|
|
}
|
|
|
|
|
|
-/deep/ .el-table__body-wrapper::-webkit-scrollbar-thumb {
|
|
|
+:deep(.el-table__body-wrapper::-webkit-scrollbar-thumb) {
|
|
|
background-color: #292929;
|
|
|
border-radius: 6px;
|
|
|
}
|
|
@@ -330,6 +339,4 @@ span {
|
|
|
.status-label.accident {
|
|
|
color: #af3e3d;
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
</style>
|