From 0c87c9915fc219ed2b5e9c903f05e4cd3b9d9789 Mon Sep 17 00:00:00 2001 From: guoapeng Date: Tue, 29 Apr 2025 17:04:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8C=87=E4=BB=A4=E5=90=8D=E7=A7=B0?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.test | 4 ++-- src/libs/utils.ts | 34 +++++++++++++++++----------------- src/views/debug/index.vue | 34 +++++++++++++++++----------------- 3 files changed, 36 insertions(+), 36 deletions(-) diff --git a/.env.test b/.env.test index e45cade..87b732c 100644 --- a/.env.test +++ b/.env.test @@ -2,5 +2,5 @@ FT_NODE_ENV=test -FT_WS_URL=ws://192.168.1.200:8080/ws -FT_PROXY=http://192.168.1.200:8080 \ No newline at end of file +FT_WS_URL=ws://192.168.1.121:8080/ws +FT_PROXY=http://192.168.1.121:8080 \ No newline at end of file diff --git a/src/libs/utils.ts b/src/libs/utils.ts index 688ed9c..f49304f 100644 --- a/src/libs/utils.ts +++ b/src/libs/utils.ts @@ -17,23 +17,23 @@ export const sendControl = async (params: any, type: 'debug' | 'control' = 'cont } export const cmdNameMap = { - door_open: '开门', - door_close: '关门', - door_stop: '停止开关门', - liquid_arm_rotation: '加液机械臂启动', - liquid_arm_reset: '加液机械臂复位', - liquid_arm_stop: '加液机械臂停止', - liquid_pump_start: '启动加液泵', - liquid_pump_stop: '停止加液泵', - liquid_pump_pre_filling: '预充加液头', - liquid_pump_pre_evacuation: '排空加液头', - shaker_start: '摇匀', - shaker_stop: '停止摇匀', - pallet_elevator_lift_up: '托盘上升', - pallet_elevator_lift_down: '托盘下降', - pallet_elevator_stop: '托盘停止', - heater_start: '开始加热', - heater_stop: '停止加热', + debug_door_open: '开门', + debug_door_close: '关门', + debug_door_stop: '停止开关门', + debug_liquid_arm_rotation: '加液机械臂启动', + debug_liquid_arm_reset: '加液机械臂复位', + debug_liquid_arm_stop: '加液机械臂停止', + debug_liquid_pump_start: '启动加液泵', + debug_liquid_pump_stop: '停止加液泵', + debug_liquid_pump_pre_filling: '预充加液头', + debug_liquid_pump_pre_evacuation: '排空加液头', + debug_shaker_start: '摇匀', + debug_shaker_stop: '停止摇匀', + debug_pallet_elevator_lift_up: '托盘上升', + debug_pallet_elevator_lift_down: '托盘下降', + debug_pallet_elevator_stop: '托盘停止', + debug_heater_start: '开始加热', + debug_heater_stop: '停止加热', debug_heater_start_heat_maintaining: '启动恒温', debug_heater_stop_heat_maintaining: '停止恒温', debug_cold_trap_start_refrigeration: '启动制冷', diff --git a/src/views/debug/index.vue b/src/views/debug/index.vue index bc6dd37..bf41941 100644 --- a/src/views/debug/index.vue +++ b/src/views/debug/index.vue @@ -23,7 +23,7 @@ const receiveMessage = (data: Socket.NotificationData) => { const pallet_elevator_lift_up = async () => { const params = { - command: 'pallet_elevator_lift_up', + command: 'debug_pallet_elevator_lift_up', params: { index: debugStore.formData.heatArea.index, ...debugStore.formData.heatArea.heatMotorData, @@ -34,7 +34,7 @@ const pallet_elevator_lift_up = async () => { const pallet_elevator_lift_down = async () => { const params = { - command: 'pallet_elevator_lift_down', + command: 'debug_pallet_elevator_lift_down', params: { index: debugStore.formData.heatArea.index, ...debugStore.formData.heatArea.heatMotorData, @@ -45,7 +45,7 @@ const pallet_elevator_lift_down = async () => { const pallet_elevator_stop = async () => { const params = { - command: 'pallet_elevator_stop', + command: 'debug_pallet_elevator_stop', params: { index: debugStore.formData.heatArea.index, }, @@ -55,7 +55,7 @@ const pallet_elevator_stop = async () => { const heater_start = async () => { const params = { - command: 'heater_start', + command: 'debug_heater_start', params: { index: debugStore.formData.heatArea.index, ...debugStore.formData.heatArea.heatTemperature, @@ -65,7 +65,7 @@ const heater_start = async () => { } const heater_stop = async () => { const params = { - command: 'heater_stop', + command: 'debug_heater_stop', params: { index: debugStore.formData.heatArea.index, }, @@ -152,7 +152,7 @@ const debug_cover_elvator_stop = async () => { const liquid_arm_reset = async () => { const params = { - command: 'liquid_arm_reset', + command: 'debug_liquid_arm_reset', params: { target: ['largeArm', 'smallArm'], }, @@ -162,7 +162,7 @@ const liquid_arm_reset = async () => { const liquid_arm_rotation = async () => { const params = { - command: 'liquid_arm_rotation', + command: 'debug_liquid_arm_rotation', params: { ...debugStore.formData.liquidArmData, }, @@ -172,7 +172,7 @@ const liquid_arm_rotation = async () => { const liquid_arm_stop = async () => { const params = { - command: 'liquid_arm_stop', + command: 'debug_liquid_arm_stop', params: { target: ['largeArm', 'smallArm'], }, @@ -182,7 +182,7 @@ const liquid_arm_stop = async () => { const liquid_pump_pre_filling = async () => { const params = { - command: 'liquid_pump_pre_filling', + command: 'debug_liquid_pump_pre_filling', params: { index: debugStore.formData.liquidPumpData.index, }, @@ -192,7 +192,7 @@ const liquid_pump_pre_filling = async () => { const liquid_pump_pre_evacuation = async () => { const params = { - command: 'liquid_pump_pre_evacuation', + command: 'debug_liquid_pump_pre_evacuation', params: { index: debugStore.formData.liquidPumpData.index, }, @@ -202,7 +202,7 @@ const liquid_pump_pre_evacuation = async () => { const liquid_pump_start = async () => { const params = { - command: 'liquid_pump_start', + command: 'debug_liquid_pump_start', params: { ...debugStore.formData.liquidPumpData, }, @@ -212,7 +212,7 @@ const liquid_pump_start = async () => { const liquid_pump_stop = async () => { const params = { - command: 'liquid_pump_stop', + command: 'debug_liquid_pump_stop', params: { index: debugStore.formData.liquidPumpData.index, }, @@ -222,7 +222,7 @@ const liquid_pump_stop = async () => { const shaker_start = async () => { const params = { - command: 'shaker_start', + command: 'debug_shaker_start', params: { ...debugStore.formData.shakeSpeed, }, @@ -232,7 +232,7 @@ const shaker_start = async () => { const shaker_stop = async () => { const params = { - command: 'shaker_stop', + command: 'debug_shaker_stop', params: {}, } await sendControl(params, 'debug') @@ -298,7 +298,7 @@ const debug_holding_jaw_pause = async () => { const door_open = async () => { const params = { - command: 'door_open', + command: 'debug_door_open', params: {}, } await sendControl(params, 'debug') @@ -306,7 +306,7 @@ const door_open = async () => { const door_close = async () => { const params = { - command: 'door_close', + command: 'debug_door_close', params: {}, } await sendControl(params, 'debug') @@ -314,7 +314,7 @@ const door_close = async () => { const door_stop = async () => { const params = { - command: 'door_stop', + command: 'debug_door_stop', params: {}, } await sendControl(params, 'debug')