From 553787171f45867fd5ad8e62e535d7f9a70b39ad Mon Sep 17 00:00:00 2001 From: LiLongLong <13717757313@163.com> Date: Wed, 5 Mar 2025 19:48:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=80=E5=90=8E=E6=A3=80=E6=9F=A5bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/debug/index.vue | 123 ++++++++++++++++++++++++---------------------- 1 file changed, 65 insertions(+), 58 deletions(-) diff --git a/src/views/debug/index.vue b/src/views/debug/index.vue index feea625..f4a05a6 100644 --- a/src/views/debug/index.vue +++ b/src/views/debug/index.vue @@ -8,40 +8,42 @@
-
-
X轴:
- -
毫米
+
- 移动 - 停止 +
X轴:
+ +
毫米
+
+ 移动 + 停止 +
-
-
-
Y轴:
- -
毫米
-
- 移动 - 停止 +
+
Y轴:
+ +
毫米
+
+ 移动 + 停止 +
-
+
Z轴:
-
毫米
+
毫米
移动 - 停止 + 停止
@@ -50,8 +52,8 @@
- 指定电机转速 - + 电机转速 + X Y @@ -65,31 +67,31 @@ placeholder="" class="border-none outline-none h-[34px] bg-[#E8ECF7] text-primary font-medium rounded-md text-lg text-center w-[100px]" />毫米/秒
-
- 确定 -
+ + 确定 + - 电压控制器: - + 电压控制器: + - + 开启 - 关闭 + 关闭 - 注射泵: - + 注射泵: +
- 开始除湿 - 结束除湿 + 开始除湿 + 结束除湿
-
@@ -325,10 +327,11 @@ import { turnOffLightPanel, turnOnLightPanel, stopWash, - stopDehumidify, setMotorSpeed, type WashType, - startWash + startWash, + startDehumidify, + stopDehumidify, } from "@/services/globalCmd/globalCmd"; import type { BaseResponse } from "@/services/httpRequest"; import type { WorkType } from '../../services/globalCmd/cmdTypes'; @@ -347,7 +350,7 @@ const workForm = ref({ matrixFlowVelocity: 1, voltage: 1, needPower: false, - height: 6, + height: 15, movementSpeed: 10, position: [], }); @@ -421,12 +424,6 @@ const onControlValve = (type: ControlNitrogen, open: boolean) => { }); }; -const onStopDehumidify = () => { - stopDehumidify().then((res) => { - success(res); - }); -}; - function onStartWash(type: WashType) { startWash({ type }).then(res => { if (res.success) { @@ -533,6 +530,21 @@ function onTurnOffLightPanel() { }); } +//开始除湿 +const humidity = ref(0) +function onStartDehumidify(){ + startDehumidify({ humidity: humidity.value! }).then(res=>{ + success(res); + }) +} + +//停止除湿 +function onStopDehumidify(){ + stopDehumidify().then((res) => { + success(res); + }); +} + function success(data:BaseResponse) { if (data && data.msg == "ok") { @@ -550,13 +562,11 @@ div { background: linear-gradient(90deg, #0657c0 24%, #096ae0 101%); } .debug_axis { - height: 3rem; + height: 6rem; background: #fbfbfb; margin-left: 3.5rem; margin-right: 3.5rem; border-radius: 6px; - display: flex; - align-items: center; .axis { display: flex; @@ -569,20 +579,17 @@ div { display: flex; align-items: center; margin-left: 4rem; - margin-top: 2rem; + margin-top: 0.5rem; .debug_left { - width: 42vw; - height: 18.75rem; background: #fbfbfb; - height: 70vh; padding: 2rem; } .debug_right { - width: 42vw; - height: 70vh; - background: #fbfbfb; - margin-left: 2rem; - padding: 2rem; + width: 47vw; + background: #fbfbfb; + margin-left: 2rem; + padding: 2rem; + margin-top: -1rem; } }