From 8148559d723be85d863b82ae51cd6fd5c196202c Mon Sep 17 00:00:00 2001 From: cdf <857448963@qq.com> Date: Wed, 5 Jun 2024 17:42:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=99=AE=E6=B5=8B=E8=AE=A1=E5=88=92=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../harmonicSurvey/components/planTest.vue | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/views/pqs/supervise/harmonicSurvey/components/planTest.vue b/src/views/pqs/supervise/harmonicSurvey/components/planTest.vue index cbf61185..ec6d1b7c 100644 --- a/src/views/pqs/supervise/harmonicSurvey/components/planTest.vue +++ b/src/views/pqs/supervise/harmonicSurvey/components/planTest.vue @@ -157,14 +157,17 @@ const cancelFn = () => { // 提交 const submitFn = () => { + + + formRef.value.validate(async (valid: any) => { - if (valid) { if (!testReport.value) { - return ElMessage({ - message: '请上传处理成效报告', - type: 'warning' - }) + return ElMessage({ + message: '请上传处理成效报告', + type: 'warning' + }) } + if (valid) { if(addFlagRef){ //新增,则组装业务数据提交后台 await addSurveyTest(form.value)