123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 |
- <template>
- <el-dialog
- title="风机详情"
- width="80%"
- top="11vh"
- @opened="opened()"
- @closed="closed()"
- >
- <div style="background-color: black">
- <!-- <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>
- <div class="chunkdiv">
- <img
- src="../../../assets/img/WindturbineDetailPages/pic_01.png"
- />
- <div>{{ windturbineId }}</div>
- </div>
- </td>
- <td>
- <div class="chunkdiv">
- <div>所属线路 </div>
- <div>某某某1线</div>
- </div>
- </td>
- <td>
- <div class="chunkdiv">
- <div>机型 </div>
- <div>GW1000</div>
- </div>
- </td>
- <td>
- <div class="chunkdiv">
- <div>告警时间:</div>
- <div>2021年5月10日 12:23:31</div>
- </div>
- </td>
- <td>
- <div class="chunkdiv">
- <div>告警内容:</div>
- <div>通讯中断</div>
- </div>
- </td>
- </tr>
- </table>
- <el-tabs type="border-card" tab-position="bottom" stretch="true">
- <el-tab-pane label="基本信息">
- <BasicInformationDetail></BasicInformationDetail>
- </el-tab-pane>
- <el-tab-pane label="机舱信息">
- <BasicInformationDetail></BasicInformationDetail>
- </el-tab-pane>
- <el-tab-pane label="故障信息">
- <BasicInformationDetail></BasicInformationDetail>
- </el-tab-pane>
- <el-tab-pane label="齿轮箱">
- <BasicInformationDetail></BasicInformationDetail>
- </el-tab-pane>
- <el-tab-pane label="变桨">
- <BasicInformationDetail></BasicInformationDetail>
- </el-tab-pane>
- <el-tab-pane label="偏航">
- <YawDetail></YawDetail>
- </el-tab-pane>
- <el-tab-pane label="液压">
- <BasicInformationDetail></BasicInformationDetail>
- </el-tab-pane>
- <el-tab-pane label="发电机">
- <BasicInformationDetail></BasicInformationDetail>
- </el-tab-pane>
- </el-tabs>
- </div>
- </el-dialog>
- </template>
- <script>
- import YawDetail from "./YawDetail.vue";
- import BasicInformationDetail from "./BasicInformationDetail.vue";
- import BackgroundData from "../../../assets/script/BackgroundData";
- export default {
- components: {
- YawDetail,
- BasicInformationDetail,
- },
- props: {
- windturbineId: String,
- stationId: String,
- },
- methods: {
- opened() {
- this.refreshData();
- this.refreshTimer=setInterval(this.refreshData,3000);
- },
- closed() {
- clearInterval(this.refreshTimer);
- },
- refreshData(){
- var bg = BackgroundData.getInstance();
- var data = bg.getWinturbineBaseData(this.windturbineId,this.stationId);
- console.log(data);
- }
- },
- };
- </script>
- <style scoped>
- /* .titeldiv{
- display: flex;
- justify-content: space-around;
- } */
- .chunkdiv {
- display: flex;
- justify-content: center;
- background-color: #363636;
- margin: 1px;
- padding: 2px;
- color: rgb(220, 220, 220);
- }
- table {
- margin-left: 2px;
- margin-right: 2px;
- }
- td {
- width: 20%;
- }
- el-tabs {
- background-color: black;
- }
- </style>
|