From 8d02c80fbed5887266bcf99d9ab9b2b3938449c6 Mon Sep 17 00:00:00 2001
From: shj <1790240199@qq.com>
Date: 星期五, 01 四月 2022 17:13:47 +0800
Subject: [PATCH] 自查清单

---
 src/views/safetyproduction/review.vue |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/src/views/safetyproduction/review.vue b/src/views/safetyproduction/review.vue
index 9539081..e450a9c 100644
--- a/src/views/safetyproduction/review.vue
+++ b/src/views/safetyproduction/review.vue
@@ -250,6 +250,7 @@
       });
     },
     modItem() {
+      if(this.list.safetyInspectionItemResult!=null){
       safetySelfInspectionModItemInfo(this.list).then((res) => {
         if (res.data.code == 200) {
           this.$notify({
@@ -266,6 +267,13 @@
           });
         }
       });
+      }else{
+          this.$confirm('是否否决项未选择','提示', {
+            confirmButtonText: '确认',
+            cancelButtonText: '取消',
+            type: 'warning'
+        })
+      }
     },
     back() {
       this.$router.push({
@@ -277,8 +285,8 @@
     },
     handleClick(data) {
       this.dialogVisible = true;
-      this.form = data;
-      console.log(data);
+      // this.form = data;
+        this.form=JSON.parse(JSON.stringify(data));
     },
     lost() {
       this.dialogVisible = false;
@@ -318,4 +326,4 @@
   background-color: #034ea2;
   border: 1px solid #034ea2;
 }
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.9.2