From a5faf6e7b42f1e358ee8396c77452a07d9f976e8 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期三, 12 二月 2025 13:54:12 +0800 Subject: [PATCH] 测试完成 --- src/views/followvisit/record/detailpage/index.vue | 17 ++++++++++------- 1 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/views/followvisit/record/detailpage/index.vue b/src/views/followvisit/record/detailpage/index.vue index 5edc7ec..1438f7c 100644 --- a/src/views/followvisit/record/detailpage/index.vue +++ b/src/views/followvisit/record/detailpage/index.vue @@ -646,10 +646,12 @@ if (res.code === 200) { this.tableDatatop = res.data.scriptResult.script; this.tableDatatop.forEach((item) => { - if (item.scriptResult && item.scriptType != 2) { + console.log(item.scriptResultId,'scriptResultId'); + + if (item.scriptResultId && item.scriptType != 2) { item.isoption = 3; - item.scriptResult = JSON.parse(item.scriptResult); - } else if (item.scriptResult && item.scriptType == 2) { + item.scriptResult = item.scriptResult; + } else if (item.scriptResultId && item.scriptType == 2) { item.scriptResult = item.scriptResult.split("&"); item.isoption = 3; } @@ -735,9 +737,10 @@ var objs = item.svyLibTemplateTargetoptions.find( (items) => items.optioncontent == item.scriptResult ); - - if (objs.isabnormal) { - excep = 1; + if (obj) { + if (objs.isabnormal) { + excep = 1; + } } let obj = { @@ -751,7 +754,7 @@ if (item.scriptType == 2 && item.scriptResult[0]) { obj.asrtext = item.scriptResult.join("&"); } else if (item.scriptType != 2 && item.scriptResult) { - obj.asrtext = JSON.stringify(item.scriptResult); + obj.asrtext = item.scriptResult; } if (item.isoption == 3) { -- Gitblit v1.9.3