From a88aaf47f686816a24655793c961eff8f9d4dc25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=A2=A6=E8=BF=9C?= <1063331231@qq.com> Date: Fri, 18 Jul 2025 16:23:21 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AD=89=E5=80=99=E6=97=B6=E9=97=B4=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E4=B8=BA0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/spray/sprayParams/index.vue | 145 +++++++++++++---------------- src/views/spray/index.vue | 2 +- 2 files changed, 66 insertions(+), 81 deletions(-) diff --git a/src/components/spray/sprayParams/index.vue b/src/components/spray/sprayParams/index.vue index 6496dff..6129c63 100644 --- a/src/components/spray/sprayParams/index.vue +++ b/src/components/spray/sprayParams/index.vue @@ -337,22 +337,19 @@ const touchendHandle = () => { { + if (!value && value !== 0) { + callback(new Error('请输入氮气气压')); + } + else if (value < 0 || value > 100) { + callback(new Error('氮气气压需在0-100之间')); + } + else { + callback(); + } + } }, ]" > @@ -361,22 +358,19 @@ const touchendHandle = () => { { + if (!value && value !== 0) { + callback(new Error('请输入基质流速')); + } + else if (value < 0 || value > 60) { + callback(new Error('基质流速需在0-60之间')); + } + else { + callback(); + } + } }, ]" > @@ -441,22 +435,19 @@ const touchendHandle = () => { { + if (!value && value !== 0) { + callback(new Error('请输入间距')); + } + else if (value < 0 || value > 100) { + callback(new Error('间距需在0-100之间')); + } + else { + callback(); + } + } }, ]" > @@ -465,22 +456,19 @@ const touchendHandle = () => { { + if (!value && value !== 0) { + callback(new Error('请输入等待时间')); + } + else if (value < 0 || value > 1200) { + callback(new Error('等待时间需在0-1200之间')); + } + else { + callback(); + } + } }, ]" > @@ -490,22 +478,19 @@ const touchendHandle = () => { v-if="item.matrixPathType === 'grid'" label="中间等待时间" :prop="`times.${index}.gridDelay`" - :rules="[ - { - required: true, - trigger: 'blur', - validator: (rule: any, value: any, callback: any) => { - if (!value) { - callback(new Error('请输入等待时间')); - } - else if (value < 0 || value > 120) { - callback(new Error('等待时间需在0-120之间')); - } - else { - callback(); - } - }, - }, + :rules="[{ required: true, + trigger: 'blur', + validator: (rule: any, value: any, callback: any) => { + if (!value && value !== 0) { + callback(new Error('请输入等待时间')); + } + else if (value < 0 || value > 120) { + callback(new Error('等待时间需在0-120之间')); + } + else { + callback(); + } + } }, ]" > diff --git a/src/views/spray/index.vue b/src/views/spray/index.vue index 6fe2918..d775653 100644 --- a/src/views/spray/index.vue +++ b/src/views/spray/index.vue @@ -280,7 +280,7 @@ const viewParams = (index: number) => { style="height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: space-evenly" >

- + 玻片{{ index + 1 }}