dustGlzb.vue 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <template>
  2. <div class="dustGlzb">
  3. <div class="dust-gl-box" v-for="(item, index) in dustZbList" :key="index">
  4. <div class="gl-box-content">
  5. <span class="gl-label">{{ item.label }}</span>
  6. <span class="gl-val">{{ item.val }}</span>
  7. </div>
  8. </div>
  9. </div>
  10. </template>
  11. <script lang="ts" setup>
  12. import { reactive } from 'vue'
  13. let dustZbList = reactive([
  14. { id: 0, label: '最高温度(℃)', val: 12 },
  15. { id: 1, label: '环境湿度(%)', val: 12 },
  16. { id: 2, label: '风速(m/s)', val: 12 },
  17. { id: 3, label: '采煤机', val: 12 },
  18. { id: 4, label: '水压(Mpa)', val: 12 },
  19. { id: 5, label: '水阀', val: 12 },
  20. ])
  21. </script>
  22. <style lang="less" scoped>
  23. .dustGlzb {
  24. position: relative;
  25. width: 100%;
  26. height: 100%;
  27. display: flex;
  28. justify-content: flex-start;
  29. align-items: flex-start;
  30. flex-wrap: wrap;
  31. .dust-gl-box {
  32. width: 50%;
  33. height: 66px;
  34. display: flex;
  35. justify-content: center;
  36. align-items: center;
  37. .gl-box-content {
  38. position: relative;
  39. width: 254px;
  40. height: 100%;
  41. .gl-label{
  42. position: absolute;
  43. left: 74px;
  44. top: 50%;
  45. transform: translate(0,-50%);
  46. color: #fff;
  47. }
  48. .gl-val{
  49. position: absolute;
  50. right: 36px;
  51. top: 50%;
  52. transform: translate(0,-40%);
  53. font-family: 'douyuFont';
  54. color: #1fb3f7;
  55. }
  56. }
  57. &:nth-child(1) .gl-box-content {
  58. background: url('../../../../../assets/images/dust/dusthome/gl-1.png') no-repeat center;
  59. background-size: 100% 100%;
  60. }
  61. &:nth-child(2) .gl-box-content {
  62. background: url('../../../../../assets/images/dust/dusthome/gl-2.png') no-repeat center;
  63. background-size: 100% 100%;
  64. }
  65. &:nth-child(3) .gl-box-content {
  66. background: url('../../../../../assets/images/dust/dusthome/gl-3.png') no-repeat center;
  67. background-size: 100% 100%;
  68. }
  69. &:nth-child(4) .gl-box-content {
  70. background: url('../../../../../assets/images/dust/dusthome/gl-4.png') no-repeat center;
  71. background-size: 100% 100%;
  72. }
  73. &:nth-child(5) .gl-box-content {
  74. background: url('../../../../../assets/images/dust/dusthome/gl-5.png') no-repeat center;
  75. background-size: 100% 100%;
  76. }
  77. &:nth-child(6) .gl-box-content {
  78. background: url('../../../../../assets/images/dust/dusthome/gl-6.png') no-repeat center;
  79. background-size: 100% 100%;
  80. }
  81. }
  82. }</style>