From 294e513504423b4726c36046decc649f272851e0 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期二, 03 十二月 2024 10:06:10 +0800
Subject: [PATCH] 测试完成

---
 src/views/followvisit/record/detailpage/index.vue |   25 ++++++++++++++++++++++---
 1 files changed, 22 insertions(+), 3 deletions(-)

diff --git a/src/views/followvisit/record/detailpage/index.vue b/src/views/followvisit/record/detailpage/index.vue
index 0074af5..8f53179 100644
--- a/src/views/followvisit/record/detailpage/index.vue
+++ b/src/views/followvisit/record/detailpage/index.vue
@@ -418,7 +418,7 @@
   getsearchrResults,
   getPersonVoices,
   getTaskservelist,
-  getTaskparticty,
+  getTaskFollowup,
   Editsingletaskson,
   serviceSubtaskDetailedit,
   serviceSubtaskDetailadd,
@@ -434,6 +434,7 @@
       taskname: "",
       activeName: "wj",
       voice: "",
+      templateid:'',
       tableDatatop: [], //棰樼洰琛�
       voiceDatatop: [], //棰樼洰琛�
       Whetherall: false, //鏄惁鍏ㄩ儴璁板綍灞曠ず
@@ -513,13 +514,31 @@
               item.scriptResult = [];
             }
           });
+          if (!this.tableDatatop.length) {
+          this.puttaskid(this.templateid);
+          }
         }
       });
     },
     // 鑾峰彇闂嵎瀹屾暣鏁版嵁姣斿
     puttaskid(id) {
-      getTaskparticty(id).then((res) => {
+      getTaskFollowup(id).then((res) => {
         if (res.code == 200) {
+          this.tableDatatop = res.data.ivrTaskTemplateScriptVOList;
+          this.tableDatatop.forEach((item) => {
+            // 绫诲瀷鍒ゆ柇璧嬪��
+            if (item.ivrTaskScriptTargetoptionList) {
+              item.targetvalue=1;
+              item.questiontext=item.scriptContent;
+              item.targetvalue = item.ivrTaskScriptTargetoptionList.map(obj => obj.targetvalue).join('&');
+            }
+            if (item.targetvalue) {
+              item.scriptResult = item.targetvalue.split("&");
+            } else {
+              item.scriptResult = [];
+            }
+          });
+          console.log(this.tableDatatop,'this.tableDatatop');
 
         }
       });
@@ -593,7 +612,7 @@
       }).then((res) => {
         if (res.code == 200) {
           this.logsheetlist = res.rows[0].serviceSubtaskList;
-          this.puttaskid(this.logsheetlist[0].templateid)
+          this.templateid=this.logsheetlist[0].templateid
         }
       });
     },

--
Gitblit v1.9.3