From 2657ebf965f26c60f81640394771269716d5d6ca Mon Sep 17 00:00:00 2001
From: yangzhicheng <dayu123@qq.com>
Date: Fri, 12 Jul 2024 14:10:30 +0800
Subject: [PATCH] =?UTF-8?q?=E7=A1=AE=E8=AE=A4=E6=8C=89=E9=92=AE=E6=8C=89?=
 =?UTF-8?q?=E4=B8=8B=20=20check=E5=A4=84=E7=90=86=E4=BF=AE=E6=AD=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/views/inspection/inspectionrouteDetail.vue | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/src/views/inspection/inspectionrouteDetail.vue b/src/views/inspection/inspectionrouteDetail.vue
index 109c017..e530e50 100644
--- a/src/views/inspection/inspectionrouteDetail.vue
+++ b/src/views/inspection/inspectionrouteDetail.vue
@@ -157,17 +157,15 @@
     },
     methods: {
       handleFormSubmit() {
-        const form = this.$refs.form;
-        form.validate((valid) => {
+        this.$refs.form.validate((valid, done, msg) => {
           if (valid) {
+            done()
             this.Submit();
           } else {
-            this.$message({
-              type: "warning",
-              message: "请输入必要信息!"
-            });
+            console.log('error submit!!');
+            return false;
           }
-        });
+        })
       },
       // 处理表单提交
       Submit() {