From f6bc6ed2dec9cd60853db928fa6e56a92ab5de0d Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期三, 12 二月 2025 11:07:17 +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 acd20aa..6e7ae29 100644
--- a/src/views/followvisit/record/detailpage/index.vue
+++ b/src/views/followvisit/record/detailpage/index.vue
@@ -480,10 +480,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;
}
@@ -556,9 +558,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 = {
@@ -572,7 +575,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