小空间消毒机
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.

126 lines
2.6 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. <template>
  2. <my-modal type="confirm" icon="warning"
  3. v-model:visible="visible"
  4. @ok="tapLiquid"
  5. @cancel="cancelTap"
  6. >
  7. <p class="warn_info mg"><span class="red">检查</span>是否接入排出容器</p>
  8. <p class="warn_info" style="margin-bottom: 50px;">并确认<span class="red">容器是否大于</span>排出液体容积</p>
  9. </my-modal>
  10. </template>
  11. <script setup>
  12. import { useWebSocketStore } from '@/store'
  13. import { startDrainingJSON } from '@/mock/command'
  14. import { ref } from 'vue'
  15. const webSocketStore = useWebSocketStore()
  16. const props = defineProps({
  17. hideTabLiquid: {
  18. type: Function,
  19. },
  20. })
  21. const visible = ref(true)
  22. const tapLiquid = () => {
  23. webSocketStore.sendCommandMsg(startDrainingJSON)
  24. props?.hideTabLiquid()
  25. }
  26. const cancelTap = () => {
  27. props?.hideTabLiquid()
  28. }
  29. </script>
  30. <style lang="scss" scoped>
  31. .warn_info {
  32. font-family: Source Han Sans CN;
  33. font-size: 22px;
  34. font-weight: normal;
  35. letter-spacing: 0.04em;
  36. color: #000000;
  37. .red {
  38. color: #fa1c1c;
  39. }
  40. }
  41. .mg {
  42. margin-top: 34px;
  43. margin-bottom: 16px;
  44. }
  45. .liquid_modal_container {
  46. position: fixed;
  47. top: 0;
  48. left: 0;
  49. right: 0;
  50. bottom: 0;
  51. background: rgba(0, 0, 0, 0.5);
  52. z-index: 2;
  53. display: flex;
  54. align-items: center;
  55. justify-content: center;
  56. .modal_content {
  57. width: 476px;
  58. height: 389px;
  59. border-radius: 16px;
  60. background: #ffffff;
  61. box-sizing: border-box;
  62. padding: 52px 0;
  63. display: flex;
  64. flex-direction: column;
  65. align-items: center;
  66. .warn_info {
  67. font-family: Source Han Sans CN;
  68. font-size: 22px;
  69. font-weight: normal;
  70. letter-spacing: 0.04em;
  71. color: #000000;
  72. .red {
  73. color: #fa1c1c;
  74. }
  75. }
  76. .mg {
  77. margin-top: 34px;
  78. margin-bottom: 16px;
  79. }
  80. .btns {
  81. display: flex;
  82. align-items: center;
  83. justify-content: space-between;
  84. width: 362px;
  85. margin-top: 45px;
  86. .ok {
  87. width: 173px;
  88. height: 68px;
  89. border-radius: 34px;
  90. background: #06518b;
  91. font-family: Source Han Sans CN;
  92. font-size: 23px;
  93. font-weight: 350;
  94. letter-spacing: 0em;
  95. color: #ffffff;
  96. display: flex;
  97. align-items: center;
  98. justify-content: center;
  99. }
  100. .cancel {
  101. width: 173px;
  102. height: 68px;
  103. border-radius: 34px;
  104. background: #d8d8d8;
  105. font-family: Source Han Sans CN;
  106. font-size: 23px;
  107. font-weight: 350;
  108. letter-spacing: 0em;
  109. color: #ffffff;
  110. display: flex;
  111. align-items: center;
  112. justify-content: center;
  113. }
  114. }
  115. }
  116. }
  117. </style>