From 64f9a4e5fb594f190e767c375eb2acb4e9b8b823 Mon Sep 17 00:00:00 2001 From: taojinlong Date: Tue, 5 Dec 2023 16:19:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E3=80=90=E7=B3=BB=E7=BB=9F=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E3=80=91-=E5=9F=BA=E7=A1=80=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E4=B8=AD=E6=95=B0=E6=8D=AE=E6=BA=90=E6=A3=80=E6=B5=8B=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E9=97=B4=E9=9A=94=E6=B2=A1=E6=9C=89=E9=99=90=E5=88=B6?= =?UTF-8?q?=E6=95=B0=E5=80=BC=E8=BE=B9=E7=95=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/system/parameter/basic/BasicEdit.vue | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/core/core-frontend/src/views/system/parameter/basic/BasicEdit.vue b/core/core-frontend/src/views/system/parameter/basic/BasicEdit.vue index 0f02f7f06e..20368e8580 100644 --- a/core/core-frontend/src/views/system/parameter/basic/BasicEdit.vue +++ b/core/core-frontend/src/views/system/parameter/basic/BasicEdit.vue @@ -44,6 +44,20 @@ const submitForm = async (formEl: FormInstance | undefined) => { if (!formEl) return await formEl.validate(valid => { if (valid) { + if ( + state.form.dsExecuteTime === 'minute' && + (Number(state.form.dsIntervalTime) < 1 || Number(state.form.dsIntervalTime) > 59) + ) { + ElMessage.error('分钟超出范围【1-59】') + return + } + if ( + state.form.dsExecuteTime === 'hour' && + (Number(state.form.dsIntervalTime) < 1 || Number(state.form.dsIntervalTime) > 23) + ) { + ElMessage.error('小时超出范围【1-23】') + return + } const param = buildSettingList() if (param.length < 2) { return