configImg.vue 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. <template>
  2. <div class="main">
  3. <el-container>
  4. <el-header
  5. ><div>
  6. <img src="@/assets/img/compressed/back.png" id="imgSwitch" />
  7. </div>
  8. <div id="fan">
  9. <div class="fan1">
  10. <ul
  11. :class="{ blades: tableData1.isStart, bld: !tableData1.isStart }"
  12. >
  13. <li
  14. :class="[
  15. 'b1',
  16. !tableData1.isAlarm
  17. ? !tableData1.isWarning
  18. ? 'green'
  19. : 'red'
  20. : 'red',
  21. ]"
  22. ></li>
  23. <li
  24. :class="[
  25. 'b2',
  26. !tableData1.isAlarm
  27. ? !tableData1.isWarning
  28. ? 'green'
  29. : 'red'
  30. : 'red',
  31. ]"
  32. ></li>
  33. <li
  34. :class="[
  35. 'b3',
  36. !tableData1.isAlarm
  37. ? !tableData1.isWarning
  38. ? 'green'
  39. : 'red'
  40. : 'red',
  41. ]"
  42. ></li>
  43. </ul>
  44. </div>
  45. <div class="fan2">
  46. <ul
  47. :class="{ blades: tableData2.isStart, bld: !tableData2.isStart }"
  48. >
  49. <li
  50. :class="[
  51. 'b1',
  52. !tableData2.isAlarm
  53. ? !tableData2.isWarning
  54. ? 'green'
  55. : 'red'
  56. : 'red',
  57. ]"
  58. ></li>
  59. <li
  60. :class="[
  61. 'b2',
  62. !tableData2.isAlarm
  63. ? !tableData2.isWarning
  64. ? 'green'
  65. : 'red'
  66. : 'red',
  67. ]"
  68. ></li>
  69. <li
  70. :class="[
  71. 'b3',
  72. !tableData2.isAlarm
  73. ? !tableData2.isWarning
  74. ? 'green'
  75. : 'red'
  76. : 'red',
  77. ]"
  78. ></li>
  79. </ul>
  80. </div>
  81. <div class="fan3">
  82. <ul
  83. :class="{ blades: tableData3.isStart, bld: !tableData3.isStart }"
  84. >
  85. <li
  86. :class="[
  87. 'b1',
  88. !tableData3.isAlarm
  89. ? !tableData3.isWarning
  90. ? 'green'
  91. : 'red'
  92. : 'red',
  93. ]"
  94. ></li>
  95. <li
  96. :class="[
  97. 'b2',
  98. !tableData3.isAlarm
  99. ? !tableData3.isWarning
  100. ? 'green'
  101. : 'red'
  102. : 'red',
  103. ]"
  104. ></li>
  105. <li
  106. :class="[
  107. 'b3',
  108. !tableData3.isAlarm
  109. ? !tableData3.isWarning
  110. ? 'green'
  111. : 'red'
  112. : 'red',
  113. ]"
  114. ></li>
  115. </ul>
  116. </div>
  117. </div>
  118. </el-header>
  119. <el-main>
  120. <el-row style="margin-top: 80px" :gutter="20">
  121. <el-col :span="8"
  122. ><div class="center">
  123. <data-table
  124. title="压风机1号"
  125. :tableData="tableData1"
  126. ></data-table></div
  127. ></el-col>
  128. <el-col :span="8"
  129. ><div class="center">
  130. <data-table
  131. title="压风机2号"
  132. :tableData="tableData2"
  133. ></data-table></div
  134. ></el-col>
  135. <el-col :span="8"
  136. ><div class="center">
  137. <data-table
  138. title="压风机3号"
  139. :tableData="tableData3"
  140. ></data-table></div
  141. ></el-col>
  142. </el-row>
  143. </el-main>
  144. </el-container>
  145. </div>
  146. </template>
  147. <script>
  148. import dataTable from "@/views/compressed/configImg/dataTable";
  149. export default {
  150. data() {
  151. return {
  152. tableData1: {
  153. isStart: false,
  154. isAlarm: false,
  155. isWarning: false,
  156. isLoading: false,
  157. runningTime: 22716,
  158. loadingTime: 23760,
  159. },
  160. tableData2: {
  161. isStart: true,
  162. isAlarm: true,
  163. isWarning: true,
  164. isLoading: false,
  165. runningTime: 26716,
  166. loadingTime: 20760,
  167. },
  168. tableData3: {
  169. isStart: true,
  170. isAlarm: false,
  171. isWarning: true,
  172. isLoading: false,
  173. runningTime: 18716,
  174. loadingTime: 17760,
  175. },
  176. };
  177. },
  178. components: {
  179. dataTable,
  180. },
  181. };
  182. </script>
  183. <style scoped>
  184. .main {
  185. width: 100%;
  186. height: 850px;
  187. position: relative;
  188. background-image: linear-gradient(
  189. to right,
  190. #06133c 0%,
  191. #011669 5045 #06133c 100%
  192. );
  193. }
  194. .center {
  195. width: 100%;
  196. height: 500px;
  197. margin-top: 300px;
  198. background: url("../../../assets/img/tunneling/dataBg.png") no-repeat;
  199. background-size: 100%;
  200. }
  201. #imgSwitch {
  202. width: 100%;
  203. height: 450px;
  204. /* padding-bottom: 100px; */
  205. /* left: 50px; */
  206. /* margin-left: 30px; */
  207. }
  208. .header {
  209. width: 100px;
  210. height: 100px;
  211. margin-top: -100px;
  212. }
  213. li {
  214. list-style: none;
  215. }
  216. .fan1 {
  217. margin-left: 0px;
  218. position: absolute;
  219. }
  220. .fan2 {
  221. margin-left: 450px;
  222. margin-top: 0px;
  223. position: absolute;
  224. }
  225. .fan3 {
  226. margin-left: 920px;
  227. margin-top: 0px;
  228. position: absolute;
  229. }
  230. #fan {
  231. position: absolute;
  232. width: 16em;
  233. height: 30em;
  234. left: 14em;
  235. top: 22em;
  236. }
  237. .blades {
  238. height: 110px;
  239. width: 110px;
  240. /* position: absolute; */
  241. animation: blades 1s infinite linear;
  242. }
  243. .bld {
  244. height: 110px;
  245. width: 110px;
  246. /* position: absolute; */
  247. }
  248. .blades li {
  249. height: 4em;
  250. width: 4em;
  251. position: absolute;
  252. border-radius: 0 100% 0%;
  253. box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  254. }
  255. .bld li {
  256. height: 4em;
  257. width: 4em;
  258. position: absolute;
  259. border-radius: 0 100% 0%;
  260. box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  261. }
  262. /*扇叶*/
  263. .b1 {
  264. top: 5em;
  265. left: 1.2em;
  266. transform: rotate(240deg);
  267. }
  268. .b2 {
  269. top: 0em;
  270. left: 0em;
  271. transform: rotate(0deg);
  272. }
  273. .b3 {
  274. top: 1.2em;
  275. left: 5em;
  276. transform: rotate(120deg);
  277. }
  278. @keyframes blades {
  279. from {
  280. transform: rotate(0deg);
  281. }
  282. to {
  283. transform: rotate(600deg);
  284. }
  285. }
  286. .red {
  287. background: #f90005;
  288. }
  289. .green {
  290. background: #009966;
  291. }
  292. </style>