From 04ff671fcd4dacccbee8026e7cf00b6c46a27f0f Mon Sep 17 00:00:00 2001 From: guoapeng Date: Thu, 15 May 2025 19:55:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=87=AA=E6=A3=80ui;=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/check/index.vue | 27 +++++++++++++-------------- src/views/home/index.vue | 7 +++---- 2 files changed, 16 insertions(+), 18 deletions(-) diff --git a/src/components/check/index.vue b/src/components/check/index.vue index 37001ea..ff8efcc 100644 --- a/src/components/check/index.vue +++ b/src/components/check/index.vue @@ -55,16 +55,16 @@ const statusMap: Record> = { value: 'z', type: 'axis', }, - dualRobotJoint1Origin: { - name: '机械臂01', - value: 'largeArm', - type: 'liquid', - }, - dualRobotJoint2Origin: { - name: '机械臂02', - value: 'smallArm', + dualRobotOrigin: { + name: '加液机械臂', + value: '', type: 'liquid', }, + // dualRobotJoint2Origin: { + // name: '机械臂02', + // value: 'smallArm', + // type: 'liquid', + // }, capLiftingOrigin: { name: '拍子电机升降', value: '', @@ -165,7 +165,7 @@ const resetOrign = (item: SelfStatus) => { gantry_origin(item.value) } else if (item.type === 'liquid') { - dual_robot_joint_origin(item.value) + dual_robot_origin() } else if (item.type === 'heat') { tray_lifting_origin(item.value) @@ -196,14 +196,12 @@ const gantry_origin = async (motor: 'x' | 'y' | 'z') => { await homeStore.sendControl(params) } -const dual_robot_joint_origin = async (arm: string) => { +const dual_robot_origin = async () => { currentCommandId = Date.now().toString() const params = { commandId: currentCommandId, - command: 'dual_robot_joint_origin', - params: { - target: [arm], - }, + command: 'dual_robot_origin', + params: {}, } await homeStore.sendControl(params) } @@ -311,5 +309,6 @@ const onComplete = () => { display: grid; grid-template-columns: 2fr 1fr 1fr; margin-top: 5px; + height: 30px; } diff --git a/src/views/home/index.vue b/src/views/home/index.vue index fcbd505..170973d 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -1,6 +1,5 @@