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 @@