center-area-green.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. <template>
  2. <div class="center-area-green">
  3. <div class="container">
  4. <div class="risk-score">
  5. <div class="item-label">风险得分</div>
  6. <div class="item-val">1.45</div>
  7. </div>
  8. <div class="dust-warn">
  9. <div class="dust-icon"></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="vent-warn">
  16. <div class="vent-icon"></div>
  17. <div class="item-content">
  18. <div class="ite-label">通风监测预警</div>
  19. <div class="ite-val">低风险</div>
  20. </div>
  21. </div>
  22. <div class="gas-warn">
  23. <div class="gas-icon"></div>
  24. <div class="item-content1">
  25. <div class="ite-content">
  26. <div class="ite-label">瓦斯监测预警</div>
  27. <div class="ite-val">低风险</div>
  28. </div>
  29. <div class="ite-content">
  30. <div class="ite-label">矿井瓦斯等级鉴定</div>
  31. <div class="ite-val">低瓦斯</div>
  32. </div>
  33. </div>
  34. </div>
  35. <div class="device-warn">
  36. <div class="device-icon"></div>
  37. <div class="item-content">
  38. <div class="ite-label">设备监测预警</div>
  39. <div class="ite-val">低风险</div>
  40. </div>
  41. </div>
  42. <div class="fire-warn">
  43. <div class="fire-icon"></div>
  44. <div class="item-content">
  45. <div class="ite-label">火灾监测预警</div>
  46. <div class="ite-val">低风险</div>
  47. </div>
  48. </div>
  49. </div>
  50. </div>
  51. </template>
  52. <script lang="ts" setup>
  53. import { ref } from 'vue'
  54. </script>
  55. <style lang="less" scoped>
  56. .center-area-green {
  57. height: 100%;
  58. .container {
  59. position: relative;
  60. width: 100%;
  61. height: calc(100% - 25px);
  62. margin-top: 25px;
  63. background: url(/src/assets/images/home-green/1-1.png) no-repeat center;
  64. background-size: 95% 100%;
  65. }
  66. .risk-score {
  67. position: absolute;
  68. left: 50%;
  69. top: -46px;
  70. transform: translate(-44%, 0);
  71. width: 206px;
  72. height: 60px;
  73. font-size: 18px;
  74. color: #fff;
  75. background: url(/src/assets/images/home-green/1-2.png) no-repeat;
  76. background-size: 100% 100%;
  77. .item-label {
  78. text-align: center;
  79. margin-bottom: 5px;
  80. }
  81. .item-val {
  82. text-align: center;
  83. font-family: 'douyuFont';
  84. }
  85. }
  86. .dust-warn {
  87. position: absolute;
  88. left: 220px;
  89. top: 52px;
  90. width: 120px;
  91. height: 106px;
  92. background: url(/src/assets/images/home-green/1-7.png) no-repeat;
  93. background-size: 100% 100%;
  94. }
  95. .vent-warn {
  96. position: absolute;
  97. left: 134px;
  98. top: 232px;
  99. width: 120px;
  100. height: 106px;
  101. background: url(/src/assets/images/home-green/1-5.png) no-repeat;
  102. background-size: 100% 100%;
  103. }
  104. .gas-warn {
  105. position: absolute;
  106. left: 434px;
  107. top: 368px;
  108. width: 120px;
  109. height: 106px;
  110. background: url(/src/assets/images/home-green/1-3.png) no-repeat;
  111. background-size: 100% 100%;
  112. }
  113. .device-warn {
  114. position: absolute;
  115. right: 130px;
  116. top: 222px;
  117. width: 120px;
  118. height: 106px;
  119. background: url(/src/assets/images/home-green/1-6.png) no-repeat;
  120. background-size: 100% 100%;
  121. }
  122. .fire-warn {
  123. position: absolute;
  124. right: 121px;
  125. top: 52px;
  126. width: 120px;
  127. height: 106px;
  128. background: url(/src/assets/images/home-green/1-4.png) no-repeat;
  129. background-size: 100% 100%;
  130. }
  131. .item-content {
  132. position: absolute;
  133. left: -4px;
  134. top: -54px;
  135. width: 127px;
  136. height: 56px;
  137. background: url(/src/assets/images/home-green/1-8.png) no-repeat;
  138. background-size: 100% 100%;
  139. }
  140. .item-content1 {
  141. display: flex;
  142. position: absolute;
  143. left: -60px;
  144. top: -54px;
  145. width: 258px;
  146. height: 56px;
  147. background: url(/src/assets/images/home-green/1-9.png) no-repeat;
  148. background-size: 100% 100%;
  149. }
  150. .ite-label{
  151. text-align: center;
  152. margin-bottom: 8px;
  153. padding-top: 4px;
  154. }
  155. .ite-val{
  156. text-align: center;
  157. font-family: 'douyuFont';
  158. }
  159. .ite-content{
  160. width: 50%;
  161. height: 100%;
  162. }
  163. }
  164. </style>