消毒机前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

197 lines
5.1 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. <template>
  2. <div class="test_container">
  3. <div class="common_set switch_wrap">
  4. <p class="title">加液蠕动泵</p>
  5. <p class="num">000/000</p>
  6. <div class="btn_wrap">
  7. <div :class="testStore.feedingPeristalticPumpStatus ? 'close' : 'open'">
  8. 打开
  9. </div>
  10. <div
  11. :class="!testStore.feedingPeristalticPumpStatus ? 'close' : 'open'"
  12. >
  13. 关闭
  14. </div>
  15. </div>
  16. </div>
  17. <div class="common_set switch_wrap">
  18. <p class="title">喷液蠕动泵</p>
  19. <p class="num">000/000</p>
  20. <div class="btn_wrap">
  21. <div :class="testStore.sprayPeristalticPump ? 'close' : 'open'">
  22. 打开
  23. </div>
  24. <div :class="!testStore.sprayPeristalticPump ? 'close' : 'open'">
  25. 关闭
  26. </div>
  27. </div>
  28. </div>
  29. <div class="common_set switch_wrap">
  30. <p class="title">空压机</p>
  31. <p class="num">000/000</p>
  32. <div class="btn_wrap">
  33. <div :class="testStore.airCompressor ? 'close' : 'open'">打开</div>
  34. <div :class="!testStore.airCompressor ? 'close' : 'open'">关闭</div>
  35. </div>
  36. </div>
  37. <div class="common_set switch_wrap">
  38. <p class="title">风机</p>
  39. <p class="num">000/000</p>
  40. <div class="btn_wrap">
  41. <div :class="testStore.draughtFan ? 'close' : 'open'">打开</div>
  42. <div :class="!testStore.draughtFan ? 'close' : 'open'">关闭</div>
  43. </div>
  44. </div>
  45. <div class="common_set update_wrap">
  46. <p class="title">水浸</p>
  47. <p class="num">000/000</p>
  48. <div class="btn_wrap">更新读取水浸状态</div>
  49. </div>
  50. <div class="common_set update_wrap">
  51. <p class="title">液位</p>
  52. <p class="num">000/000</p>
  53. <div class="btn_wrap">更新读取液位状态</div>
  54. </div>
  55. <div class="common_set info_wrap">
  56. <p class="title">仓内</p>
  57. <p class="info">温度 100 </p>
  58. <p class="info">湿度 100 </p>
  59. <p class="info">过氧化氢浓度 100 PPM</p>
  60. </div>
  61. <div class="common_set info_wrap">
  62. <p class="title">环境1</p>
  63. <p class="info">温度 100 </p>
  64. <p class="info">湿度 100 </p>
  65. <p class="info">过氧化氢浓度 100 PPM</p>
  66. </div>
  67. <div class="common_set info_wrap">
  68. <p class="title">环境2</p>
  69. <p class="info">温度 100 </p>
  70. <p class="info">湿度 100 </p>
  71. <p class="info">过氧化氢浓度 100 PPM</p>
  72. </div>
  73. </div>
  74. </template>
  75. <script setup>
  76. import { ref } from 'vue'
  77. import { useTestStore } from '@/store'
  78. const testStore = useTestStore()
  79. </script>
  80. <style lang="scss" scoped>
  81. .test_container {
  82. margin-bottom: 30px;
  83. height: 580px;
  84. box-sizing: border-box;
  85. background: #ffffff;
  86. border-radius: 16px;
  87. padding: 20px;
  88. padding-bottom: 80px;
  89. display: grid;
  90. row-gap: 20px;
  91. column-gap: 20px;
  92. grid-template-columns: repeat(2, 1fr);
  93. grid-template-rows: repeat(5, 1fr);
  94. .common_set {
  95. width: 580px;
  96. height: 80px;
  97. box-sizing: border-box;
  98. border-radius: 14px;
  99. background: #f6f6f6;
  100. display: flex;
  101. align-items: center;
  102. .title {
  103. font-family: Source Han Sans CN;
  104. font-size: 20px;
  105. font-weight: 500;
  106. letter-spacing: 0.06em;
  107. color: #000000;
  108. width: 106px;
  109. }
  110. .num {
  111. font-family: Source Han Sans CN;
  112. font-size: 14px;
  113. font-weight: 500;
  114. letter-spacing: 0.1em;
  115. color: #000000;
  116. }
  117. }
  118. .switch_wrap {
  119. padding: 0 17px 0 40px;
  120. justify-content: space-between;
  121. .btn_wrap {
  122. display: flex;
  123. align-items: center;
  124. .open {
  125. margin-right: 10px;
  126. width: 87px;
  127. height: 45px;
  128. border-radius: 23px;
  129. background: #06518b;
  130. display: flex;
  131. align-items: center;
  132. justify-content: center;
  133. font-family: Source Han Sans CN;
  134. font-size: 14px;
  135. font-weight: 500;
  136. letter-spacing: 0.1em;
  137. color: #ffffff;
  138. }
  139. .close {
  140. width: 87px;
  141. height: 45px;
  142. border-radius: 23px;
  143. background: #ffffff;
  144. display: flex;
  145. align-items: center;
  146. justify-content: center;
  147. font-family: Source Han Sans CN;
  148. font-size: 14px;
  149. font-weight: 500;
  150. letter-spacing: 0.1em;
  151. color: #d8d8d8;
  152. }
  153. }
  154. }
  155. .update_wrap {
  156. padding: 0 17px 0 40px;
  157. justify-content: space-between;
  158. .btn_wrap {
  159. width: 184px;
  160. height: 45px;
  161. border-radius: 23px;
  162. background: #06518b;
  163. display: flex;
  164. align-items: center;
  165. justify-content: center;
  166. font-family: Source Han Sans CN;
  167. font-size: 14px;
  168. font-weight: 500;
  169. letter-spacing: 0.1em;
  170. color: #ffffff;
  171. }
  172. }
  173. .info_wrap {
  174. padding: 0 32px 0 40px;
  175. justify-content: space-between;
  176. .title {
  177. font-family: Source Han Sans CN;
  178. font-size: 20px;
  179. font-weight: 500;
  180. letter-spacing: 0.06em;
  181. color: #000000;
  182. width: 57px;
  183. white-space: nowrap;
  184. }
  185. .info {
  186. font-family: Source Han Sans CN;
  187. font-size: 14px;
  188. font-weight: 500;
  189. letter-spacing: 0.1em;
  190. color: #06518b;
  191. }
  192. }
  193. }
  194. </style>