From 0f5022bcf347d3185033e54e3d8431d697eeb36d Mon Sep 17 00:00:00 2001 From: guoapeng Date: Sat, 14 Jun 2025 15:25:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20debug=20=E7=9C=9F=E7=A9=BA=E6=B3=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libs/utils.ts | 2 + src/views/debug/index.vue | 161 +++++++++++++++++++++++++++------------------- 2 files changed, 97 insertions(+), 66 deletions(-) diff --git a/src/libs/utils.ts b/src/libs/utils.ts index b099f6c..502c2f8 100644 --- a/src/libs/utils.ts +++ b/src/libs/utils.ts @@ -56,6 +56,8 @@ export const cmdNameMap = { filled_solution_start: '开始预充', filled_solution_stop: '停止预充', debug_show_smog: '展示烟雾', + debug_vacuum_valve_open: '开启真空泵阀门', + debug_vacuum_valve_close: '关闭真空泵阀门', } export const generateColors = (count: number): string[] => { diff --git a/src/views/debug/index.vue b/src/views/debug/index.vue index 4a3ec28..bc3247c 100644 --- a/src/views/debug/index.vue +++ b/src/views/debug/index.vue @@ -75,6 +75,30 @@ const debug_pallet_elevator_reset = async () => { await debugStore.sendControl(params) } +const debug_vacuum_valve_open = async () => { + currentCommandId = Date.now().toString() + const params = { + commandId: currentCommandId, + command: 'debug_vacuum_valve_open', + params: { + heatId: debugStore.formData.heatArea.index, + }, + } + await debugStore.sendControl(params) +} + +const debug_vacuum_valve_close = async () => { + currentCommandId = Date.now().toString() + const params = { + commandId: currentCommandId, + command: 'debug_vacuum_valve_close', + params: { + heatId: debugStore.formData.heatArea.index, + }, + } + await debugStore.sendControl(params) +} + const debug_heater_start = async () => { currentCommandId = Date.now().toString() const params = { @@ -1174,79 +1198,84 @@ const savePositionVisible = ref(false) - 加热棒 + 真空泵
- - - - - - - 开始加热 + + 开启阀门 - - 停止加热 - - - - - - - - - - - -
- 冷阱 -
- - - - - - - - - 启动制冷 - - - 停止制冷 - - - - - 启动循环 - - - 停止循环 + + 关闭阀门 -
- - - - - - - - - - 风扇 -
- - 打开风扇 - - - 关闭风扇 - + 加热棒 +
+ + + + + + + + + 开始加热 + + + 停止加热 + + + +
+ 冷阱 +
+ + + + + + + + + 启动制冷 + + + 停止制冷 + + + + + 启动循环 + + + 停止循环 + + + +
+ + + + + + + + + + 风扇 +
+ + 打开风扇 + + + 关闭风扇 + +