From bfce8d1b8f02af1ac9223e4e0d315b858557a2f5 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期二, 25 二月 2025 15:57:13 +0800
Subject: [PATCH] 测试完成
---
src/views/followvisit/record/detailpage/index.vue | 20 ++++++++++++--------
1 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/src/views/followvisit/record/detailpage/index.vue b/src/views/followvisit/record/detailpage/index.vue
index acd20aa..34e2179 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,8 +575,9 @@
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;
}
+console.log(item,'item90');
if (item.isoption == 3) {
serviceSubtaskDetailedit(obj).then((res) => {
@@ -625,7 +629,7 @@
// 鑾峰彇鎮h�呰褰�
getTaskservelist(taskid) {
- this.taskid = taskid;
+ // this.taskid = taskid;
if (taskid) {
this.Whetherall = false;
} else {
--
Gitblit v1.9.3