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/components/CompProblemCard.vue |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/views/fysp/check/components/CompProblemCard.vue b/src/views/fysp/check/components/CompProblemCard.vue
index 77f907d..e59b9f9 100644
--- a/src/views/fysp/check/components/CompProblemCard.vue
+++ b/src/views/fysp/check/components/CompProblemCard.vue
@@ -15,7 +15,7 @@
 
     <el-descriptions :column="2" size="small" border>
       <template #title>
-        <span class="d-index">{{ index }}</span>
+        <span class="d-index">{{ index + 1 }}</span>
         <span class="d-title">{{ title }}</span>
       </template>
       <template #extra>
@@ -100,20 +100,20 @@
       </el-col>
       <el-col :span="12">
         <el-row justify="end" class="btn-group">
-          <el-button
+          <!-- <el-button
             type="danger"
             size="small"
             @click="deletePro"
             :disabled="true"
             >鍒犻櫎</el-button
-          >
-          <!-- <el-button
+          > -->
+          <el-button
             type="danger"
             size="small"
             @click="deletePro"
             :disabled="!proStatus.deletable"
             >鍒犻櫎</el-button
-          > -->
+          >
           <!-- 瀹℃牳椹冲洖鎿嶄綔 -->
           <el-button
             v-if="
@@ -235,7 +235,7 @@
     },
     index: {
       type: Number,
-      default: 1
+      default: 0
     }
   },
   data() {
@@ -336,7 +336,7 @@
     deletePro() {
       useMessageBoxTip({
         confirmMsg: '鏄惁鍒犻櫎闂',
-        confirmTitle: '纭畾',
+        confirmTitle: '鍒犻櫎闂',
         onConfirm: () => {
           return problemApi
             .deleteProblem({
@@ -344,7 +344,7 @@
             })
             .then((res) => {
               if (res.success) {
-                this.$emit('submit');
+                this.$emit('delete', this.index);
               }
             });
         }

--
Gitblit v1.9.3