From eef0168f78d81a6eb8856976c3e04cc1046c32df Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期四, 16 一月 2025 10:38:29 +0800
Subject: [PATCH] 测试完成

---
 src/views/outsideChainwtnew.vue |   37 +++++++++++++++++++------------------
 1 files changed, 19 insertions(+), 18 deletions(-)

diff --git a/src/views/outsideChainwtnew.vue b/src/views/outsideChainwtnew.vue
index 833cc29..23931a4 100644
--- a/src/views/outsideChainwtnew.vue
+++ b/src/views/outsideChainwtnew.vue
@@ -63,7 +63,6 @@
               <el-checkbox-group
                 class="custom-radio"
                 v-model="item.scriptResult"
-                @change="updateScore($event, index, item)"
               >
                 <el-checkbox
                   border
@@ -409,10 +408,12 @@
         var obj = item.svyLibTemplateTargetoptions.find(
           (items) => items.optioncontent == item.scriptResult
         );
-        if (obj.isabnormal) {
-          console.log(obj.isabnormal);
-          form.excep = 1;
-          this.excep = 1;
+        if (obj) {
+          if (obj.isabnormal) {
+            console.log(obj.isabnormal);
+            form.excep = 1;
+            this.excep = 1;
+          }
         }
       });
 
@@ -446,19 +447,19 @@
       }
     },
     // 澶勭悊澶氶�夐�夐」
-    updateScore(selectedvalues, index, arr) {
-      // 锟斤拷鍔犲垎鏁�
-      let score = 0;
-      selectedvalues.forEach((value) => {
-        const selectedOption = arr.svyLibTemplateTargetoptions.find(
-          (option) => option.optioncontent == value
-        );
-        if (selectedOption) {
-          score += Number(selectedOption.score);
-        }
-      });
-      this.questionList[index].score = score;
-    },
+    // updateScore(selectedvalues, index, arr) {
+    //   // 锟斤拷鍔犲垎鏁�
+    //   let score = 0;
+    //   selectedvalues.forEach((value) => {
+    //     const selectedOption = arr.svyLibTemplateTargetoptions.find(
+    //       (option) => option.optioncontent == value
+    //     );
+    //     if (selectedOption) {
+    //       score += Number(selectedOption.score);
+    //     }
+    //   });
+    //   this.questionList[index].score = score;
+    // },
   },
 };
 </script>

--
Gitblit v1.9.3