管道式消毒机
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.

180 lines
4.3 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
2 years ago
2 years ago
2 years ago
2 years ago
  1. <template>
  2. <div class="environment_container">
  3. <div class="top_title">
  4. <svg
  5. xmlns="http://www.w3.org/2000/svg"
  6. xmlns:xlink="http://www.w3.org/1999/xlink"
  7. fill="none"
  8. version="1.1"
  9. width="27.99883270263672"
  10. height="28"
  11. viewBox="0 0 27.99883270263672 28"
  12. >
  13. <g>
  14. <path
  15. d="M13.9988,0C6.26685,0,0,6.26801,0,14.0006C0,21.732,6.26685,28,13.9988,28C21.732,28,27.9988,21.7314,27.9988,14.0006C27.9988,6.26685,21.732,0,13.9988,0ZM13.33,2.65902L15.1101,2.65902L15.1101,6.15218L13.33,6.15218L13.33,2.65902ZM8.00499,9.19305L5.53515,6.72263L6.79364,5.46414L9.26348,7.93456L8.00499,9.19305ZM8.88395,3.93963L10.494,3.18872L11.9708,6.35358L10.359,7.10565L8.88395,3.93963ZM14.2439,24.2036C12.6961,24.2036,11.4428,22.9486,11.4428,21.4025C11.4428,20.1929,12.2083,19.1673,13.2823,18.7744L13.2823,10.7833L15.0606,10.7833L15.0606,18.722C16.2085,19.0706,17.0455,20.1382,17.0455,21.4031C17.0455,22.9486,15.7917,24.2036,14.2439,24.2036ZM16.3295,6.35009L17.8063,3.18407L19.4182,3.93672L17.9431,7.10274L16.3295,6.35009ZM20.2412,9.19305L18.9827,7.93456L21.4526,5.46414L22.7111,6.72263L20.2412,9.19305Z"
  16. fill="#FFFFFF"
  17. fill-opacity="1"
  18. />
  19. </g>
  20. </svg>
  21. <p class="title">{{ getTitle() }}</p>
  22. </div>
  23. <div class="content">
  24. <div class="line">
  25. <p class="title">温度</p>
  26. <p class="num">{{ getTemperature() }}°C</p>
  27. </div>
  28. <div class="line">
  29. <p class="title">相对湿度</p>
  30. <p class="num">{{ getHumidity() }} {{ '%RH' }}</p>
  31. </div>
  32. <div class="line">
  33. <p class="title">相对饱和度</p>
  34. <p class="num">{{ getSaturation() }} {{ '%RS' }}</p>
  35. </div>
  36. <div class="line">
  37. <p class="title">汽化过氧化氢浓度</p>
  38. <p class="num">{{ getHP() }} ppm</p>
  39. </div>
  40. </div>
  41. </div>
  42. </template>
  43. <script setup>
  44. import { useDeviceStore } from '@/store'
  45. import { storeToRefs } from 'pinia'
  46. const deviceStore = useDeviceStore()
  47. const {
  48. binTemperature,
  49. binHumidity,
  50. binHP,
  51. binSaturation,
  52. envirTemperature1,
  53. envirHumidity1,
  54. envirHP1,
  55. envirTemperature2,
  56. envirHumidity2,
  57. envirHP2,
  58. } = storeToRefs(deviceStore)
  59. const props = defineProps({
  60. cardType: {
  61. type: Number,
  62. },
  63. })
  64. const getTitle = () => {
  65. if (props.cardType == 1) {
  66. return '仓内'
  67. }
  68. if (props.cardType == 2) {
  69. return '环境1'
  70. }
  71. if (props.cardType == 3) {
  72. return '环境2'
  73. }
  74. return ''
  75. }
  76. const getTemperature = () => {
  77. if (props.cardType == 1) {
  78. return binTemperature
  79. }
  80. if (props.cardType == 2) {
  81. return envirTemperature1
  82. }
  83. if (props.cardType == 3) {
  84. return envirTemperature2
  85. }
  86. }
  87. const getHumidity = () => {
  88. if (props.cardType == 1) {
  89. return binHumidity
  90. }
  91. if (props.cardType == 2) {
  92. return envirHumidity1
  93. }
  94. if (props.cardType == 3) {
  95. return envirHumidity2
  96. }
  97. }
  98. const getHP = () => {
  99. if (props.cardType == 1) {
  100. return binHP
  101. }
  102. if (props.cardType == 2) {
  103. return envirHP1
  104. }
  105. if (props.cardType == 3) {
  106. return envirHP2
  107. }
  108. }
  109. const getSaturation = () => {
  110. if (props.cardType == 1) {
  111. return binSaturation
  112. }
  113. if (props.cardType == 2) {
  114. return 0
  115. }
  116. if (props.cardType == 3) {
  117. return 0
  118. }
  119. }
  120. </script>
  121. <style lang="scss" scoped>
  122. .environment_container {
  123. width: 353px;
  124. height: 225px;
  125. box-sizing: border-box;
  126. overflow: hidden;
  127. border-radius: 17.5px;
  128. .top_title {
  129. padding: 15px 16px;
  130. display: flex;
  131. align-items: center;
  132. .title {
  133. font-family: Source Han Sans CN;
  134. font-size: 24px;
  135. font-weight: 500;
  136. letter-spacing: 0.1em;
  137. margin-left: 8px;
  138. color: #ffffff;
  139. }
  140. }
  141. .content {
  142. display: grid;
  143. grid-template-rows: repeat(4, 1fr);
  144. .line {
  145. padding: 11px 26px;
  146. width: 353px;
  147. // height: 56px;
  148. box-sizing: border-box;
  149. display: flex;
  150. align-items: center;
  151. justify-content: space-between;
  152. &:nth-child(odd) {
  153. background: #1f6397;
  154. }
  155. .title {
  156. font-family: Source Han Sans CN;
  157. font-size: 16px;
  158. font-weight: normal;
  159. letter-spacing: 0.06em;
  160. color: #ffffff;
  161. }
  162. .num {
  163. font-family: Source Han Sans CN;
  164. font-size: 20px;
  165. font-weight: bold;
  166. letter-spacing: 0.06em;
  167. color: #ffffff;
  168. }
  169. }
  170. }
  171. }
  172. </style>