From 8879eacc9863629c0ef88d885461d3f2283da694 Mon Sep 17 00:00:00 2001 From: zhangjiming Date: Sat, 1 Mar 2025 20:44:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=96=B7=E6=B6=82=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/SprayView.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/views/SprayView.vue b/src/views/SprayView.vue index 2920dc8..3f3357d 100644 --- a/src/views/SprayView.vue +++ b/src/views/SprayView.vue @@ -3,8 +3,8 @@

喷涂路线

- icon - icon + icon + icon
@@ -160,8 +160,15 @@ function onSelectArea(area: GridArea) { function needPower(need: boolean) { dto.needPower = need; } +function sprayDirection(direction: "h" | "v") { + dto.direction = direction === "h" ? 1 : 2; +} function startSpray() { + dto.position = [ + { x: selectedArea.value?.xStart || 10, y: selectedArea.value?.yStart || 10 }, + { x: selectedArea.value?.xEnd || 20, y: selectedArea.value?.yEnd || 20 }, + ]; const params = dto.needPower ? dto : { ...dto, voltage: 0 }; console.log(params); // 调用方法