DraughtFanList.vue 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. <template>
  2. <div class="draught-fan-list">
  3. <div class="btn-group-tabs">
  4. <!-- <BtnGroup2 :btnGroups="btnGroups" :rowIndex="0" :index="1" @select="select"></BtnGroup2> -->
  5. </div>
  6. <div class="df-table">
  7. <ComTable :data="data"></ComTable>
  8. </div>
  9. </div>
  10. </template>
  11. <script>
  12. import ComTable from "@com/coms/table/table.vue";
  13. import BtnGroup2 from "@com/coms/btn/btn-group-double.vue";
  14. export default {
  15. // 名称
  16. name: "DraughtFanList",
  17. // 使用组件
  18. components: {
  19. ComTable,
  20. BtnGroup2,
  21. },
  22. // 数据
  23. data () {
  24. return {
  25. btnGroups: [
  26. {
  27. icon: "fa fa-fire",
  28. btns: [
  29. {
  30. text: "某某风场",
  31. code: "mmfdc1",
  32. },
  33. {
  34. text: "某某风场",
  35. code: "mhsfc",
  36. },
  37. {
  38. text: "某某风场",
  39. code: "mmfdc2",
  40. },
  41. {
  42. text: "某某风场",
  43. code: "mmfdc3",
  44. },
  45. {
  46. text: "某某风场",
  47. code: "mmfdc4",
  48. },
  49. ],
  50. },
  51. {
  52. icon: "fa fa-fire-extinguisher",
  53. btns: [
  54. {
  55. text: "某某风场",
  56. code: "mmgf1",
  57. },
  58. {
  59. text: "某某风场",
  60. code: "mmgf2",
  61. },
  62. {
  63. text: "某某风场",
  64. code: "mmgf3",
  65. },
  66. {
  67. text: "某某风场",
  68. code: "mmgf4",
  69. },
  70. ],
  71. },
  72. ],
  73. data: {
  74. column: [
  75. {
  76. name: "风机名称",
  77. field: "code",
  78. is_num: false,
  79. is_light: false,
  80. },
  81. {
  82. name: "冷却风温度",
  83. field: "FDJLQFWD",
  84. is_num: true,
  85. is_light: false,
  86. },
  87. {
  88. name: "有功功率",
  89. field: "FJGL",
  90. is_num: true,
  91. is_light: false,
  92. },
  93. {
  94. name: "液压油温度",
  95. field: "YYYW",
  96. is_num: true,
  97. is_light: false,
  98. },
  99. {
  100. name: "Pcspp温度",
  101. field: "PCS_WD",
  102. is_num: true,
  103. is_light: false,
  104. },
  105. {
  106. name: "U1绕组温度",
  107. field: "U1YZWD",
  108. is_num: true,
  109. is_light: false,
  110. },
  111. {
  112. name: "U2绕组温度",
  113. field: "U2YZWD",
  114. is_num: true,
  115. is_light: false,
  116. },
  117. {
  118. name: "V1绕组温度",
  119. field: "V1YZWD",
  120. is_num: true,
  121. is_light: false,
  122. },
  123. {
  124. name: "V2绕组温度",
  125. field: "V2YZWD",
  126. is_num: true,
  127. is_light: false,
  128. },
  129. {
  130. name: "W1绕组温度",
  131. field: "W1YZWD",
  132. is_num: true,
  133. is_light: false,
  134. },
  135. {
  136. name: "W2绕组温度",
  137. field: "W2YZWD",
  138. is_num: true,
  139. is_light: false,
  140. },
  141. {
  142. name: "轴承A温度",
  143. field: "FDJZCAWD",
  144. is_num: true,
  145. is_light: false,
  146. },
  147. {
  148. name: "轴承B温度",
  149. field: "FDJZCBWD",
  150. is_num: true,
  151. is_light: false,
  152. },
  153. {
  154. name: "齿轮箱温度",
  155. field: "CLXWD",
  156. is_num: true,
  157. is_light: false,
  158. },
  159. {
  160. name: "齿轮箱轴1温度",
  161. field: "CLXSRZ1WD",
  162. is_num: true,
  163. is_light: false,
  164. },
  165. {
  166. name: "齿轮箱轴2温度",
  167. field: "CLXSRZ2WD",
  168. is_num: true,
  169. is_light: false,
  170. },
  171. {
  172. name: "机舱温度",
  173. field: "JCWD",
  174. is_num: true,
  175. is_light: false,
  176. },
  177. {
  178. name: "滑环温度",
  179. field: "FDJHHWD",
  180. is_num: true,
  181. is_light: false,
  182. },
  183. {
  184. name: "环境温度",
  185. field: "JCWWD",
  186. is_num: true,
  187. is_light: false,
  188. },
  189. ],
  190. data: [],
  191. },
  192. };
  193. },
  194. // 函数
  195. methods: {
  196. // 请求服务
  197. requestData (showLoading) {
  198. let that = this;
  199. that.API.requestData({
  200. showLoading,
  201. method: "POST",
  202. subUrl: "monitorwt/findWtInfoList",
  203. data: {
  204. wpId: "MHS_FDC"
  205. },
  206. success (res) {
  207. res.data.forEach(ele => {
  208. for (let key in ele) {
  209. if (key !== "code" && key !== "lnid" && key !== "model" && key !== "pjid" && key !== "wpid") {
  210. ele[key] = ele[key] || 0;
  211. }
  212. }
  213. });
  214. that.data.data = res.data;
  215. },
  216. });
  217. },
  218. },
  219. created () {
  220. let that = this;
  221. that.$nextTick(() => {
  222. that.requestData(false);
  223. that.timmer = setInterval(() => {
  224. that.requestData(false);
  225. }, that.$store.state.websocketTimeSec);
  226. });
  227. },
  228. mounted () {
  229. },
  230. unmounted () {
  231. clearInterval(this.timmer);
  232. this.timmer = null;
  233. },
  234. }
  235. </script>
  236. <style lang="less" scoped>
  237. .draught-fan-list {
  238. width: 100%;
  239. height: 100%;
  240. display: flex;
  241. flex-direction: column;
  242. .btn-group-tabs {
  243. display: flex;
  244. flex-direction: row;
  245. .photovoltaic {
  246. margin-left: 1.481vh;
  247. }
  248. }
  249. .df-table {
  250. border: 0.093vh solid fade(@darkgray, 50%);
  251. position: relative;
  252. overflow: auto;
  253. flex-grow: 1;
  254. margin-top: 1.481vh;
  255. &:before {
  256. content: '';
  257. width: 0.37vh;
  258. height: 0.37vh;
  259. background: @write;
  260. position: absolute;
  261. left: 0.278vh;
  262. top: 0.278vh;
  263. }
  264. tbody {
  265. height: calc(100vh - 166px);
  266. }
  267. }
  268. }
  269. </style>