From d3700bd1982b7045f818c2c3eb5b90f0e4085645 Mon Sep 17 00:00:00 2001 From: zhangjiming Date: Mon, 3 Mar 2025 13:31:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=96=B7=E6=B6=82=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=96=B7=E6=B6=82=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/SprayParam.vue | 7 ++++++- src/views/SprayView.vue | 23 +++++++++++++++++------ 2 files changed, 23 insertions(+), 7 deletions(-) diff --git a/src/components/SprayParam.vue b/src/components/SprayParam.vue index 612a201..f1bd456 100644 --- a/src/components/SprayParam.vue +++ b/src/components/SprayParam.vue @@ -59,7 +59,7 @@ 毫米
- +
@@ -75,6 +75,7 @@ import { ElMessage } from "element-plus"; const props = defineProps<{ sprayParam: Partial; + saveTitle?: string; }>(); const emit = defineEmits<{ (e: "save", param: WorkType): void; @@ -82,6 +83,10 @@ const emit = defineEmits<{ const selectCraft = ref(props.sprayParam); +defineExpose({ + sprayParam: selectCraft, +}); + function needPower(need: boolean) { selectCraft.value.needPower = need; } diff --git a/src/views/SprayView.vue b/src/views/SprayView.vue index 2474a0f..2a96a72 100644 --- a/src/views/SprayView.vue +++ b/src/views/SprayView.vue @@ -29,12 +29,16 @@ @@ -107,7 +111,7 @@