From 97f21296e89d2e4fe7ae2fd00ab63696365b1da2 Mon Sep 17 00:00:00 2001
From: shj <1790240199@qq.com>
Date: 星期五, 13 五月 2022 16:56:08 +0800
Subject: [PATCH] Merge branch 'shf' of https://sinanoaq.cn:8888/r/ztqt into shf

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

diff --git a/src/views/safetyproduction/checklistself.vue b/src/views/safetyproduction/checklistself.vue
index a5141b3..97b59cc 100644
--- a/src/views/safetyproduction/checklistself.vue
+++ b/src/views/safetyproduction/checklistself.vue
@@ -89,7 +89,7 @@
            <el-button v-if="scope.row.status==2" @click="handleClick(scope.row)" type="text" size="small"
             >查看</el-button
           >
-          <el-button  @click="Del(scope.row.id)" v-if="scope.row.status==1?false:true" type="text" size="small" style="color: red"
+          <el-button  @click="Del(scope.row.id)" v-if="scope.row.status==0?true:false" type="text" size="small" style="color: red"
             >删除</el-button
           >
         </template>
@@ -156,7 +156,7 @@
       });
     },
     handleClick(val) {
-     if(val.status==-1){
+     if(val.status==0){
         this.$router.push({
         path:"/new",
         query:{
@@ -164,13 +164,21 @@
           name:'编辑'
         }
       })
-     }else if(val.status==0){
+     }else if(val.status==1){
          this.$router.push({
         path:"/gojudging",
         query:{
           id:val.id
         }
       })
+     }else if(val.status==2){
+         this.$router.push({
+        path:"/gojudging",
+        query:{
+          id:val.id,
+          type:2
+        }
+      })
      }
     },
     find() {

--
Gitblit v1.9.2