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

846 lines
64 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
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
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
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
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
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
2 years ago
2 years ago
  1. <template>
  2. <div class="operator_main_content">
  3. <div class="left_contaienr">
  4. <div class="info_cards">
  5. <div class="card">
  6. <DisinfectantLiquidInfo />
  7. </div>
  8. <div class="card">
  9. <EnvironmentInfo :cardType="1" />
  10. </div>
  11. <div class="card">
  12. <EnvironmentInfo :cardType="2" />
  13. </div>
  14. <div class="card">
  15. <EnvironmentInfo :cardType="3" />
  16. </div>
  17. </div>
  18. <div class="warn_wrap">
  19. <p class="warn_text">警报信息</p>
  20. <svg
  21. v-if="operatorStore.disinfectStatus != 0"
  22. @click="toDetail"
  23. xmlns="http://www.w3.org/2000/svg"
  24. xmlns:xlink="http://www.w3.org/1999/xlink"
  25. fill="none"
  26. version="1.1"
  27. width="218"
  28. height="50"
  29. viewBox="0 0 218 50"
  30. >
  31. <g>
  32. <g>
  33. <rect
  34. x="0"
  35. y="0"
  36. width="218"
  37. height="50"
  38. rx="25"
  39. fill="#06518B"
  40. fill-opacity="1"
  41. />
  42. </g>
  43. <g>
  44. <ellipse
  45. cx="26"
  46. cy="25"
  47. rx="19"
  48. ry="19"
  49. fill="#FFFFFF"
  50. fill-opacity="1"
  51. />
  52. </g>
  53. <g>
  54. <path
  55. d="M65.16,27.84L72.68,27.84L72.68,29.24L65.16,29.24L65.16,27.84ZM65.16,25.22L72.68,25.22L72.68,26.58L65.16,26.58L65.16,25.22ZM63.28,23.939999999999998L63.28,30.52L74.64,30.52L74.64,23.939999999999998L63.28,23.939999999999998ZM60.36,31.62L60.36,33.3L77.7,33.3L77.7,31.62L60.36,31.62ZM68,15.3325L68,17.740000000000002L60.1,17.740000000000002L60.1,19.4L66.08,19.4C64.42,21.14,61.96,22.68,59.62,23.46C60.02,23.84,60.56,24.52,60.84,24.98C63.5,23.92,66.2,21.96,68,19.68L68,23.32L69.88,23.32L69.88,19.68C71.72,21.9,74.44,23.82,77.12,24.82C77.4,24.34,77.96000000000001,23.64,78.36,23.28C75.94,22.52,73.44,21.08,71.78,19.4L77.92,19.4L77.92,17.740000000000002L69.88,17.740000000000002L69.88,15.3325L68,15.3325ZM87.36,28.06L95.44,28.06L95.44,29.24L87.36,29.24L87.36,28.06ZM87.36,26.82L87.36,25.68L95.44,25.68L95.44,26.82L87.36,26.82ZM87.36,30.48L95.44,30.48L95.44,31.72L87.36,31.72L87.36,30.48ZM96.84,15.455C93.56,16.05844,87.62,16.34,82.72,16.36C82.88,16.740000000000002,83.06,17.380000000000003,83.08,17.8C84.74,17.8,86.52,17.759999999999998,88.32,17.7L87.98,18.86L82.96000000000001,18.86L82.96000000000001,20.32L87.44,20.32C87.28,20.72,87.1,21.119999999999997,86.92,21.52L81.53999999999999,21.52L81.53999999999999,23.060000000000002L86.08,23.060000000000002C84.84,25.08,83.18,26.86,80.98,28.08C81.36,28.46,81.9,29.14,82.16,29.58C83.44,28.82,84.56,27.9,85.53999999999999,26.86L85.53999999999999,33.965599999999995L87.36,33.965599999999995L87.36,33.18L95.44,33.18L95.44,33.965599999999995L97.32,33.965599999999995L97.32,24.22L87.56,24.22C87.8,23.84,88.02,23.46,88.24,23.060000000000002L99.25999999999999,23.060000000000002L99.25999999999999,21.52L89,21.52L89.5,20.32L98.14,20.32L98.14,18.86L90.02,18.86L90.4,17.6C93.22,17.439999999999998,95.92,17.2,98,16.82L96.84,15.455ZM109.14,26.74C110.78,27.08,112.86,27.8,114,28.36L114.78,27.14C113.62,26.6,111.56,25.96,109.92,25.64L109.14,26.74ZM107.22,29.3C110,29.62,113.46000000000001,30.42,115.38,31.12L116.22,29.76C114.22,29.08,110.8,28.34,108.1,28.04L107.22,29.3ZM103.38,16.16L103.38,33.9256L105.2,33.9256L105.2,33.120000000000005L118.36,33.120000000000005L118.36,33.9256L120.24000000000001,33.9256L120.24000000000001,16.16L103.38,16.16ZM105.2,31.44L105.2,17.880000000000003L118.36,17.880000000000003L118.36,31.44L105.2,31.44ZM110.02000000000001,18.08C109.02000000000001,19.64,107.32,21.16,105.64,22.119999999999997C106,22.4,106.64,22.96,106.92,23.259999999999998C107.44,22.92,107.96000000000001,22.52,108.47999999999999,22.08C109.02000000000001,22.619999999999997,109.64,23.119999999999997,110.34,23.58C108.74000000000001,24.28,106.97999999999999,24.82,105.3,25.14C105.62,25.48,106,26.22,106.18,26.68C108.08,26.22,110.12,25.5,111.94,24.54C113.56,25.38,115.38,26.04,117.2,26.42C117.42,26,117.9,25.34,118.25999999999999,25C116.62,24.72,114.97999999999999,24.240000000000002,113.5,23.619999999999997C114.94,22.66,116.16,21.52,117,20.22L115.94,19.58L115.66,19.66L110.82,19.66C111.1,19.32,111.36,18.96,111.58,18.6L110.02000000000001,18.08ZM109.53999999999999,21.08L114.32,21.1C113.66,21.72,112.82,22.3,111.88,22.82C110.96000000000001,22.3,110.18,21.72,109.53999999999999,21.08ZM128.1,33.909400000000005C128.6,33.5691,129.42000000000002,33.2887,135.07999999999998,31.5472C134.95999999999998,31.1466,134.8,30.3859,134.76,29.8653L130.12,31.2066L130.12,27.2228C131.2,26.4819,132.2,25.6412,133.01999999999998,24.7603C134.56,28.9444,137.22,31.9275,141.38,33.3287C141.66,32.8084,142.2,32.067499999999995,142.62,31.6672C140.7,31.1266,139.1,30.2056,137.78,28.9844C139,28.2638,140.38,27.3228,141.56,26.4019L139.98000000000002,25.2606C139.16,26.0616,137.86,27.0625,136.72,27.8434C135.94,26.9025,135.32,25.8212,134.86,24.66L141.94,24.66L141.94,23.04L134.1,23.04L134.1,21.54L140.45999999999998,21.54L140.45999999999998,20L134.1,20L134.1,18.6L141.3,18.6L141.3,16.96L134.1,16.96L134.1,15.333120000000001L132.2,15.333120000000001L132.2,16.96L125.26,16.96L125.26,18.6L132.2,18.6L132.2,20L126.26,20L126.26,21.54L132.2,21.54L132.2,23.04L124.42,23.04L124.42,24.66L130.64,24.66C128.8,26.2216,126.16,27.6431,123.78,28.3837C124.2,28.7644,124.76,29.465,125.04,29.9053C126.0
  56. fill="#FFFFFF"
  57. fill-opacity="1"
  58. />
  59. </g>
  60. <g>
  61. <path
  62. d="M18,17L18.964553,17L18.964553,19.60926C19.31313,18.12349,20.6479,17.0156627,22.2421,17.0156627C24.10176,17.0156627,25.60839,18.5212,25.60839,20.37952C25.60839,22.23783,24.10176,23.74337,22.2421,23.74337C20.6479,23.74337,19.31313,22.635550000000002,18.964553,21.14977L18.964553,26.86717C19.24149,26.62166,19.58398,26.33394,19.96769,26.04506C21.33735,25.01374,22.52761,24.491329999999998,23.505670000000002,24.491329999999998C24.16542,24.491329999999998,24.722929999999998,24.84602,25.162770000000002,25.543860000000002C25.502290000000002,26.08362,25.745359999999998,26.76603,25.980710000000002,27.4272C26.32795,28.4065,26.68869,29.4205,27.20569,29.426299999999998C27.23849,29.4147,27.560650000000003,29.2759,28.1104,27.8378C28.502000000000002,26.81229,28.893700000000003,25.4494,29.2718,24.13084C29.6614,22.77374,30.0627,21.37229,30.4717,20.3294C30.8594,19.33663,31.3629,18.32265,32.15,18.32265L34,18.32265L34,19.28651L32.1654,19.28651C32.140299999999996,19.29807,32.0265,19.3694,31.8413,19.6759C31.6774,19.94771,31.497999999999998,20.34096,31.3089,20.8441C30.938499999999998,21.82723,30.5643,23.13229,30.2016,24.39687C29.802300000000002,25.790599999999998,29.3875,27.2325,28.961199999999998,28.3159C28.5561,29.3414,28.0333,30.3901,27.21148,30.3901C26.650109999999998,30.3901,26.171689999999998,30.0701,25.79166,29.439799999999998C25.506149999999998,28.9655,25.28623,28.3467,25.07403,27.749200000000002C24.597540000000002,26.405540000000002,24.205930000000002,25.45518,23.5076,25.45518C22.757170000000002,25.45518,21.73668,25.92361,20.559919999999998,26.80843C19.74317,27.4227,19.10877,28.0474,18.964553,28.1922L18.964553,32.0229L34,32.0229L34,32.9867L18.964553,32.9867L18.964553,33L18,33L18,17ZM23.939709999999998,18.68313C23.48638,18.23012,22.88449,17.979518,22.2421,17.979518C21.59971,17.979518,20.99783,18.23012,20.54449,18.68313C20.09115,19.13614,19.84037,19.73952,19.84037,20.37952C19.84037,21.01952,20.09115,21.622889999999998,20.54449,22.0759C20.99783,22.52892,21.60164,22.779519999999998,22.2421,22.779519999999998C22.88257,22.779519999999998,23.48638,22.52892,23.939709999999998,22.0759C24.39305,21.622889999999998,24.64384,21.01952,24.64384,20.37952C24.64384,19.73952,24.39305,19.13614,23.939709999999998,18.68313ZM22.05305,19.22289L21.0885,19.22289L21.0885,20.57229L21.08464,20.57229L21.08464,21.53614L23.39956,21.53614L23.39956,20.57229L22.05305,20.57229L22.05305,19.22289Z"
  63. fill-rule="evenodd"
  64. fill="#06518B"
  65. fill-opacity="1"
  66. />
  67. </g>
  68. </g>
  69. </svg>
  70. <svg
  71. v-else
  72. xmlns="http://www.w3.org/2000/svg"
  73. xmlns:xlink="http://www.w3.org/1999/xlink"
  74. fill="none"
  75. version="1.1"
  76. width="218"
  77. height="50"
  78. viewBox="0 0 218 50"
  79. >
  80. <g>
  81. <g>
  82. <rect
  83. x="0"
  84. y="0"
  85. width="218"
  86. height="50"
  87. rx="25"
  88. fill="#F6F6F6"
  89. fill-opacity="1"
  90. />
  91. </g>
  92. <g>
  93. <ellipse
  94. cx="26"
  95. cy="25"
  96. rx="19"
  97. ry="19"
  98. fill="#FFFFFF"
  99. fill-opacity="1"
  100. />
  101. </g>
  102. <g>
  103. <path
  104. d="M64.9,27.86L73,27.86L73,29.54L64.9,29.54L64.9,27.86ZM64.9,25.18L73,25.18L73,26.82L64.9,26.82L64.9,25.18ZM63.42,24.1L63.42,30.62L74.56,30.62L74.56,24.1L63.42,24.1ZM60.48,31.82L60.48,33.18L77.6,33.18L77.6,31.82L60.48,31.82ZM68.2,15.4125L68.2,17.96L60.14,17.96L60.14,19.28L66.58,19.28C64.86,21.18,62.18,22.9,59.72,23.740000000000002C60.04,24.02,60.48,24.58,60.7,24.939999999999998C63.42,23.86,66.38,21.759999999999998,68.2,19.380000000000003L68.2,23.48L69.68,23.48L69.68,19.36C71.52,21.68,74.52,23.759999999999998,77.28,24.78C77.5,24.4,77.94,23.82,78.28,23.54C75.76,22.759999999999998,73.03999999999999,21.1,71.3,19.28L77.88,19.28L77.88,17.96L69.68,17.96L69.68,15.4125L68.2,15.4125ZM87.03999999999999,27.94L95.75999999999999,27.94L95.75999999999999,29.34L87.03999999999999,29.34L87.03999999999999,27.94ZM87.03999999999999,26.88L87.03999999999999,25.52L95.75999999999999,25.52L95.75999999999999,26.88L87.03999999999999,26.88ZM87.03999999999999,30.38L95.75999999999999,30.38L95.75999999999999,31.86L87.03999999999999,31.86L87.03999999999999,30.38ZM96.92,15.575C93.72,16.21844,87.64,16.52,82.76,16.56C82.9,16.88,83.03999999999999,17.380000000000003,83.06,17.72C84.8,17.72,86.68,17.68,88.56,17.6C88.42,18.060000000000002,88.28,18.52,88.12,18.98L83.03999999999999,18.98L83.03999999999999,20.18L87.68,20.18C87.48,20.68,87.26,21.18,87,21.68L81.58,21.68L81.58,22.92L86.32,22.92C85.06,25.04,83.34,26.88,81.06,28.18C81.38,28.48,81.82,29.02,82.02,29.36C83.4,28.54,84.58,27.54,85.6,26.4L85.6,33.865300000000005L87.03999999999999,33.865300000000005L87.03999999999999,33.06L95.75999999999999,33.06L95.75999999999999,33.865300000000005L97.25999999999999,33.865300000000005L97.25999999999999,24.32L87.2,24.32C87.5,23.86,87.78,23.4,88.03999999999999,22.92L99.22,22.92L99.22,21.68L88.66,21.68C88.9,21.18,89.12,20.68,89.32,20.18L98.06,20.18L98.06,18.98L89.76,18.98L90.22,17.52C93.1,17.34,95.86,17.060000000000002,97.88,16.66L96.92,15.575ZM109.3,26.64C110.9,26.98,112.94,27.68,114.06,28.24L114.68,27.22C113.56,26.7,111.53999999999999,26.04,109.94,25.72L109.3,26.64ZM107.3,29.18C110.06,29.52,113.52000000000001,30.32,115.44,31L116.1,29.88C114.16,29.24,110.7,28.46,108,28.16L107.3,29.18ZM103.47999999999999,16.3L103.47999999999999,33.8253L104.92,33.8253L104.92,32.980000000000004L118.64,32.980000000000004L118.64,33.8253L120.14,33.8253L120.14,16.3L103.47999999999999,16.3ZM104.92,31.64L104.92,17.66L118.64,17.66L118.64,31.64L104.92,31.64ZM110.08,18.060000000000002C109.08,19.7,107.36,21.259999999999998,105.64,22.28C105.96000000000001,22.48,106.47999999999999,22.939999999999998,106.7,23.18C107.3,22.78,107.92,22.3,108.53999999999999,21.759999999999998C109.14,22.4,109.88,23,110.68,23.54C108.97999999999999,24.34,107.06,24.939999999999998,105.28,25.3C105.53999999999999,25.58,105.86,26.16,106,26.52C107.96000000000001,26.06,110.06,25.32,111.96000000000001,24.3C113.62,25.2,115.52000000000001,25.88,117.42,26.3C117.6,25.94,117.97999999999999,25.42,118.25999999999999,25.16C116.5,24.84,114.74000000000001,24.3,113.18,23.58C114.68,22.6,115.94,21.46,116.78,20.1L115.92,19.6L115.7,19.66L110.52000000000001,19.66C110.82,19.28,111.1,18.9,111.34,18.5L110.08,18.060000000000002ZM109.36,20.96L109.5,20.82L114.68,20.82C113.96000000000001,21.6,113,22.3,111.92,22.92C110.9,22.34,110.02000000000001,21.68,109.36,20.96ZM128.24,33.8094C128.7,33.509100000000004,129.44,33.2487,135.01999999999998,31.4669C134.94,31.1466,134.82,30.5662,134.78,30.1456L129.9,31.6072L129.9,27.2028C131.1,26.3819,132.18,25.4809,133.04000000000002,24.52C134.6,28.7244,137.4,31.7672,141.54000000000002,33.1488C141.76,32.748400000000004,142.2,32.1678,142.54000000000002,31.8475C140.56,31.2669,138.86,30.2859,137.48000000000002,28.9847C138.74,28.2038,140.2,27.1628,141.36,26.1819L140.12,25.3009C139.24,26.1619,137.84,27.2428,136.64,28.0837C135.76,27.0425,135.04000000000002,25.8416,134.51999999999998,24.52L141.88,24.52L141.88,23.22L133.92000000000002,23.22L133.92000000000002,21.439999999999998L140.36,21.439999999999998L140.36,20.2L133.92000000000002,20.2L133.92000000000002,18.5L141.24,18.5L141.24,17.2L133.92000000000002,17.2L133.9200000000
  105. fill="#9E9E9E"
  106. fill-opacity="1"
  107. />
  108. </g>
  109. <g>
  110. <path
  111. d="M18,17L18.964553,17L18.964553,19.60926C19.31313,18.12349,20.6479,17.0156627,22.2421,17.0156627C24.10176,17.0156627,25.60839,18.5212,25.60839,20.37952C25.60839,22.23783,24.10176,23.74337,22.2421,23.74337C20.6479,23.74337,19.31313,22.635550000000002,18.964553,21.14977L18.964553,26.86717C19.24149,26.62166,19.58398,26.33394,19.96769,26.04506C21.33735,25.01374,22.52761,24.491329999999998,23.505670000000002,24.491329999999998C24.16542,24.491329999999998,24.722929999999998,24.84602,25.162770000000002,25.543860000000002C25.502290000000002,26.08362,25.745359999999998,26.76603,25.980710000000002,27.4272C26.32795,28.4065,26.68869,29.4205,27.20569,29.426299999999998C27.23849,29.4147,27.560650000000003,29.2759,28.1104,27.8378C28.502000000000002,26.81229,28.893700000000003,25.4494,29.2718,24.13084C29.6614,22.77374,30.0627,21.37229,30.4717,20.3294C30.8594,19.33663,31.3629,18.32265,32.15,18.32265L34,18.32265L34,19.28651L32.1654,19.28651C32.140299999999996,19.29807,32.0265,19.3694,31.8413,19.6759C31.6774,19.94771,31.497999999999998,20.34096,31.3089,20.8441C30.938499999999998,21.82723,30.5643,23.13229,30.2016,24.39687C29.802300000000002,25.790599999999998,29.3875,27.2325,28.961199999999998,28.3159C28.5561,29.3414,28.0333,30.3901,27.21148,30.3901C26.650109999999998,30.3901,26.171689999999998,30.0701,25.79166,29.439799999999998C25.506149999999998,28.9655,25.28623,28.3467,25.07403,27.749200000000002C24.597540000000002,26.405540000000002,24.205930000000002,25.45518,23.5076,25.45518C22.757170000000002,25.45518,21.73668,25.92361,20.559919999999998,26.80843C19.74317,27.4227,19.10877,28.0474,18.964553,28.1922L18.964553,32.0229L34,32.0229L34,32.9867L18.964553,32.9867L18.964553,33L18,33L18,17ZM23.939709999999998,18.68313C23.48638,18.23012,22.88449,17.979518,22.2421,17.979518C21.59971,17.979518,20.99783,18.23012,20.54449,18.68313C20.09115,19.13614,19.84037,19.73952,19.84037,20.37952C19.84037,21.01952,20.09115,21.622889999999998,20.54449,22.0759C20.99783,22.52892,21.60164,22.779519999999998,22.2421,22.779519999999998C22.88257,22.779519999999998,23.48638,22.52892,23.939709999999998,22.0759C24.39305,21.622889999999998,24.64384,21.01952,24.64384,20.37952C24.64384,19.73952,24.39305,19.13614,23.939709999999998,18.68313ZM22.05305,19.22289L21.0885,19.22289L21.0885,20.57229L21.08464,20.57229L21.08464,21.53614L23.39956,21.53614L23.39956,20.57229L22.05305,20.57229L22.05305,19.22289Z"
  112. fill-rule="evenodd"
  113. fill="#9E9E9E"
  114. fill-opacity="1"
  115. />
  116. </g>
  117. </g>
  118. </svg>
  119. </div>
  120. </div>
  121. <div class="right_container">
  122. <div class="setting_title">
  123. <div class="title_wrap">
  124. <svg
  125. xmlns="http://www.w3.org/2000/svg"
  126. xmlns:xlink="http://www.w3.org/1999/xlink"
  127. fill="none"
  128. version="1.1"
  129. width="20"
  130. height="20"
  131. viewBox="0 0 20 20"
  132. >
  133. <g>
  134. <path
  135. d="M19.5445,11.875L17.8493,10.5893C17.8671,10.4107,17.885,10.2143,17.885,10C17.885,9.78571,17.8671,9.58929,17.8493,9.41071L19.5445,8.125C20.0085,7.76786,20.1334,7.14286,19.83,6.60714L17.9385,3.41071C17.7244,3.03571,17.314,2.80357,16.8857,2.80357C16.7429,2.80357,16.618,2.82143,16.4753,2.875L14.4588,3.66071C14.1198,3.42857,13.7629,3.23214,13.406,3.07143L13.1027,1.01786C13.0134,0.428571,12.5138,0,11.9071,0L8.08834,0C7.48162,0,6.98197,0.428572,6.89275,1L6.60724,3.07143C6.25035,3.23214,5.9113,3.42857,5.55441,3.66071L3.53798,2.875C3.39522,2.82143,3.25247,2.80357,3.10971,2.80357C2.68144,2.80357,2.27102,3.01786,2.07473,3.39286L0.165359,6.60714C-0.137998,7.10714,-0.0130862,7.76786,0.450872,8.125L2.1461,9.41071C2.12826,9.625,2.11041,9.82143,2.11041,10C2.11041,10.1786,2.11041,10.375,2.1461,10.5893L0.450872,11.875C-0.0130861,12.2321,-0.137998,12.8571,0.165359,13.3929L2.05688,16.5893C2.27102,16.9643,2.68144,17.1964,3.10971,17.1964C3.25247,17.1964,3.37738,17.1786,3.52013,17.125L5.53657,16.3393C5.87561,16.5714,6.2325,16.7679,6.58939,16.9286L6.89275,18.9821C6.96413,19.5536,7.48162,20,8.08834,20L11.9071,20C12.5138,20,13.0134,19.5714,13.1027,19L13.406,16.9286C13.7629,16.7679,14.1019,16.5714,14.4588,16.3393L16.4753,17.125C16.618,17.1786,16.7608,17.1964,16.9035,17.1964C17.3318,17.1964,17.7422,16.9821,17.9385,16.6071L19.8479,13.375C20.1334,12.8571,20.0085,12.2321,19.5445,11.875ZM14.2804,10C14.2804,12.3571,12.3532,14.2857,9.9977,14.2857C7.64222,14.2857,5.71501,12.3571,5.71501,10C5.71501,7.64286,7.64222,5.71429,9.9977,5.71429C12.3532,5.71429,14.2804,7.64286,14.2804,10Z"
  136. fill="#FFFFFF"
  137. fill-opacity="1"
  138. />
  139. </g>
  140. </svg>
  141. <p>消毒设置</p>
  142. </div>
  143. <p>SET</p>
  144. </div>
  145. <div class="set_form">
  146. <!-- <p class="textP">{{ settingStore.sprinklerPumpGPM }}</p> -->
  147. <div class="log" @click="showLogPicker">{{ logVal }}</div>
  148. </div>
  149. <svg
  150. xmlns="http://www.w3.org/2000/svg"
  151. xmlns:xlink="http://www.w3.org/1999/xlink"
  152. fill="none"
  153. version="1.1"
  154. width="340"
  155. height="108"
  156. viewBox="0 0 340 108"
  157. v-if="[1, 2, 3, 4].includes(operatorStore.disinfectStatus)"
  158. @click="stopDisinfectStatus"
  159. >
  160. <defs>
  161. <filter
  162. id="master_svg0_116_3964"
  163. filterUnits="objectBoundingBox"
  164. color-interpolation-filters="sRGB"
  165. x="0"
  166. y="0"
  167. width="164"
  168. height="57"
  169. >
  170. <feFlood flood-opacity="0" result="BackgroundImageFix" />
  171. <feColorMatrix
  172. in="SourceAlpha"
  173. type="matrix"
  174. values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
  175. />
  176. <feOffset dy="2" dx="0" />
  177. <feGaussianBlur stdDeviation="0" />
  178. <feColorMatrix
  179. type="matrix"
  180. values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.10000000149011612 0"
  181. />
  182. <feBlend
  183. mode="normal"
  184. in2="BackgroundImageFix"
  185. result="effect1_dropShadow"
  186. />
  187. <feBlend
  188. mode="normal"
  189. in="SourceGraphic"
  190. in2="effect1_dropShadow"
  191. result="shape"
  192. />
  193. </filter>
  194. <filter
  195. id="master_svg1_116_3968"
  196. filterUnits="objectBoundingBox"
  197. color-interpolation-filters="sRGB"
  198. x="0"
  199. y="0"
  200. width="52"
  201. height="54"
  202. >
  203. <feFlood flood-opacity="0" result="BackgroundImageFix" />
  204. <feColorMatrix
  205. in="SourceAlpha"
  206. type="matrix"
  207. values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
  208. />
  209. <feOffset dy="2" dx="0" />
  210. <feGaussianBlur stdDeviation="0" />
  211. <feColorMatrix
  212. type="matrix"
  213. values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.10000000149011612 0"
  214. />
  215. <feBlend
  216. mode="normal"
  217. in2="BackgroundImageFix"
  218. result="effect1_dropShadow"
  219. />
  220. <feBlend
  221. mode="normal"
  222. in="SourceGraphic"
  223. in2="effect1_dropShadow"
  224. result="shape"
  225. />
  226. </filter>
  227. </defs>
  228. <g>
  229. <g style="opacity: 0.20000000298023224">
  230. <rect
  231. x="0"
  232. y="0"
  233. width="340"
  234. height="108"
  235. rx="16"
  236. fill="#FA1C1C"
  237. fill-opacity="1"
  238. />
  239. </g>
  240. <g>
  241. <rect
  242. x="4"
  243. y="4"
  244. width="332"
  245. height="100"
  246. rx="14"
  247. fill="#FA1C1C"
  248. fill-opacity="1"
  249. />
  250. <rect
  251. x="5"
  252. y="5"
  253. width="330"
  254. height="98"
  255. rx="13"
  256. fill-opacity="0"
  257. stroke-opacity="1"
  258. stroke="#B71212"
  259. fill="none"
  260. stroke-width="2"
  261. />
  262. </g>
  263. <g>
  264. <g filter="url(#master_svg0_116_3964)">
  265. <path
  266. d="M130.01061352539062,67.294L130.73261352539063,71.9692C134.79861352539064,71.094,140.11861352539063,70.068,145.09661352539064,68.96600000000001L144.7166135253906,64.71000000000001C139.39661352539062,65.69800000000001,133.77261352539062,66.72399999999999,130.01061352539062,67.294ZM131.18861352539062,54.146C131.83461352539064,53.879999999999995,132.78461352539063,53.614000000000004,136.2046135253906,53.234C134.9126135253906,54.944,133.81061352539064,56.274,133.20261352539063,56.844C131.91061352539063,58.212,131.07461352539062,59.01,130.01061352539062,59.238C130.54261352539064,60.492,131.30261352539063,62.696,131.53061352539063,63.608C132.63261352539064,63.038,134.34261352539062,62.582,144.67861352539063,60.758C144.52661352539062,59.77,144.4126135253906,58.022,144.45061352539062,56.806L137.8766135253906,57.794C140.57461352539062,54.792,143.19661352539063,51.296,145.32461352539062,47.8L141.29661352539063,45.178C140.61261352539063,46.507999999999996,139.81461352539063,47.876000000000005,139.01661352539062,49.168L135.78661352539064,49.396C137.91461352539062,46.546,139.9666135253906,43.05,141.48661352539062,39.6591L136.77461352539063,37.715199999999996C135.36861352539063,41.9848,132.82261352539064,46.432,131.98661352539062,47.572C131.1506135253906,48.712,130.4666135253906,49.472,129.63061352539063,49.7C130.20061352539062,50.954,130.9606135253906,53.196,131.18861352539062,54.146ZM152.65861352539062,37.7532L152.65861352539062,42.442L144.64061352539062,42.442L144.64061352539062,46.812L152.65861352539062,46.812L152.65861352539062,50.992000000000004L145.66661352539063,50.992000000000004L145.66661352539063,55.324L164.43861352539062,55.324L164.43861352539062,50.992000000000004L157.40861352539062,50.992000000000004L157.40861352539062,46.812L165.35061352539063,46.812L165.35061352539063,42.442L157.40861352539062,42.442L157.40861352539062,37.7532L152.65861352539062,37.7532ZM146.57861352539064,58.136L146.57861352539064,73.4613L151.02461352539063,73.4613L151.02461352539063,71.816L159.08061352539062,71.816L159.08061352539062,73.3081L163.75461352539062,73.3081L163.75461352539062,58.136L146.57861352539064,58.136ZM151.02461352539063,67.712L151.02461352539063,62.24L159.08061352539062,62.24L159.08061352539062,67.712L151.02461352539063,67.712ZM176.02861352539063,48.522L176.02861352539063,60.796L184.92061352539062,60.796C181.57661352539063,64.1448,176.71261352539062,67.1129,171.96261352539062,68.7493C172.98861352539063,69.7005,174.39461352539064,71.4508,175.11661352539062,72.5926C179.48661352539062,70.7663,183.89461352539064,67.7601,187.39061352539062,64.2207L187.39061352539062,73.5058L192.14061352539062,73.5058L192.14061352539062,63.9548C195.63661352539063,67.6455,200.08261352539063,70.7663,204.52861352539063,72.6686C205.25061352539063,71.4508,206.7326135253906,69.5865,207.79661352539063,68.6353C203.04661352539063,67.0369,198.14461352539064,64.0687,194.80061352539065,60.796L203.95861352539063,60.796L203.95861352539063,48.522L192.14061352539062,48.522L192.14061352539062,45.519999999999996L206.20061352539062,45.519999999999996L206.20061352539062,41.34L192.14061352539062,41.34L192.14061352539062,37.7923L187.39061352539062,37.7923L187.39061352539062,41.34L173.52061352539062,41.34L173.52061352539062,45.519999999999996L187.39061352539062,45.519999999999996L187.39061352539062,48.522L176.02861352539063,48.522ZM180.4366135253906,52.55L187.39061352539062,52.55L187.39061352539062,56.768L180.4366135253906,56.768L180.4366135253906,52.55ZM192.14061352539062,52.55L199.28461352539063,52.55L199.28461352539063,56.768L192.14061352539062,56.768L192.14061352539062,52.55ZM244.58061352539062,38.626599999999996C243.82061352539063,40.9481,242.33861352539063,43.9929,241.23661352539062,45.9344L245.18861352539062,47.418800000000005C246.36661352539062,45.5918,247.77261352539062,42.8891,248.98861352539063,40.2249L244.58061352539062,38.626599999999996ZM225.65661352539064,40.6055C227.1386135253906,42.8131,228.62061352539064,45.781800000000004,229.1146135253906,47.6854L233.2566135253906,45.7438C232.64861352539063,43.8029,231.05261352539063,40.9861,229.532613525
  267. fill="#FFFFFF"
  268. fill-opacity="1"
  269. />
  270. </g>
  271. <g filter="url(#master_svg1_116_3968)">
  272. <g>
  273. <path
  274. d="M75.9936,28.0000519983C90.3686,27.970737,102.0293,39.6314,101.9999,54.0064C101.9999,68.31819999999999,90.3086,79.85419999999999,75.9902,79.9996C69.0876,80.0398,62.4568,77.3118,57.58089,72.4257C52.69333,67.5462,49.9632804,60.9127,50.000373098,54.0064C49.984627,47.104,52.72256,40.4804,57.60733,35.60369C62.4812,30.72514,69.0976,27.9889288,75.9936,28.0000519983ZM75.9935,31.0534C63.3191,31.0534,53.04642,41.332,53.05373,54.0064C52.99297,66.7019,63.2981,77.0099,75.9935,76.9528C88.7456,76.9528,99.0887,66.6065,99.0887,54.0064C99.0887,41.3866,88.7456,31.0534,75.9935,31.0534ZM82.9465,62.3801C83.8553,62.3801,84.5988,61.6365,84.5988,60.7278L84.5988,47.2719C84.5988,46.3632,83.8553,45.6197,82.9465,45.6197L69.0577,45.6197C68.1452,45.6197,67.4055,46.3594,67.4055,47.2719L67.4055,60.7278C67.4055,61.6403,68.1452,62.3801,69.0577,62.3801L82.9465,62.3801Z"
  275. fill-rule="evenodd"
  276. fill="#FFFFFF"
  277. fill-opacity="1"
  278. />
  279. </g>
  280. </g>
  281. </g>
  282. </g>
  283. </svg>
  284. <svg
  285. v-else
  286. @click="startDisinfect"
  287. xmlns="http://www.w3.org/2000/svg"
  288. xmlns:xlink="http://www.w3.org/1999/xlink"
  289. fill="none"
  290. version="1.1"
  291. width="340"
  292. height="108"
  293. viewBox="0 0 340 108"
  294. >
  295. <defs>
  296. <filter
  297. id="master_svg0_95_3758"
  298. filterUnits="objectBoundingBox"
  299. color-interpolation-filters="sRGB"
  300. x="0"
  301. y="0"
  302. width="164"
  303. height="57"
  304. >
  305. <feFlood flood-opacity="0" result="BackgroundImageFix" />
  306. <feColorMatrix
  307. in="SourceAlpha"
  308. type="matrix"
  309. values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
  310. />
  311. <feOffset dy="2" dx="0" />
  312. <feGaussianBlur stdDeviation="0" />
  313. <feColorMatrix
  314. type="matrix"
  315. values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.10000000149011612 0"
  316. />
  317. <feBlend
  318. mode="normal"
  319. in2="BackgroundImageFix"
  320. result="effect1_dropShadow"
  321. />
  322. <feBlend
  323. mode="normal"
  324. in="SourceGraphic"
  325. in2="effect1_dropShadow"
  326. result="shape"
  327. />
  328. </filter>
  329. <filter
  330. id="master_svg1_95_4241"
  331. filterUnits="objectBoundingBox"
  332. color-interpolation-filters="sRGB"
  333. x="0"
  334. y="0"
  335. width="60"
  336. height="62"
  337. >
  338. <feFlood flood-opacity="0" result="BackgroundImageFix" />
  339. <feColorMatrix
  340. in="SourceAlpha"
  341. type="matrix"
  342. values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
  343. />
  344. <feOffset dy="2" dx="0" />
  345. <feGaussianBlur stdDeviation="0" />
  346. <feColorMatrix
  347. type="matrix"
  348. values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.10000000149011612 0"
  349. />
  350. <feBlend
  351. mode="normal"
  352. in2="BackgroundImageFix"
  353. result="effect1_dropShadow"
  354. />
  355. <feBlend
  356. mode="normal"
  357. in="SourceGraphic"
  358. in2="effect1_dropShadow"
  359. result="shape"
  360. />
  361. </filter>
  362. <clipPath id="master_svg2_95_2610">
  363. <rect x="46" y="24" width="60" height="60" rx="0" />
  364. </clipPath>
  365. </defs>
  366. <g>
  367. <g style="opacity: 0.20000000298023224">
  368. <rect
  369. x="0"
  370. y="0"
  371. width="340"
  372. height="108"
  373. rx="16"
  374. fill="#17F179"
  375. fill-opacity="1"
  376. />
  377. </g>
  378. <g>
  379. <rect
  380. x="4"
  381. y="4"
  382. width="332"
  383. height="100"
  384. rx="14"
  385. fill="#17F179"
  386. fill-opacity="1"
  387. />
  388. <rect
  389. x="5"
  390. y="5"
  391. width="330"
  392. height="98"
  393. rx="13"
  394. fill-opacity="0"
  395. stroke-opacity="1"
  396. stroke="#1AD66E"
  397. fill="none"
  398. stroke-width="2"
  399. />
  400. </g>
  401. <g>
  402. <g filter="url(#master_svg0_95_3758)">
  403. <path
  404. d="M152.77261352539062,44.304L152.77261352539062,53.614000000000004L144.07061352539063,53.614000000000004L144.07061352539063,52.512L144.07061352539063,44.304L152.77261352539062,44.304ZM130.77061352539062,53.614000000000004L130.77061352539062,57.984L138.9786135253906,57.984C138.25661352539063,62.4733,136.2046135253906,66.88669999999999,130.6566135253906,70.2342C131.79661352539063,70.9948,133.54461352539062,72.6312,134.34261352539062,73.6584C140.9546135253906,69.47370000000001,143.12061352539064,63.7285,143.80461352539064,57.984L152.77261352539062,57.984L152.77261352539062,73.5058L157.56061352539064,73.5058L157.56061352539064,57.984L165.3886135253906,57.984L165.3886135253906,53.614000000000004L157.56061352539064,53.614000000000004L157.56061352539064,44.304L164.28661352539064,44.304L164.28661352539064,39.972L132.02461352539063,39.972L132.02461352539063,44.304L139.35861352539064,44.304L139.35861352539064,52.474000000000004L139.35861352539064,53.614000000000004L130.77061352539062,53.614000000000004ZM187.88461352539062,57.489999999999995L187.88461352539062,73.4613L191.98861352539063,73.4613L191.98861352539063,71.93L201.29861352539064,71.93L201.29861352539064,73.42269999999999L205.63061352539063,73.42269999999999L205.63061352539063,57.489999999999995L187.88461352539062,57.489999999999995ZM191.98861352539063,67.902L191.98861352539063,61.518L201.29861352539064,61.518L201.29861352539064,67.902L191.98861352539063,67.902ZM187.23861352539063,55.361999999999995C188.68261352539062,54.83,190.58261352539063,54.602000000000004,203.31261352539065,53.5C203.73061352539062,54.412,204.07261352539064,55.286,204.30061352539065,56.046L208.21461352539063,53.956C207.11261352539063,50.878,204.52861352539063,46.47,201.90661352539064,43.159800000000004L198.29661352539063,44.9494C199.32261352539064,46.318,200.34861352539062,47.914,201.29861352539064,49.510000000000005L192.25461352539062,50.117999999999995C194.38261352539064,46.888000000000005,196.51061352539062,42.9692,198.14461352539064,39.0463L193.39461352539064,37.79C191.79861352539064,42.512100000000004,189.10061352539063,47.458,188.18861352539062,48.75C187.31461352539063,50.08,186.59261352539062,50.916,185.75661352539063,51.144C186.28861352539062,52.284,187.01061352539062,54.488,187.23861352539063,55.361999999999995ZM178.8406135253906,49.510000000000005L181.34861352539062,49.510000000000005C181.00661352539063,53.082,180.4366135253906,56.274,179.56261352539062,59.048L177.20661352539062,57.072C177.77661352539062,54.754000000000005,178.34661352539064,52.17,178.8406135253906,49.510000000000005ZM172.60861352539064,58.554C174.28061352539063,59.922,176.14261352539063,61.594,177.89061352539062,63.266C176.40861352539062,66.22999999999999,174.43261352539062,68.434,171.9246135253906,69.80199999999999C172.83661352539062,70.676,174.01461352539062,72.313,174.58461352539064,73.42269999999999C177.24461352539063,71.664,179.37261352539062,69.422,181.04461352539062,66.49600000000001C182.10861352539064,67.674,182.98261352539063,68.77600000000001,183.62861352539062,69.76400000000001L186.3646135253906,66.03999999999999C185.5666135253906,64.9,184.35061352539063,63.57,182.98261352539063,62.202C184.50261352539061,57.870000000000005,185.3766135253906,52.436,185.71861352539062,45.596000000000004L183.09661352539064,45.254000000000005L182.37461352539063,45.33L179.60061352539063,45.33C180.01861352539063,42.8932,180.36061352539062,40.4939,180.6266135253906,38.2472L176.33261352539063,37.9806C176.14261352539063,40.265299999999996,175.83861352539063,42.8167,175.45861352539063,45.33L172.22861352539064,45.33L172.22861352539064,49.510000000000005L174.73661352539062,49.510000000000005C174.0906135253906,52.891999999999996,173.33061352539062,56.084,172.60861352539064,58.554ZM244.58061352539062,38.626599999999996C243.82061352539063,40.9481,242.33861352539063,43.9929,241.23661352539062,45.9344L245.18861352539062,47.418800000000005C246.36661352539062,45.5918,247.77261352539062,42.8891,248.98861352539063,40.2249L244.58061352539062,38.626599999999996ZM225.65661352539064,40.6055C227.1386135253906,42.8131,228.62061352539064,45
  405. fill="#FFFFFF"
  406. fill-opacity="1"
  407. />
  408. </g>
  409. <g filter="url(#master_svg1_95_4241)">
  410. <g clip-path="url(#master_svg2_95_2610)">
  411. <g>
  412. <path
  413. d="M75.9999875,31.6171875C79.0233875,31.6171875,81.95428749999999,32.208397500000004,84.71108749999999,33.3744175C87.37598750000001,34.5017575,89.7700875,36.1160175,91.8267875,38.1726875C93.8833875,40.2292875,95.4982875,42.6233875,96.6249875,45.288287499999996C97.79158749999999,48.0456875,98.3827875,50.9765875,98.3827875,53.9999875C98.3827875,57.0233875,97.79158749999999,59.9542875,96.6255875,62.7110875C95.4982875,65.37598750000001,93.8839875,67.7700875,91.8273875,69.8267875C89.77068750000001,71.8833875,87.3765875,73.4982875,84.7116875,74.6249875C81.95428749999999,75.79158749999999,79.0233875,76.3827875,75.9999875,76.3827875C72.9765875,76.3827875,70.0456875,75.79158749999999,67.2888875,74.6255875C64.6239875,73.4982875,62.229887500000004,71.8839875,60.1732875,69.8273875C58.1165975,67.77068750000001,56.5017575,65.3765875,55.3749975,62.7116875C54.208397500000004,59.9542875,53.6171875,57.0233875,53.6171875,53.9999875C53.6171875,50.9765875,54.208397500000004,48.0456875,55.3744175,45.2888875C56.5017575,42.6239875,58.1160175,40.229887500000004,60.1726875,38.1732875C62.2292875,36.1165975,64.6234875,34.5017575,67.2882875,33.3749975C70.0456875,32.208397500000004,72.9765875,31.6171875,75.9999875,31.6171875ZM75.9999875,27.8671875C61.5671875,27.86718660593,49.8671875,39.5671875,49.8671875,53.9999875C49.8671875,68.4327875,61.5671875,80.1327875,75.9999875,80.1327875C90.4327875,80.1327875,102.1327875,68.4327875,102.1327875,53.9999875C102.1327875,39.5671875,90.4327875,27.86718660593,75.9999875,27.8671875ZM61.4101875,53.9999875C61.4101875,62.0577875,67.94228749999999,68.5898875,75.9999875,68.5898875C84.0577875,68.5898875,90.5898875,62.0577875,90.5898875,53.9999875C90.5898875,45.9422875,84.0577875,39.4101875,75.9999875,39.4101875C67.94228749999999,39.4101875,61.4101875,45.9422875,61.4101875,53.9999875Z"
  414. fill="#FFFFFF"
  415. fill-opacity="1"
  416. />
  417. </g>
  418. </g>
  419. </g>
  420. </g>
  421. </g>
  422. </svg>
  423. <div class="progress">
  424. <p class="title">预计剩余时间</p>
  425. <div class="time">
  426. <!-- 如果没有id则为未开始 -->
  427. {{
  428. operatorStore.disinfection_id == ''
  429. ? '未开始'
  430. : operatorStore.estimatedRemainingTimeS == 0
  431. ? '已结束'
  432. : operatorStore.disinfectStatus == 1
  433. ? `${time_To_hhmmss(operatorStore.estimatedRemainingTimeS)}`
  434. : operatorStore.estimatedRemainingTimeS < 0
  435. ? '评估中'
  436. : `${time_To_hhmmss(operatorStore.estimatedRemainingTimeS)}`
  437. }}
  438. </div>
  439. </div>
  440. </div>
  441. <!-- <WarnModal /> -->
  442. <LogPicker
  443. v-if="logVisible"
  444. :hiddenLogVisible="hiddenLogVisible"
  445. :changeLogVal="changeLogVal"
  446. :logVal="logVal"
  447. />
  448. <PreInstallPicker
  449. v-if="preVisible"
  450. :hiddenPreVisible="hiddenPreVisible"
  451. :changePreVal="changePreVal"
  452. :preVal="preVal"
  453. :realStart="realStart"
  454. />
  455. <DisinfectModal
  456. v-if="disinfectWarnVisible"
  457. :hideDisinfectModal="hideDisinfectModal"
  458. />
  459. <van-overlay :show="operatorStore.showStartReady" z-index="3">
  460. <div class="wrapper" @click.stop>
  461. <div class="block">
  462. <van-loading />
  463. <p class="shutdown_text">准备消毒中</p>
  464. </div>
  465. </div>
  466. </van-overlay>
  467. <van-overlay :show="operatorStore.showStopReady" z-index="3">
  468. <div class="wrapper" @click.stop>
  469. <div class="block">
  470. <van-loading />
  471. <p class="shutdown_text">结束消毒中</p>
  472. </div>
  473. </div>
  474. </van-overlay>
  475. </div>
  476. </template>
  477. <script setup>
  478. import LogPicker from 'cpns/dialogs/LogPicker'
  479. import PreInstallPicker from 'cpns/dialogs/PreInstallPicker'
  480. import DisinfectModal from 'cpns/dialogs/DisinfectModal'
  481. import WarnModal from 'cpns/dialogs/WarnModal'
  482. import DisinfectantLiquidInfo from 'cpns/info/DisinfectantLiquidInfo'
  483. import EnvironmentInfo from 'cpns/info/EnvironmentInfo'
  484. import { ref, watch, onMounted, onUnmounted } from 'vue'
  485. import { useOperatorStore, useWebSocketStore, useSettingStore } from '@/store'
  486. import { startDisinfectionJSON, getStateJSON } from '@/mock/command'
  487. import { showSuccessToast, showFailToast } from 'vant'
  488. import { time_To_hhmmss } from '@/utils'
  489. const operatorStore = useOperatorStore()
  490. const webSocketStore = useWebSocketStore()
  491. const settingStore = useSettingStore()
  492. const disinfectWarnVisible = ref(false)
  493. const preVisible = ref(false)
  494. const preVal = ref('2')
  495. const hiddenPreVisible = () => {
  496. preVisible.value = false
  497. }
  498. // 结束消毒
  499. const stopDisinfectStatus = () => {
  500. disinfectWarnVisible.value = true
  501. }
  502. const hideDisinfectModal = () => {
  503. disinfectWarnVisible.value = false
  504. }
  505. const props = defineProps({
  506. changeShowOperator: {
  507. type: Function,
  508. },
  509. handleShowKeyBoard: {
  510. type: Function,
  511. },
  512. hideKeyBoard: {
  513. type: Function,
  514. },
  515. input: {
  516. type: String,
  517. },
  518. })
  519. const toDetail = () => {
  520. // 判断当前消毒任务是否开始,如果开始时才生效 否则点击不生效
  521. if (operatorStore.disinfectStatus != 0) {
  522. props.changeShowOperator(false)
  523. }
  524. }
  525. const logVisible = ref(false)
  526. const logVal = ref(localStorage.getItem('logVal') || '6')
  527. const roomSize = ref(0)
  528. watch(() => {
  529. if (props.input) {
  530. roomSize.value = props.input?.match(/\d+/g)[0]
  531. } else {
  532. roomSize.value = 0
  533. }
  534. })
  535. const changeLogVal = val => {
  536. logVal.value = val
  537. localStorage.setItem('logVal', val)
  538. logVisible.value = false
  539. }
  540. const changePreVal = val => {
  541. preVal.value = val
  542. preVisible.value = false
  543. }
  544. const startDisinfect = () => {
  545. // 改变开始消毒状态 如果已经开始则不可点击
  546. // 选择预设 而后开始消毒
  547. // preVisible.value = true
  548. operatorStore.updateShowStartReady(true)
  549. realStart()
  550. }
  551. const realStart = () => {
  552. localStorage.setItem('logVal', logVal.value)
  553. if (
  554. operatorStore.disinfectStatus == 0 ||
  555. operatorStore.disinfectStatus == 5
  556. ) {
  557. localStorage.removeItem('bin')
  558. localStorage.removeItem('envir1')
  559. localStorage.removeItem('envir2')
  560. webSocketStore.sendCommandMsg(
  561. startDisinfectionJSON(parseInt(logVal.value), parseInt(roomSize.value)),
  562. )
  563. props.changeShowOperator(false)
  564. }
  565. }
  566. const showLogPicker = () => {
  567. if (![1, 2].includes(operatorStore.disinfectStatus)) {
  568. logVisible.value = true
  569. }
  570. }
  571. const timer = ref(null)
  572. onMounted(() => {
  573. timer.value = setInterval(() => {
  574. webSocketStore.sendCommandMsg(getStateJSON)
  575. }, 1000)
  576. })
  577. const hiddenLogVisible = () => {
  578. logVisible.value = false
  579. }
  580. onUnmounted(() => {
  581. timer.value = null
  582. })
  583. </script>
  584. <style lang="scss" scoped>
  585. .operator_main_content {
  586. margin-bottom: 19px;
  587. height: 580px;
  588. box-sizing: border-box;
  589. display: flex;
  590. align-items: center;
  591. .left_contaienr {
  592. margin-right: 30px;
  593. width: 766px;
  594. height: 580px;
  595. box-sizing: border-box;
  596. border-radius: 16px;
  597. background: #ffffff;
  598. padding: 20px;
  599. .info_cards {
  600. width: 726px;
  601. height: 470px;
  602. box-sizing: border-box;
  603. display: grid;
  604. grid-template-columns: repeat(2, 1fr);
  605. grid-template-rows: repeat(2, 1fr);
  606. column-gap: 20px;
  607. row-gap: 20px;
  608. margin-bottom: 20px;
  609. .card {
  610. width: 353px;
  611. height: 225px;
  612. border-radius: 17.5px;
  613. background: #06518b;
  614. }
  615. }
  616. .warn_wrap {
  617. display: flex;
  618. align-items: center;
  619. justify-content: space-between;
  620. box-sizing: border-box;
  621. width: 726px;
  622. height: 50px;
  623. border-radius: 6px;
  624. .warn_text {
  625. font-family: Source Han Sans CN;
  626. font-size: 12px;
  627. font-weight: 500;
  628. letter-spacing: 0.1em;
  629. color: #fa1c1c;
  630. background: #f6f6f6;
  631. width: 468px;
  632. height: 50px;
  633. border-radius: 6px;
  634. display: flex;
  635. align-items: center;
  636. padding-left: 22px;
  637. }
  638. .detail_btn {
  639. width: 105px;
  640. height: 40px;
  641. border-radius: 20px;
  642. background: #06518b;
  643. display: flex;
  644. align-items: center;
  645. justify-content: center;
  646. font-family: Source Han Sans CN;
  647. font-size: 18px;
  648. font-weight: normal;
  649. letter-spacing: 0.1em;
  650. color: #ffffff;
  651. }
  652. }
  653. }
  654. .right_container {
  655. height: 580px;
  656. box-sizing: border-box;
  657. border-radius: 16px;
  658. background: #ffffff;
  659. flex: 1;
  660. padding: 42px;
  661. padding-top: 32px;
  662. .setting_title {
  663. width: 340px;
  664. height: 45px;
  665. border-radius: 23px;
  666. background: #06518b;
  667. padding: 0 24px;
  668. box-sizing: border-box;
  669. display: flex;
  670. align-items: center;
  671. justify-content: space-between;
  672. font-family: Source Han Sans CN;
  673. font-size: 20px;
  674. font-weight: normal;
  675. letter-spacing: 0.1em;
  676. color: #ffffff;
  677. margin-bottom: 41px;
  678. .title_wrap {
  679. display: flex;
  680. align-items: center;
  681. p {
  682. margin-left: 12px;
  683. }
  684. }
  685. }
  686. .set_form {
  687. width: 340px;
  688. height: 153px;
  689. box-sizing: border-box;
  690. margin-bottom: 26px;
  691. overflow: hidden;
  692. background: url(../assets/img/operator/form.png) no-repeat;
  693. background-size: 100% 100%;
  694. position: relative;
  695. .textP {
  696. font-family: Source Han Sans CN;
  697. font-size: 28px;
  698. font-weight: bold;
  699. line-height: normal;
  700. letter-spacing: 0.02em;
  701. color: #17f179;
  702. position: absolute;
  703. left: 188px;
  704. top: 3px;
  705. width: 68px;
  706. height: 41px;
  707. text-align: center;
  708. }
  709. .log {
  710. position: absolute;
  711. bottom: 30px;
  712. left: 0px;
  713. width: 240px;
  714. height: 44px;
  715. text-align: center;
  716. display: flex;
  717. align-items: center;
  718. justify-content: center;
  719. font-family: Source Han Sans CN;
  720. font-size: 24px;
  721. font-weight: 500;
  722. letter-spacing: 0.06em;
  723. color: #0e0e0e;
  724. }
  725. }
  726. .start {
  727. margin-bottom: 19px;
  728. width: 340px;
  729. height: 45px;
  730. border-radius: 23px;
  731. background: #06518b;
  732. display: flex;
  733. align-items: center;
  734. justify-content: center;
  735. font-family: Source Han Sans CN;
  736. font-size: 14px;
  737. font-weight: normal;
  738. letter-spacing: 0.1em;
  739. color: #ffffff;
  740. position: relative;
  741. overflow: hidden;
  742. }
  743. .cant {
  744. background: #f4f4f4;
  745. }
  746. .progress {
  747. width: 340px;
  748. height: 114px;
  749. border-radius: 16px;
  750. opacity: 1;
  751. background: #f6f6f6;
  752. box-sizing: border-box;
  753. padding: 27px 24px 18px 27px;
  754. margin-top: 30px;
  755. .title {
  756. font-family: Source Han Sans CN;
  757. font-size: 12px;
  758. font-weight: 350;
  759. letter-spacing: 0.06em;
  760. color: #9e9e9e;
  761. margin-bottom: 13px;
  762. }
  763. .time {
  764. text-align: center;
  765. padding: 2px 10px;
  766. font-family: Source Han Sans CN;
  767. font-size: 28px;
  768. font-weight: bold;
  769. line-height: normal;
  770. letter-spacing: 0.1em;
  771. color: #000;
  772. }
  773. .tube {
  774. width: 292px;
  775. height: 14px;
  776. border-radius: 7px;
  777. background: #ffffff;
  778. margin-bottom: 11px;
  779. position: relative;
  780. overflow: hidden;
  781. .pro {
  782. position: absolute;
  783. left: 0;
  784. top: 0;
  785. height: 14px;
  786. width: var(--width);
  787. border-radius: 7px;
  788. background: #06518b;
  789. }
  790. }
  791. .num {
  792. display: flex;
  793. justify-content: flex-end;
  794. font-family: Source Han Sans CN;
  795. font-size: 10px;
  796. font-weight: normal;
  797. letter-spacing: 0.06em;
  798. color: #9e9e9e;
  799. }
  800. }
  801. }
  802. }
  803. .wrapper {
  804. display: flex;
  805. align-items: center;
  806. justify-content: center;
  807. height: 100%;
  808. }
  809. .block {
  810. width: 120px;
  811. height: 120px;
  812. display: flex;
  813. flex-direction: column;
  814. padding: 16px;
  815. align-items: center;
  816. justify-content: center;
  817. .shutdown_text {
  818. margin-top: 24px;
  819. font-family: Source Han Sans CN;
  820. font-size: 18px;
  821. font-weight: normal;
  822. line-height: normal;
  823. letter-spacing: 0.06em;
  824. color: #fff;
  825. white-space: nowrap;
  826. }
  827. }
  828. </style>