From fcc1ea2bf3ce3efe1f927bd087e4cd6cf2116c32 Mon Sep 17 00:00:00 2001
From: lyfO_o <764716047@qq.com>
Date: 星期三, 30 三月 2022 16:21:36 +0800
Subject: [PATCH] Merge remote-tracking branch 'remotes/origin/shf' into master

---
 src/views/majorHazardSourceMonitoring/instrumentData/index.vue |   31 ++++++++++++++++++++-----------
 1 files changed, 20 insertions(+), 11 deletions(-)

diff --git a/src/views/majorHazardSourceMonitoring/instrumentData/index.vue b/src/views/majorHazardSourceMonitoring/instrumentData/index.vue
index e716f71..9123e8b 100644
--- a/src/views/majorHazardSourceMonitoring/instrumentData/index.vue
+++ b/src/views/majorHazardSourceMonitoring/instrumentData/index.vue
@@ -495,17 +495,26 @@
                 });
             },
             deleteById(val) {
-                majorEquipmentDel({id:val}).then((res) => {
-                    if (res.data.code == 200) {
-                        this.elementManagementL();
-                        this.$notify({
-                            title: "成功",
-                            message: "删除成功",
-                            type: "success",
-                            duration: 2000,
-                        });
-                    }
-                });
+                this.$confirm('确认删除吗','提示', {
+                    confirmButtonText: '确认',
+                    cancelButtonText: '取消',
+                    type: 'warning'
+                })
+                    .then(()=>{
+                       majorEquipmentDel({id:val}).then((res) => {
+                           if (res.data.code == 200) {
+                               this.elementManagementL();
+                               this.$notify({
+                                   title: "成功",
+                                   message: "删除成功",
+                                   type: "success",
+                                   duration: 2000,
+                               });
+                           }
+                       });
+                    })
+                    .catch(error =>{
+                    });
             },
             find(){
                 this.elementManagementL();

--
Gitblit v1.9.2