center-area-warn.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. <template>
  2. <div class="center-area-green">
  3. <div class="container">
  4. <div class="risk-score">
  5. <div class="vent-icon"></div>
  6. <div class="item-content">
  7. <div class="ite-label">瓦斯监测预警</div>
  8. <div class="ite-val">低风险</div>
  9. </div>
  10. <div class="item-content">
  11. <div class="ite-label">矿井瓦斯等级鉴定</div>
  12. <div class="ite-val">低瓦斯</div>
  13. </div>
  14. </div>
  15. <div class="dust-warn">
  16. <div class="ite-content">
  17. <div class="ite-label">粉尘监测预警</div>
  18. <div class="ite-val">低风险</div>
  19. </div>
  20. </div>
  21. <div class="water-warn">
  22. <div class="ite-content">
  23. <div class="ite-label">水灾</div>
  24. <div class="ite-val">低风险</div>
  25. </div>
  26. </div>
  27. <div class="vent-warn">
  28. <div class="ite-content">
  29. <div class="ite-label">通风监测预警</div>
  30. <div class="ite-val">低风险</div>
  31. </div>
  32. </div>
  33. <div class="device-warn">
  34. <div class="device-icon"></div>
  35. <div class="ite-content">
  36. <div class="ite-label">设备监测预警</div>
  37. <div class="ite-val">低风险</div>
  38. </div>
  39. </div>
  40. <div class="fire-warn">
  41. <div class="fire-icon"></div>
  42. <div class="ite-content">
  43. <div class="ite-label">火灾监测预警</div>
  44. <div class="ite-val">低风险</div>
  45. </div>
  46. </div>
  47. <div class="db-warn">
  48. <div class="ite-content">
  49. <div class="ite-label">顶板</div>
  50. <div class="ite-val">低风险</div>
  51. </div>
  52. </div>
  53. <div class="gas-warn">
  54. <div class="ite-content1">
  55. <div class="item-label">风险得分</div>
  56. <div class="item-val">1.45</div>
  57. </div>
  58. </div>
  59. </div>
  60. </div>
  61. </template>
  62. <script lang="ts" setup>
  63. import { ref } from 'vue';
  64. </script>
  65. <style lang="less" scoped>
  66. .center-area-green {
  67. height: 100%;
  68. .container {
  69. position: relative;
  70. width: 60%;
  71. height: 70%;
  72. margin-top: 16%;
  73. margin-left: 20%;
  74. background: url(/src/assets/images/home-warn/6-1.png) no-repeat center;
  75. background-size: 100% 100%;
  76. }
  77. .risk-score {
  78. display: flex;
  79. position: absolute;
  80. flex-direction: row;
  81. justify-content: space-around;
  82. left: 45%;
  83. top: -46px;
  84. transform: translate(-44%, 0);
  85. width: 299px;
  86. height: 60px;
  87. font-size: 13px;
  88. color: #fff;
  89. background: url(/src/assets/images/home-warn/6-2.png) no-repeat;
  90. background-size: 100% 100%;
  91. .item-content {
  92. margin-left: 30px;
  93. }
  94. }
  95. .dust-warn {
  96. position: absolute;
  97. right: -26%;
  98. top: 197px;
  99. width: 217px;
  100. height: 64px;
  101. color: #fff;
  102. background: url(/src/assets/images/home-warn/6-3.png) no-repeat;
  103. background-size: 100% 100%;
  104. }
  105. .water-warn {
  106. position: absolute;
  107. right: -19%;
  108. bottom: 70px;
  109. width: 217px;
  110. height: 64px;
  111. color: #fff;
  112. background: url(/src/assets/images/home-warn/6-7.png) no-repeat;
  113. background-size: 100% 100%;
  114. }
  115. .db-warn {
  116. position: absolute;
  117. left: -20%;
  118. bottom: 70px;
  119. width: 217px;
  120. height: 64px;
  121. color: #fff;
  122. background: url(/src/assets/images/home-warn/6-8.png) no-repeat;
  123. background-size: 100% 100%;
  124. }
  125. .vent-warn {
  126. position: absolute;
  127. left: -20%;
  128. top: 64px;
  129. width: 207px;
  130. height: 64px;
  131. color: #fff;
  132. background: url(/src/assets/images/home-warn/6-5.png) no-repeat;
  133. background-size: 100% 100%;
  134. }
  135. .device-warn {
  136. position: absolute;
  137. right: -21%;
  138. top: 64px;
  139. width: 217px;
  140. height: 64px;
  141. color: #fff;
  142. background: url(/src/assets/images/home-warn/6-6.png) no-repeat;
  143. background-size: 100% 100%;
  144. }
  145. .fire-warn {
  146. position: absolute;
  147. left: -7%;
  148. top: 197px;
  149. transform: translate(-50%, 0);
  150. width: 217px;
  151. height: 64px;
  152. color: #fff;
  153. background: url(/src/assets/images/home-warn/6-4.png) no-repeat;
  154. background-size: 100% 100%;
  155. }
  156. .gas-warn {
  157. position: absolute;
  158. left: 51%;
  159. top: 65%;
  160. transform: translate(-50%, 0);
  161. width: 182px;
  162. height: 80px;
  163. text-align: center;
  164. line-height: 80px;
  165. }
  166. .item-content {
  167. position: relative;
  168. display: flex;
  169. flex-direction: column;
  170. margin-left: 58px;
  171. line-height: 32px;
  172. }
  173. .ite-content {
  174. position: absolute;
  175. display: flex;
  176. flex-direction: column;
  177. margin-left: 100px;
  178. line-height: 33px;
  179. }
  180. .ite-val {
  181. font-size: 12px;
  182. font-family: 'douyuFont';
  183. color: #bcf6fc !important;
  184. }
  185. .ite-content1 {
  186. width: 100%;
  187. position: absolute;
  188. display: flex;
  189. flex-direction: row;
  190. justify-content: space-between;
  191. }
  192. .item-val {
  193. font-size: 22px;
  194. font-family: 'douyuFont';
  195. color: #b9f3ff !important;
  196. font-weight: bold;
  197. line-height: 88px;
  198. }
  199. .item-label {
  200. font-weight: bold;
  201. font-size: 22px;
  202. color: #fafafb;
  203. }
  204. }
  205. </style>