WindturbineDetailPages.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <template>
  2. <el-dialog
  3. title="风机详情"
  4. width="80%"
  5. top="11vh"
  6. @opened="opened()"
  7. @closed="closed()"
  8. >
  9. <div style="background-color: black">
  10. <!-- <div class="titeldiv">
  11. <div class="chunkdiv" width="15%">
  12. <img src="../../../assets/img/WindturbineDetailPages/pic_01.png"/>
  13. <div>MA B401</div>
  14. </div>
  15. <div class="chunkdiv" width="15%">
  16. <div>所属线路&emsp;</div>
  17. <div>某某某1线</div>
  18. </div>
  19. <div class="chunkdiv" width="15%">
  20. <div>机型&emsp;</div>
  21. <div>GW1000</div>
  22. </div>
  23. <div class="chunkdiv" width="15%">
  24. <div>告警时间:</div>
  25. <div>2021年5月10日&emsp;12:23:31</div>
  26. </div>
  27. <div class="chunkdiv" width="15%">
  28. <div>告警内容:</div>
  29. <div>通讯中断</div>
  30. </div> -->
  31. <table width="99.8%">
  32. <tr>
  33. <td>
  34. <div class="chunkdiv">
  35. <img
  36. src="../../../assets/img/WindturbineDetailPages/pic_01.png"
  37. />
  38. <div>{{ windturbineId }}</div>
  39. </div>
  40. </td>
  41. <td>
  42. <div class="chunkdiv">
  43. <div>所属线路&emsp;</div>
  44. <div>某某某1线</div>
  45. </div>
  46. </td>
  47. <td>
  48. <div class="chunkdiv">
  49. <div>机型&emsp;</div>
  50. <div>GW1000</div>
  51. </div>
  52. </td>
  53. <td>
  54. <div class="chunkdiv">
  55. <div>告警时间:</div>
  56. <div>2021年5月10日&ensp;12:23:31</div>
  57. </div>
  58. </td>
  59. <td>
  60. <div class="chunkdiv">
  61. <div>告警内容:</div>
  62. <div>通讯中断</div>
  63. </div>
  64. </td>
  65. </tr>
  66. </table>
  67. <el-tabs type="border-card" tab-position="bottom" stretch="true">
  68. <el-tab-pane label="基本信息">
  69. <BasicInformationDetail></BasicInformationDetail>
  70. </el-tab-pane>
  71. <el-tab-pane label="机舱信息">
  72. <BasicInformationDetail></BasicInformationDetail>
  73. </el-tab-pane>
  74. <el-tab-pane label="故障信息">
  75. <BasicInformationDetail></BasicInformationDetail>
  76. </el-tab-pane>
  77. <el-tab-pane label="齿轮箱">
  78. <BasicInformationDetail></BasicInformationDetail>
  79. </el-tab-pane>
  80. <el-tab-pane label="变桨">
  81. <BasicInformationDetail></BasicInformationDetail>
  82. </el-tab-pane>
  83. <el-tab-pane label="偏航">
  84. <YawDetail></YawDetail>
  85. </el-tab-pane>
  86. <el-tab-pane label="液压">
  87. <BasicInformationDetail></BasicInformationDetail>
  88. </el-tab-pane>
  89. <el-tab-pane label="发电机">
  90. <BasicInformationDetail></BasicInformationDetail>
  91. </el-tab-pane>
  92. </el-tabs>
  93. </div>
  94. </el-dialog>
  95. </template>
  96. <script>
  97. import YawDetail from "./YawDetail.vue";
  98. import BasicInformationDetail from "./BasicInformationDetail.vue";
  99. import BackgroundData from "../../../assets/script/BackgroundData";
  100. export default {
  101. components: {
  102. YawDetail,
  103. BasicInformationDetail,
  104. },
  105. props: {
  106. windturbineId: String,
  107. stationId: String,
  108. },
  109. methods: {
  110. opened() {
  111. this.refreshData();
  112. this.refreshTimer=setInterval(this.refreshData,3000);
  113. },
  114. closed() {
  115. clearInterval(this.refreshTimer);
  116. },
  117. refreshData(){
  118. var bg = BackgroundData.getInstance();
  119. var data = bg.getWinturbineBaseData(this.windturbineId,this.stationId);
  120. console.log(data);
  121. }
  122. },
  123. };
  124. </script>
  125. <style scoped>
  126. /* .titeldiv{
  127. display: flex;
  128. justify-content: space-around;
  129. } */
  130. .chunkdiv {
  131. display: flex;
  132. justify-content: center;
  133. background-color: #363636;
  134. margin: 1px;
  135. padding: 2px;
  136. color: rgb(220, 220, 220);
  137. }
  138. table {
  139. margin-left: 2px;
  140. margin-right: 2px;
  141. }
  142. td {
  143. width: 20%;
  144. }
  145. el-tabs {
  146. background-color: black;
  147. }
  148. </style>