|
@@ -87,33 +87,25 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="records">
|
|
|
- <el-scrollbar style="height:99%;">
|
|
|
- <div class="tables">
|
|
|
- <el-table :data="recordData" class="table" style=" width:100%" height="22vh" :header-cell-style="{
|
|
|
- background: 'rgb(30,30,30)',
|
|
|
- color: 'rgb(220,220,220)',
|
|
|
- padding: '4px',
|
|
|
- fontSize: '14px',
|
|
|
- 'border-bottom': 'solid 1px rgba(77, 77, 77, 1)',
|
|
|
- }" :cell-style="{
|
|
|
- height: '40px',
|
|
|
- background: 'rgb(30,30,30)',
|
|
|
- color: 'rgb(220,220,220)',
|
|
|
- padding: '3px',
|
|
|
- fontSize: '12px',
|
|
|
- 'border-bottom': '1px solid #000000'
|
|
|
- }">
|
|
|
- <el-table-column prop="time" label="日期" width="120" align="center">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="controls" label="控制命令" width="120" align="center">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="result" label="操作结果" align="center">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="userName" label="操作人" width="120" align="center">
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
- </div>
|
|
|
- </el-scrollbar>
|
|
|
+ <div class="recordList">
|
|
|
+ <el-scrollbar class="recordsScorll">
|
|
|
+ <el-table stripe="true" border-color="#141414" :data="recordData" style="width: 100%" :header-cell-style="{
|
|
|
+ background: '#141414',
|
|
|
+ color: '#B3B3B3',
|
|
|
+ 'border-bottom':'solid 1px #242424',
|
|
|
+ 'text-align':'center'
|
|
|
+ }" :cell-style="{ background: '#141414', color: '#B3B3B3', 'border-bottom': 'solid 1px #242424','text-align':'center' }">
|
|
|
+ <el-table-column prop="time" label="日期" width="120" align="center">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="controls" label="控制命令" width="120" align="center">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="result" label="操作结果" align="center">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="userName" label="操作人" width="120" align="center">
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </el-scrollbar>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="showDate">
|
|
|
<div class="label1">
|
|
@@ -141,7 +133,7 @@
|
|
|
<el-row class="datas">
|
|
|
<el-col :span="12">
|
|
|
<div class="dataList">
|
|
|
- <div class="dataTitle">
|
|
|
+ <div class="dataTitles">
|
|
|
<div style="margin-left: 24px;">部件主要参数</div>
|
|
|
</div>
|
|
|
<div class="dataContent">
|
|
@@ -157,7 +149,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<div class="dataLists">
|
|
|
- <div class="dataTitle">
|
|
|
+ <div class="dataTitles">
|
|
|
<div style="margin-left: 24px;">报警记录</div>
|
|
|
</div>
|
|
|
<el-scrollbar class="scorll">
|
|
@@ -214,13 +206,8 @@
|
|
|
|
|
|
data() {
|
|
|
return {
|
|
|
- // warnList: [],
|
|
|
display: false,
|
|
|
BasicInfo: {},
|
|
|
- // temperatureInfo: new Array() /* 温度信息 */,
|
|
|
- // pitchInfo: new Array() /* 变桨信息 */,
|
|
|
- // generalInfo: new Array() /* 基本信息 */,
|
|
|
- // powerGridInfo: new Array() /* 电网信息 */,
|
|
|
restaurants: [],
|
|
|
lockValues: [],
|
|
|
windDetails: [],
|
|
@@ -294,10 +281,9 @@
|
|
|
this.healthInfo = msg.data.data;
|
|
|
}
|
|
|
|
|
|
- })
|
|
|
- .catch(err => {
|
|
|
- console.log(err);
|
|
|
- });
|
|
|
+ }).catch(err => {
|
|
|
+ console.log(err);
|
|
|
+ });
|
|
|
},
|
|
|
getDetial() {
|
|
|
api.getDetial(this.windturbine.windturbineId).then(msg => {
|
|
@@ -351,7 +337,7 @@
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- getWarning() {
|
|
|
+ async getWarning() {
|
|
|
let parts = ''
|
|
|
switch (this.showIndex) {
|
|
|
case 1:
|
|
@@ -370,7 +356,7 @@
|
|
|
parts = 'yy'
|
|
|
break;
|
|
|
}
|
|
|
- api.getWarning(this.windturbine.stationId, this.windturbine.windturbineId, parts).then(msg => {
|
|
|
+ await api.getWarning(this.windturbine.stationId, this.windturbine.windturbineId, parts).then(msg => {
|
|
|
if (msg.data.code === 200) {
|
|
|
msg.data.data && msg.data.data.forEach(item => {
|
|
|
item.time = dayjs(item.time).format('MM-DD HH:mm:ss')
|
|
@@ -378,32 +364,31 @@
|
|
|
this.warning = msg.data.data;
|
|
|
}
|
|
|
|
|
|
- })
|
|
|
- .catch(err => {
|
|
|
- console.log(err);
|
|
|
- });
|
|
|
- },
|
|
|
- chooseInfo(value) {
|
|
|
- this.showIndex = value
|
|
|
- switch (this.showIndex) {
|
|
|
- case 1:
|
|
|
- this.showData = this.BasicInfo.BasicInfo.filter(item => item.index === "part6")[0]?.param
|
|
|
- break;
|
|
|
- case 2:
|
|
|
- this.showData = this.BasicInfo.BasicInfo.filter(item => item.index === "part8")[0]?.param
|
|
|
- break;
|
|
|
- case 3:
|
|
|
- this.showData = this.BasicInfo.BasicInfo.filter(item => item.index === "part7")[0]?.param
|
|
|
- break;
|
|
|
- case 4:
|
|
|
- this.showData = this.BasicInfo.BasicInfo.filter(item => item.index === "part10")[0]?.param
|
|
|
- break;
|
|
|
- case 5:
|
|
|
- this.showData = this.BasicInfo.BasicInfo.filter(item => item.index === "part9")[0]?.param
|
|
|
- break;
|
|
|
- }
|
|
|
- this.getWarning()
|
|
|
+ }).catch(err => {
|
|
|
+ console.log(err);
|
|
|
+ });
|
|
|
},
|
|
|
+ // chooseInfo(value) {
|
|
|
+ // this.showIndex = value
|
|
|
+ // switch (this.showIndex) {
|
|
|
+ // case 1:
|
|
|
+ // this.showData = this.BasicInfo.BasicInfo.filter(item => item.index === "part6")[0]?.param
|
|
|
+ // break;
|
|
|
+ // case 2:
|
|
|
+ // this.showData = this.BasicInfo.BasicInfo.filter(item => item.index === "part8")[0]?.param
|
|
|
+ // break;
|
|
|
+ // case 3:
|
|
|
+ // this.showData = this.BasicInfo.BasicInfo.filter(item => item.index === "part7")[0]?.param
|
|
|
+ // break;
|
|
|
+ // case 4:
|
|
|
+ // this.showData = this.BasicInfo.BasicInfo.filter(item => item.index === "part10")[0]?.param
|
|
|
+ // break;
|
|
|
+ // case 5:
|
|
|
+ // this.showData = this.BasicInfo.BasicInfo.filter(item => item.index === "part9")[0]?.param
|
|
|
+ // break;
|
|
|
+ // }
|
|
|
+ // this.getWarning()
|
|
|
+ // },
|
|
|
listedChange() {
|
|
|
switch (this.selectValue) {
|
|
|
case '8':
|
|
@@ -453,9 +438,7 @@
|
|
|
refreshData() {
|
|
|
let bg = BackgroundData.getInstance();
|
|
|
let mark = BackgroundData.getInstance().Marks;
|
|
|
- console.log(mark);
|
|
|
bg.initWinturbineBaseData(this.BasicInfo, this.onMessage);
|
|
|
-
|
|
|
},
|
|
|
|
|
|
/* 获得数据 */
|
|
@@ -504,25 +487,6 @@
|
|
|
// }
|
|
|
// });
|
|
|
// },
|
|
|
- querySearch(queryString, cb) {
|
|
|
- let restaurants = this.restaurants;
|
|
|
- let results = queryString
|
|
|
- ? restaurants.filter(this.createFilter(queryString))
|
|
|
- : restaurants;
|
|
|
- // 调用 callback 返回建议列表的数据
|
|
|
- cb(results);
|
|
|
- },
|
|
|
- createFilter(queryString) {
|
|
|
- return (restaurant) => {
|
|
|
- return (
|
|
|
- restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) ===
|
|
|
- 0
|
|
|
- );
|
|
|
- };
|
|
|
- },
|
|
|
- handleSelect(item) {
|
|
|
- console.log(item);
|
|
|
- },
|
|
|
selectSvg(index) {
|
|
|
this.showIndex = index;
|
|
|
// this.showData = this.BasicInfo.BasicInfo.filter(item => item.index === `part${this.showIndex+5}`)[0]?.param
|
|
@@ -630,7 +594,6 @@
|
|
|
},
|
|
|
/* 控制成功 */
|
|
|
controlSuccess(msg) {
|
|
|
- console.log(msg);
|
|
|
let mss = ''; // 信息
|
|
|
let iserror = false;// 是否有控制错误的风机
|
|
|
for (let v in msg.data) {
|
|
@@ -968,7 +931,7 @@
|
|
|
flex-direction: column;
|
|
|
}
|
|
|
|
|
|
- .dataTitle {
|
|
|
+ .dataTitles {
|
|
|
display: flex;
|
|
|
height: 37px;
|
|
|
width: 100%;
|
|
@@ -1021,7 +984,7 @@
|
|
|
}
|
|
|
|
|
|
.scorll {
|
|
|
- height: 212px;
|
|
|
+ height: 23vh;
|
|
|
}
|
|
|
|
|
|
.showDate {
|
|
@@ -1030,9 +993,12 @@
|
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
|
}
|
|
|
+
|
|
|
.el-table {
|
|
|
- background-color: #141414 !important;
|
|
|
- }
|
|
|
+ background-color: #141414 !important;
|
|
|
+ min-height: 22vh !important;
|
|
|
+ }
|
|
|
+
|
|
|
.el-table::before {
|
|
|
width: 0;
|
|
|
}
|
|
@@ -1078,9 +1044,14 @@
|
|
|
height: 16px;
|
|
|
margin-left: 10px;
|
|
|
}
|
|
|
- .records{
|
|
|
+
|
|
|
+ .recordList {
|
|
|
width: 98%;
|
|
|
height: 22vh;
|
|
|
margin-top: 16px;
|
|
|
}
|
|
|
+
|
|
|
+ .recordsScorll {
|
|
|
+ height: 22vh;
|
|
|
+ }
|
|
|
</style>
|