From a19e6b1a393cf9febc55831ac96e5f5551d231af Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期三, 05 十一月 2025 13:55:57 +0800
Subject: [PATCH] 1. 修复问题修改界面修改问题后,问题的id未同步更新的问题; 2. 修复删除问题时,列表属性错误的问题

---
 src/views/fysp/check/ProCheck.vue |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/views/fysp/check/ProCheck.vue b/src/views/fysp/check/ProCheck.vue
index d47f6a0..58f0366 100644
--- a/src/views/fysp/check/ProCheck.vue
+++ b/src/views/fysp/check/ProCheck.vue
@@ -34,12 +34,13 @@
           <CompProblemCard
             :key="i"
             v-for="(p, i) in curProList"
-            :index="i + 1"
+            :index="i"
             :problem="p"
             :subtask="curSubtask.data"
             :topTask="topTask"
             @submit="updateSubtask"
             @check="handleProblemCheck"
+            @delete="handleProblemDelete"
           ></CompProblemCard>
         </div>
         <el-empty v-else description="鏆傛棤闂" v-loading="mainLoading" />
@@ -273,6 +274,10 @@
       this.curSubtask.data.changeNum = status.changeNum;
       this.curSubtask.data.changeCheckedNum = status.changeCheckedNum;
       this.curSubtask.type = ProCheckProxy.getSubtaskType(this.curSubtask.data);
+    },
+    // 鍒犻櫎闂
+    handleProblemDelete(index) {
+      this.curProList.splice(index, 1);
     }
   },
   mounted() {}

--
Gitblit v1.9.3