|
@@ -9,27 +9,6 @@
|
|
|
<div style="margin-top:-10px;">风机详情</div>
|
|
|
</template>
|
|
|
<div style="background-color: black;margin-top:-30px;margin-left:-10px;margin-right:-10px;margin-bottom:-30px;">
|
|
|
- <!-- <div class="titeldiv">
|
|
|
- <div class="chunkdiv" width="15%">
|
|
|
- <img src="../../../assets/img/WindturbineDetailPages/pic_01.png"/>
|
|
|
- <div>MA B401</div>
|
|
|
- </div>
|
|
|
- <div class="chunkdiv" width="15%">
|
|
|
- <div>所属线路 </div>
|
|
|
- <div>某某某1线</div>
|
|
|
- </div>
|
|
|
- <div class="chunkdiv" width="15%">
|
|
|
- <div>机型 </div>
|
|
|
- <div>GW1000</div>
|
|
|
- </div>
|
|
|
- <div class="chunkdiv" width="15%">
|
|
|
- <div>告警时间:</div>
|
|
|
- <div>2021年5月10日 12:23:31</div>
|
|
|
- </div>
|
|
|
- <div class="chunkdiv" width="15%">
|
|
|
- <div>告警内容:</div>
|
|
|
- <div>通讯中断</div>
|
|
|
- </div> -->
|
|
|
<table width="99.8%">
|
|
|
<tr>
|
|
|
<td>
|
|
@@ -75,37 +54,37 @@
|
|
|
</div>
|
|
|
<el-tabs type="border-card" tab-position="bottom" stretch="true">
|
|
|
<el-tab-pane label="基本信息">
|
|
|
- <BasicInformationDetail ref="BasicInfo"></BasicInformationDetail>
|
|
|
+ <BasicInformationDetail ref="BasicInfo" :alarms="alarms"></BasicInformationDetail>
|
|
|
</el-tab-pane>
|
|
|
- <!-- <el-tab-pane label="机舱信息">
|
|
|
+ <el-tab-pane label="机舱信息" disabled>
|
|
|
<BasicInformationDetail></BasicInformationDetail>
|
|
|
</el-tab-pane>
|
|
|
- <el-tab-pane label="故障信息">
|
|
|
+ <el-tab-pane label="故障信息" disabled>
|
|
|
<BasicInformationDetail></BasicInformationDetail>
|
|
|
</el-tab-pane>
|
|
|
- <el-tab-pane label="齿轮箱" >
|
|
|
+ <el-tab-pane label="齿轮箱" disabled>
|
|
|
<BasicInformationDetail></BasicInformationDetail>
|
|
|
</el-tab-pane>
|
|
|
- <el-tab-pane label="变桨">
|
|
|
+ <el-tab-pane label="变桨" disabled>
|
|
|
<BasicInformationDetail></BasicInformationDetail>
|
|
|
</el-tab-pane>
|
|
|
- <el-tab-pane label="偏航">
|
|
|
+ <el-tab-pane label="偏航" disabled>
|
|
|
<YawDetail></YawDetail>
|
|
|
</el-tab-pane>
|
|
|
- <el-tab-pane label="液压">
|
|
|
+ <el-tab-pane label="液压" disabled>
|
|
|
<BasicInformationDetail></BasicInformationDetail>
|
|
|
</el-tab-pane>
|
|
|
- <el-tab-pane label="发电机">
|
|
|
+ <el-tab-pane label="发电机" disabled>
|
|
|
<BasicInformationDetail></BasicInformationDetail>
|
|
|
- </el-tab-pane> -->
|
|
|
+ </el-tab-pane>
|
|
|
</el-tabs>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-/* import YawDetail from "./YawDetail.vue";
|
|
|
- */import BasicInformationDetail from "./BasicInformationDetail.vue";
|
|
|
+import YawDetail from "./YawDetail.vue";
|
|
|
+import BasicInformationDetail from "./BasicInformationDetail.vue";
|
|
|
import UniformCodes from "../../../assets/script/UniformCodes";
|
|
|
import {config} from '../../../config';
|
|
|
import axios from 'axios';
|
|
@@ -113,7 +92,7 @@ import BackgroundData from "../../../assets/script/BackgroundData";
|
|
|
import Worning from "./warning.vue"
|
|
|
export default {
|
|
|
components: {
|
|
|
- /* YawDetail, */
|
|
|
+ YawDetail,
|
|
|
BasicInformationDetail,
|
|
|
Worning,
|
|
|
},
|
|
@@ -126,6 +105,7 @@ export default {
|
|
|
line:"",
|
|
|
alarmTime:"",
|
|
|
alarmContent:"",
|
|
|
+ alarms:{},
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -155,12 +135,13 @@ export default {
|
|
|
initData(){
|
|
|
axios.get(`http://${config.calcUrl}/windturbine/line/${this.windturbine.windturbineId}`)
|
|
|
.then(msg=>this.line=msg.data);
|
|
|
- axios.get(`http://${config.calcUrl}/alarm/real-time-alarm?objectId=${this.windturbine.windturbineId}&pageIndex=1&pageSize=1`)
|
|
|
+ axios.get(`http://${config.calcUrl}/alarm/real-time-alarm?objectId=${this.windturbine.windturbineId}&pageIndex=1&pageSize=50`)
|
|
|
.then(msg=>{
|
|
|
var vs = msg.data;
|
|
|
if(vs.length<=0)return;
|
|
|
this.alarmTime = BackgroundData.getInstance().formatDate(vs[0].lastUpdateTime);
|
|
|
this.alarmContent = vs[0].alertText;
|
|
|
+ this.alarms = msg.data;
|
|
|
})
|
|
|
.catch(err=>{
|
|
|
console.log(err);
|