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

139 lines
3.5 KiB

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="liquid_modal_container">
  3. <div class="modal_content">
  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="69"
  10. height="69"
  11. viewBox="0 0 69 69"
  12. >
  13. <g>
  14. <path
  15. d="M34.5,0C15.456,0,0,15.456,0,34.5C0,53.544,15.456,69,34.5,69C53.544,69,69,53.544,69,34.5C69,15.456,53.544,0,34.5,0ZM34.5,55.2C32.5335,55.2,30.981,53.613,30.981,51.681C30.981,49.7145,32.568,48.162,34.5,48.162C36.4665,48.162,38.019,49.749,38.019,51.681C38.019,53.613,36.4665,55.2,34.5,55.2ZM38.3295,15.8355L37.605,40.9515C37.5705,42.2625,36.225,43.2975,34.638,43.2975L34.086,43.2975C32.499,43.2975,31.1535,42.2625,31.119,40.9515L30.36,15.8355C30.291,13.8345,31.9125,12.144,33.9825,12.144L34.707,12.144C36.777,12.144,38.3985,13.8345,38.3295,15.8355Z"
  16. fill="#FA1C1C"
  17. fill-opacity="1"
  18. />
  19. </g>
  20. </svg>
  21. <p class="warn_info mg">
  22. <span class="red">检查</span>是否接入排出容器
  23. </p>
  24. <p class="warn_info">
  25. 并确认<span class="red">容器是否大于</span>排出液体容积
  26. </p>
  27. <div class="btns">
  28. <div class="ok" @click="tapLiquid">确定</div>
  29. <div class="cancel" @click="cancelTap">取消</div>
  30. </div>
  31. </div>
  32. </div>
  33. </template>
  34. <script setup>
  35. import { useWebSocketStore } from '@/store'
  36. import { startDrainingJSON } from '@/mock/command'
  37. const webSocketStore = useWebSocketStore()
  38. const props = defineProps({
  39. hideTabLiquid: {
  40. type: Function,
  41. },
  42. startPopFlag: {
  43. type: Function,
  44. },
  45. isPopLiquidStatus: {
  46. type: Boolean,
  47. },
  48. })
  49. const tapLiquid = () => {
  50. if (!props.isPopLiquidStatus) {
  51. props.startPopFlag()
  52. webSocketStore.sendCommandMsg(startDrainingJSON)
  53. props?.hideTabLiquid()
  54. }
  55. }
  56. const cancelTap = () => {
  57. props?.hideTabLiquid()
  58. }
  59. </script>
  60. <style lang="scss" scoped>
  61. .liquid_modal_container {
  62. position: fixed;
  63. top: 0;
  64. left: 0;
  65. right: 0;
  66. bottom: 0;
  67. background: rgba(0, 0, 0, 0.5);
  68. z-index: 2;
  69. display: flex;
  70. align-items: center;
  71. justify-content: center;
  72. .modal_content {
  73. width: 476px;
  74. height: 389px;
  75. border-radius: 16px;
  76. background: #ffffff;
  77. box-sizing: border-box;
  78. padding: 52px 0;
  79. display: flex;
  80. flex-direction: column;
  81. align-items: center;
  82. .warn_info {
  83. font-family: Source Han Sans CN;
  84. font-size: 22px;
  85. font-weight: normal;
  86. letter-spacing: 0.04em;
  87. color: #000000;
  88. .red {
  89. color: #fa1c1c;
  90. }
  91. }
  92. .mg {
  93. margin-top: 34px;
  94. margin-bottom: 16px;
  95. }
  96. .btns {
  97. display: flex;
  98. align-items: center;
  99. justify-content: space-between;
  100. width: 362px;
  101. margin-top: 45px;
  102. .ok {
  103. width: 173px;
  104. height: 68px;
  105. border-radius: 34px;
  106. background: #06518b;
  107. font-family: Source Han Sans CN;
  108. font-size: 23px;
  109. font-weight: 350;
  110. letter-spacing: 0em;
  111. color: #ffffff;
  112. display: flex;
  113. align-items: center;
  114. justify-content: center;
  115. }
  116. .cancel {
  117. width: 173px;
  118. height: 68px;
  119. border-radius: 34px;
  120. background: #d8d8d8;
  121. font-family: Source Han Sans CN;
  122. font-size: 23px;
  123. font-weight: 350;
  124. letter-spacing: 0em;
  125. color: #ffffff;
  126. display: flex;
  127. align-items: center;
  128. justify-content: center;
  129. }
  130. }
  131. }
  132. }
  133. </style>