From aa055fac8e928e10a70e2089353dc1b67d435576 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期二, 03 九月 2024 11:37:22 +0800 Subject: [PATCH] 测试完成 --- src/views/outsideChainwt.vue | 19 +++++++++++++++++-- 1 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src/views/outsideChainwt.vue b/src/views/outsideChainwt.vue index 9bbe27d..2215dc2 100644 --- a/src/views/outsideChainwt.vue +++ b/src/views/outsideChainwt.vue @@ -14,11 +14,11 @@ {{ index + 1 }}銆乕鍗曢�塢<span>{{ item.scriptContent }}</span> </div> <div class="dev-xx"> - <el-radio-group v-model="item.scriptResult"> + <el-radio-group v-model="item.scriptResult" @change="handleOptionChange($event, index, item)"> <el-radio v-for="(items, index) in item.svyLibTemplateTargetoptions" :key="index" - :label="index" + :label="items.optioncontent" >{{ items.optioncontent }}</el-radio > </el-radio-group> @@ -141,6 +141,7 @@ } ); }, + // 鑾峰彇鏁版嵁 getExternalfollowup() { getExternalfollowup({ param1: this.taskid, param2: this.patid }).then( (res) => { @@ -182,6 +183,9 @@ const arr = structuredClone(this.questionList); arr.forEach((item) => { item.asrtext = JSON.stringify(item.scriptResult); + if (item.scriptType == 2 && item.scriptResult[0]) { + item.asrtext = item.scriptResult.join("&"); + } }); form.serviceSubtaskDetailList = arr; Submitaquestionnaire(form).then((res) => { @@ -212,6 +216,17 @@ } }); }, + // 澶勭悊閫夐」 + handleOptionChange(selectedvalue, index,arr) { + // 鏌ユ壘閫変腑鐨勯�夐」瀵硅薄 + const selectedOption = arr.svyLibTemplateTargetoptions.find( + (option) => option.optioncontent == selectedvalue + ); + if (selectedOption) { + // 灏嗛�変腑鐨勯�夐」瀵硅薄鐨� id 璧嬪�肩粰 obj.sonId + this.questionList[index].nextScriptno = selectedOption.nextQuestion; + } + }, }, }; </script> -- Gitblit v1.9.3