From 55bd7fb6365909a0cbcf0957333c7876bd791bb9 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期四, 21 十一月 2024 16:35:12 +0800
Subject: [PATCH] 问题整改界面 1. 优化各项状态展示效果 2. 新增左侧关键字筛选功能

---
 src/views/fysp/check/components/CompProblemCard.vue |   35 ++++++++++++++++++++++++-----------
 1 files changed, 24 insertions(+), 11 deletions(-)

diff --git a/src/views/fysp/check/components/CompProblemCard.vue b/src/views/fysp/check/components/CompProblemCard.vue
index 13e41cc..aabc5b4 100644
--- a/src/views/fysp/check/components/CompProblemCard.vue
+++ b/src/views/fysp/check/components/CompProblemCard.vue
@@ -89,11 +89,22 @@
             type="danger"
             size="small"
             @click="deletePro"
-            :disabled="!proStatus.deletable"
+            disabled
             >鍒犻櫎</el-button
           >
-          <el-button
-            v-if="proStatus.name.indexOf('涓嶉�氳繃') != -1"
+          <!-- <el-button
+            type="danger"
+            size="small"
+            @click="deletePro"
+            :disabled="!proStatus.deletable"
+            >鍒犻櫎</el-button
+          > -->
+          <!-- 瀹℃牳椹冲洖鎿嶄綔 -->
+          <!-- <el-button
+            v-if="
+              this.problem.extension3 == 'fail' ||
+              this.problem.extension3 == 'change_fail'
+            "
             type="danger"
             size="small"
             @click="revokePro"
@@ -106,12 +117,12 @@
             size="small"
             @click="rejectPro"
             :disabled="!proStatus.checkable"
-            >椹冲洖</el-button
-          >
+            >瀹℃牳椹冲洖</el-button
+          > -->
           <el-button
             v-if="
-              proStatus.name.indexOf('涓嶉�氳繃') == -1 &&
-              proStatus.name.indexOf('閫氳繃') != -1
+              this.problem.extension3 == 'pass' ||
+              this.problem.extension3 == 'change_pass'
             "
             type="danger"
             size="small"
@@ -125,7 +136,7 @@
             size="small"
             @click="passPro"
             :disabled="!proStatus.checkable"
-            >閫氳繃</el-button
+            >瀹℃牳閫氳繃</el-button
           >
         </el-row>
       </el-col>
@@ -175,7 +186,7 @@
 import CompProRecent from './CompProRecent.vue';
 import { useCloned } from '@vueuse/core';
 export default {
-  emits: ['submmit', 'cancel'],
+  emits: ['check', 'submit', 'cancel'],
   components: {
     CompProblemAddOrUpd,
     ComChangeEdit,
@@ -339,7 +350,8 @@
             .checkProblem({ pId: pro.guid, action: action })
             .then((res) => {
               if (res.success) {
-                this.$emit('submit', false);
+                pro.extension3 = status
+                this.$emit('check');
               }
             });
         }
@@ -360,7 +372,8 @@
             .checkProblem({ pId: pro.guid, action: action })
             .then((res) => {
               if (res.success) {
-                this.$emit('submit', false);
+                pro.extension3 = status
+                this.$emit('check');
               }
             });
         }

--
Gitblit v1.9.3