From 9b2b08c3b44de3d2f76069936dfe5ba0e0ece0aa Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期四, 21 十一月 2024 13:08:01 +0800
Subject: [PATCH] 1. 修改审核后左侧列表状态和顶部统计数据的

---
 src/views/fysp/check/components/CompProblemCard.vue |   16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/src/views/fysp/check/components/CompProblemCard.vue b/src/views/fysp/check/components/CompProblemCard.vue
index 8b0d513..224c591 100644
--- a/src/views/fysp/check/components/CompProblemCard.vue
+++ b/src/views/fysp/check/components/CompProblemCard.vue
@@ -139,6 +139,7 @@
     :subtask="subtask"
     :topTask="topTask"
     ref="compProblemAddOrUpdRef"
+    @cancel="onProCanceled"
     @submit="onProSubmited"
   />
   <!-- 鏁存敼 -->
@@ -151,6 +152,7 @@
     :subtask="subtask"
     :month="month"
     :oldChangeFileList="problem.mediafileList"
+    @cancel="onChangeCanceled"
     @submit="onChangeSubmited"
   />
   <!-- 闂澶嶇幇 -->
@@ -173,7 +175,7 @@
 import CompProRecent from './CompProRecent.vue';
 import { useCloned } from '@vueuse/core';
 export default {
-  emits: ['submmit'],
+  emits: ['check', 'submit', 'cancel'],
   components: {
     CompProblemAddOrUpd,
     ComChangeEdit,
@@ -281,9 +283,15 @@
     }
   },
   methods: {
+    onProCanceled() {
+      this.proAddOrUpdDialogVisible = false;
+    },
     onProSubmited(isOk) {
       this.$emit('submit', isOk);
       this.proAddOrUpdDialogVisible = false;
+    },
+    onChangeCanceled() {
+      this.changeDialogVisible = false;
     },
     onChangeSubmited(isOk) {
       this.$emit('submit', isOk);
@@ -332,7 +340,8 @@
             .checkProblem({ pId: pro.guid, action: action })
             .then((res) => {
               if (res.success) {
-                this.$emit('submit', false);
+                pro.extension3 = status
+                this.$emit('check');
               }
             });
         }
@@ -353,7 +362,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