From 60e5b16ec6d1c8a4fbb9c714b2066a5dc5202b46 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期二, 15 四月 2025 18:14:12 +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 863e8f8..37858aa 100644 --- a/src/views/outsideChainwtnew.vue +++ b/src/views/outsideChainwtnew.vue @@ -8,7 +8,7 @@ {{ kcb ? kcb - : "浜茬埍鐨勬偅鑰�-瀹跺睘锛屾偍濂斤紒鎴戜滑鏄禉涓尰澶т簩闄㈢殑鍖绘姢浜哄憳锛屼负浜嗘洿濂藉湴浜嗚В鎮ㄧ殑搴峰鎯呭喌锛岃鎮ㄦ娊涓�鐐瑰疂璐垫椂闂达紝瀹屾垚杩欎唤闅忚闂嵎銆�" + : "浜茬埍鐨勬偅鑰�-瀹跺睘锛屾垜浠槸"+localStorage.getItem("orgname")+"鐨勫尰鎶や汉鍛橈紝涓轰簡鏇村ソ鍦颁簡瑙f偍鐨勫悍澶嶆儏鍐碉紝璇锋偍鎶戒竴鐐瑰疂璐垫椂闂达紝瀹屾垚杩欎唤闅忚闂嵎銆�" }} <!-- 浜茬埍鐨勬偅鑰�/瀹跺睘鎮ㄥソ锛屼负浜嗘洿濂界殑浜嗚В鎮ㄥ嚭闄㈠悗鐨勫悍澶嶆儏鍐碉紝缁欐偍閫傚綋鍙婃椂鐨勫仴搴锋寚瀵硷紝璇锋偍鎶戒竴鐐瑰疂璐垫椂闂达紝瀹屾垚杩欎唤鍑洪櫌闅忚闂嵎璋冩煡銆� --> </div> @@ -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,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