DraughtFanList.vue 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  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. icon: "fa fa-fire",
  27. btns: [{
  28. text: "某某风场",
  29. code: "mmfdc1",
  30. }, {
  31. text: "某某风场",
  32. code: "mhsfc",
  33. }, {
  34. text: "某某风场",
  35. code: "mmfdc2",
  36. }, {
  37. text: "某某风场",
  38. code: "mmfdc3",
  39. }, {
  40. text: "某某风场",
  41. code: "mmfdc4",
  42. }]
  43. },
  44. {
  45. icon: "fa fa-fire-extinguisher",
  46. btns: [{
  47. text: "某某风场",
  48. code: "mmgf1",
  49. }, {
  50. text: "某某风场",
  51. code: "mmgf2",
  52. }, {
  53. text: "某某风场",
  54. code: "mmgf3",
  55. }, {
  56. text: "某某风场",
  57. code: "mmgf4",
  58. }]
  59. }
  60. ],
  61. data: {
  62. column: [{
  63. name: "风机名称",
  64. field: "name",
  65. is_num: false,
  66. is_light: false
  67. },{
  68. name: "冷却风温度",
  69. field: "lqf",
  70. is_num: true,
  71. is_light: false
  72. },{
  73. name: "有功功率",
  74. field: "yggl",
  75. is_num: true,
  76. is_light: false
  77. },{
  78. name: "液压油温度",
  79. field: "yyy",
  80. is_num: true,
  81. is_light: false
  82. },{
  83. name: "Pcspp温度",
  84. field: "pcspp",
  85. is_num: true,
  86. is_light: false
  87. },{
  88. name: "U1绕组温度",
  89. field: "u1",
  90. is_num: true,
  91. is_light: false
  92. },{
  93. name: "U2绕组温度",
  94. field: "u2",
  95. is_num: true,
  96. is_light: true
  97. },{
  98. name: "V1绕组温度",
  99. field: "v1",
  100. is_num: true,
  101. is_light: false
  102. },{
  103. name: "V2绕组温度",
  104. field: "v2",
  105. is_num: true,
  106. is_light: false
  107. },{
  108. name: "W1绕组温度",
  109. field: "w1",
  110. is_num: true,
  111. is_light: false
  112. },{
  113. name: "W2绕组温度",
  114. field: "w2",
  115. is_num: true,
  116. is_light: false
  117. },{
  118. name: "轴承A温度",
  119. field: "zca",
  120. is_num: true,
  121. is_light: false
  122. },{
  123. name: "轴承B温度",
  124. field: "zcb",
  125. is_num: true,
  126. is_light: false
  127. },{
  128. name: "齿轮箱温度",
  129. field: "clx",
  130. is_num: true,
  131. is_light: false
  132. },{
  133. name: "齿轮箱轴1温度",
  134. field: "clx1",
  135. is_num: true,
  136. is_light: false
  137. },{
  138. name: "齿轮箱轴2温度",
  139. field: "clx2",
  140. is_num: true,
  141. is_light: false
  142. },{
  143. name: "机舱温度",
  144. field: "jc",
  145. is_num: true,
  146. is_light: false
  147. },{
  148. name: "滑环温度",
  149. field: "hh",
  150. is_num: true,
  151. is_light: false
  152. },{
  153. name: "环境温度",
  154. field: "hj",
  155. is_num: true,
  156. is_light: false
  157. }],
  158. data: [{
  159. name: "1E01",
  160. lqf: 15.78,
  161. yggl: 15.79,
  162. yyy: 15.79,
  163. pcspp: 15.79,
  164. u1: 15.79,
  165. u2: 15.79,
  166. v1: 15.79,
  167. v2: 15.79,
  168. w1: 15.79,
  169. w2: 15.79,
  170. zca: 15.79,
  171. zcb: 15.79,
  172. clx: 15.79,
  173. clx1: 15.79,
  174. clx2: 15.79,
  175. jc: 15.79,
  176. hh: 15.79,
  177. hj: 15.79,
  178. is_light: false
  179. }]
  180. }
  181. }
  182. },
  183. // 函数
  184. methods: {},
  185. // 生命周期钩子
  186. beforeCreate() {
  187. // 创建前
  188. },
  189. created() {
  190. // 创建后
  191. for (let i = 1; i < 50; i++) {
  192. this.data.data.push(JSON.parse(JSON.stringify(this.data.data[0])));
  193. if (i == 16) {
  194. this.data.data[i].is_light = true;
  195. }
  196. }
  197. },
  198. beforeMount() {
  199. // 渲染前
  200. },
  201. mounted() {
  202. // 渲染后
  203. },
  204. beforeUpdate() {
  205. // 数据更新前
  206. },
  207. updated() {
  208. // 数据更新后
  209. },
  210. }
  211. </script>
  212. <style lang="less" scoped>
  213. .draught-fan-list {
  214. width: 100%;
  215. height: 100%;
  216. display: flex;
  217. flex-direction: column;
  218. .btn-group-tabs {
  219. display: flex;
  220. flex-direction: row;
  221. .photovoltaic {
  222. margin-left: 1.481vh;
  223. }
  224. }
  225. .df-table {
  226. border: 0.093vh solid fade(@darkgray, 50%);
  227. position: relative;
  228. overflow: auto;
  229. flex-grow: 1;
  230. margin-top: 1.481vh;
  231. &:before {
  232. content: "";
  233. width: 0.37vh;
  234. height: 0.37vh;
  235. background: @write;
  236. position: absolute;
  237. left: 0.278vh;
  238. top: 0.278vh;
  239. }
  240. }
  241. }
  242. </style>