From 33c62946aa29d74a62c5dcbbc1cb06d16c8c91dc Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期五, 23 五月 2025 14:46:26 +0800
Subject: [PATCH] 测试完成

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

diff --git a/src/views/outsideChainwtnew.vue b/src/views/outsideChainwtnew.vue
index 8e35a4d..050d685 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
@@ -129,7 +128,7 @@
           {{
             jsy
               ? jsy
-              : "鐢熸椿涓婅鍔抽�哥粨鍚堬紝娉ㄦ剰浼戞伅鍜岃惀鍏伙紝閫傚綋閿荤偧锛屾垝鐑熼檺閰掞紝淇濇寔蹇冩儏鑸掔晠锛屽畾鏈熷璇娿�傞偅鏈鍥炶灏卞埌杩欓噷锛岀鎮ㄨ韩浣撳仴搴凤紒"
+              : "鎰熻阿鎮ㄥ弬涓庢湰娆¢殢璁裤�傛偍鐨勫弽棣堝府鍔╂垜浠洿濂藉湴浜嗚В瀹濆疂鐨勯�傚簲鎯呭喌锛屽苟涓烘偍鎻愪緵鏇寸簿鍑嗙殑鎶ょ悊寤鸿涓庡仴搴锋寚瀵笺�傜鎮ㄥ拰瀹濆疂鍋ュ悍蹇箰"
           }}
         </div>
       </div>
@@ -409,10 +408,14 @@
         var obj = item.svyLibTemplateTargetoptions.find(
           (items) => items.optioncontent == item.scriptResult
         );
-        if (obj.isabnormal) {
-          console.log(obj.isabnormal);
-          form.excep = 1;
-          this.excep = 1;
+        console.log(obj,'obj');
+
+        if (obj) {
+          if (obj.isabnormal) {
+            console.log(obj.isabnormal);
+            form.excep = 1;
+            this.excep = 1;
+          }
         }
       });
 
@@ -424,6 +427,7 @@
         }
       });
       form.svyLibTemplateScriptVOS = arr;
+      form.type = 2;
       Cachequestionnaire(form).then((res) => {
         if (res.code == 200) {
           if (subm) {
@@ -446,19 +450,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