mine-wind.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <template>
  2. <div class="mineWind">
  3. <div class="mine-title">{{ mineTitle }}</div>
  4. <div class="mine-content">
  5. <div class="content-label">
  6. <div class="label-t" v-for="(ite, ind) in labelList" :key="ind">{{ ite.name }}</div>
  7. </div>
  8. <div class="content-text">
  9. <div class="text" v-for="(item, index) in mineData" :key="index">
  10. <span>{{ item.name }}</span>
  11. <span>{{ item.jf }}</span>
  12. <span>{{ item.hf }}</span>
  13. <span>{{ item.xf }}</span>
  14. </div>
  15. </div>
  16. </div>
  17. </div>
  18. </template>
  19. <script lang="ts" setup>
  20. import { ref, reactive } from 'vue';
  21. let mineTitle = ref('矿井通风状态监测');
  22. let labelList = reactive([{ name: '矿井名称' }, { name: '总进风量' }, { name: '总回风量' }, { name: '总需风量' }]);
  23. let mineData = reactive([
  24. { name: 'XXX', jf: 10215, hf: 10198, xf: 9810 },
  25. { name: 'XXX', jf: 10215, hf: 10198, xf: 9810 },
  26. { name: 'XXX', jf: 10215, hf: 10198, xf: 9810 },
  27. { name: 'XXX', jf: 10215, hf: 10198, xf: 9810 },
  28. { name: 'XXX', jf: 10215, hf: 10198, xf: 9810 },
  29. { name: 'XXX', jf: 10215, hf: 10198, xf: 9810 },
  30. { name: 'XXX', jf: 10215, hf: 10198, xf: 9810 },
  31. ]);
  32. </script>
  33. <style lang="less" scoped>
  34. @font-face {
  35. font-family: 'douyuFont';
  36. src: url('../../../../assets/font/douyuFont.otf');
  37. }
  38. .mineWind {
  39. position: relative;
  40. width: 100%;
  41. height: 100%;
  42. .mine-title {
  43. position: absolute;
  44. left: 50px;
  45. top: 12px;
  46. color: #fff;
  47. font-family: 'douyuFont';
  48. font-size: 14px;
  49. }
  50. .mine-content {
  51. height: 100%;
  52. padding: 62px 0px 28px 0px;
  53. box-sizing: border-box;
  54. display: flex;
  55. flex-direction: column;
  56. align-items: center;
  57. .content-label {
  58. width: 366px;
  59. height: 32px;
  60. display: flex;
  61. justify-content: space-around;
  62. align-items: center;
  63. background: url('../../../../../assets/images/company/content-label.png') no-repeat;
  64. .label-t {
  65. width: 25%;
  66. color: #3df6ff;
  67. text-align: center;
  68. font-size: 14px;
  69. }
  70. }
  71. .content-text {
  72. height: calc(100% - 32px);
  73. width: 378px;
  74. display: flex;
  75. flex-direction: column;
  76. justify-content: space-around;
  77. overflow-y: auto;
  78. .text {
  79. width: 100%;
  80. height: 25px;
  81. display: flex;
  82. justify-content: space-around;
  83. align-items: flex-start;
  84. background: url('../../../../../assets/images/company/content-text.png') no-repeat;
  85. color: #fff;
  86. span {
  87. display: inline-block;
  88. width: 25%;
  89. text-align: center;
  90. }
  91. }
  92. }
  93. }
  94. }
  95. </style>