From 95ac4377bfb735cfdc79eb16d07dd0eb8f673d33 Mon Sep 17 00:00:00 2001
From: hcong <1050828145@qq.com>
Date: 星期四, 21 十一月 2024 11:54:06 +0800
Subject: [PATCH] 1. 审核撤回的按钮显示逻辑修改 2. 通过改为审核通过 3. 审核驳回隐藏

---
 src/views/fysp/check/components/CompProblemCard.vue |   28 +++++++++++++++++++---------
 1 files changed, 19 insertions(+), 9 deletions(-)

diff --git a/src/views/fysp/check/components/CompProblemCard.vue b/src/views/fysp/check/components/CompProblemCard.vue
index e599f5c..8172030 100644
--- a/src/views/fysp/check/components/CompProblemCard.vue
+++ b/src/views/fysp/check/components/CompProblemCard.vue
@@ -92,8 +92,12 @@
             :disabled="!proStatus.deletable"
             >鍒犻櫎</el-button
           >
-          <el-button
-            v-if="proStatus.name.indexOf('涓嶉�氳繃') != -1"
+          <!-- 瀹℃牳椹冲洖鎿嶄綔 -->
+          <!-- <el-button
+            v-if="
+              this.problem.extension3 == 'fail' ||
+              this.problem.extension3 == 'change_fail'
+            "
             type="danger"
             size="small"
             @click="revokePro"
@@ -106,12 +110,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 +129,7 @@
             size="small"
             @click="passPro"
             :disabled="!proStatus.checkable"
-            >閫氳繃</el-button
+            >瀹℃牳閫氳繃</el-button
           >
         </el-row>
       </el-col>
@@ -139,6 +143,7 @@
     :subtask="subtask"
     :topTask="topTask"
     ref="compProblemAddOrUpdRef"
+    @cancel="onProCanceled"
     @submit="onProSubmited"
   />
   <!-- 鏁存敼 -->
@@ -151,6 +156,7 @@
     :subtask="subtask"
     :month="month"
     :oldChangeFileList="problem.mediafileList"
+    @cancel="onChangeCanceled"
     @submit="onChangeSubmited"
   />
   <!-- 闂澶嶇幇 -->
@@ -173,7 +179,7 @@
 import CompProRecent from './CompProRecent.vue';
 import { useCloned } from '@vueuse/core';
 export default {
-  emits: ['submmit'],
+  emits: ['submmit', 'cancel'],
   components: {
     CompProblemAddOrUpd,
     ComChangeEdit,
@@ -210,7 +216,6 @@
       default: 1
     }
   },
-  emits: ['submit', 'updated'],
   data() {
     return {
       changeDialogVisible: false,
@@ -282,10 +287,15 @@
     }
   },
   methods: {
+    onProCanceled() {
+      this.proAddOrUpdDialogVisible = false;
+    },
     onProSubmited(isOk) {
       this.$emit('submit', isOk);
       this.proAddOrUpdDialogVisible = false;
     },
+    onChangeCanceled() {
+    },
     onChangeSubmited(isOk) {
       this.$emit('submit', isOk);
       this.changeDialogVisible = false;

--
Gitblit v1.9.3