From 3b5ff0651c049d5def8fd789c52ec26188a1e8a1 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期五, 21 十一月 2025 10:45:13 +0800
Subject: [PATCH] 测试完成

---
 src/views/patient/propaganda/QuestionnaireTask.vue |   25 +++++++++++++++----------
 1 files changed, 15 insertions(+), 10 deletions(-)

diff --git a/src/views/patient/propaganda/QuestionnaireTask.vue b/src/views/patient/propaganda/QuestionnaireTask.vue
index d558652..22db733 100644
--- a/src/views/patient/propaganda/QuestionnaireTask.vue
+++ b/src/views/patient/propaganda/QuestionnaireTask.vue
@@ -917,6 +917,7 @@
   Externallist,
   getQtemplatelist,
   getQtemplateobj,
+  taskgetQtemplateobj,
   TaskQuestioncomit,
   deleteTaskQuestioncomit,
   Questionnairetaskgetson,
@@ -1473,7 +1474,7 @@
           this.form.preachformList = this.selectedOrder;
         } else {
           this.$modal.msgError("璇烽�夋嫨鏈嶅姟绫诲瀷");
-            this.submitLoading = false;
+          this.submitLoading = false;
 
           return;
         }
@@ -1490,7 +1491,7 @@
         ) {
         } else {
           this.$modal.msgError("璇烽�夋嫨浠诲姟鍏宠仈鏉′欢");
-            this.submitLoading = false;
+          this.submitLoading = false;
           return;
         }
         //鏆傚仠浠诲姟鎮h�呴檺鍒�
@@ -1501,7 +1502,7 @@
 
         if (!this.form.templatename && !this.templateor) {
           this.$modal.msgError("鏈�夋嫨妯℃澘");
-            this.submitLoading = false;
+          this.submitLoading = false;
 
           return;
         }
@@ -1515,7 +1516,7 @@
           this.form.longTask
         ) {
         } else {
-            this.submitLoading = false;
+          this.submitLoading = false;
           return this.$modal.msgError("鏃堕棿淇℃伅缂哄け");
         }
         const filteredArray = this.variableList.filter(
@@ -1594,6 +1595,8 @@
     },
     // 棰勮
     previewfnmb() {
+      // taskgetQtemplateobj({ id: this.form.templateid });
+
       getTaskQuestioncomit(this.form.templateid).then((res) => {
         if (res.code == 200) {
           console.log(res, "棰勮鏁版嵁");
@@ -1604,15 +1607,17 @@
           this.getillness(this.form.libtemplateid);
 
           this.previewtf = true;
-          getQtemplateobj({ svyid: this.form.libtemplateid }).then((res) => {
+          taskgetQtemplateobj({ id: this.form.templateid }).then((res) => {
             if (res.code == 200) {
-              this.questionList = res.rows[0].svyTemplateLibScripts;
+              this.questionList = res.data.svyTaskTemplateScriptVOS;
               this.questionList.forEach((item) => {
                 item.qremark = [];
+                item.svyLibTemplateTargetoptions =
+                  item.svyTaskTemplateTargetoptions;
               });
               this.previewtftype = 1;
               this.objyl.svyTemplateLibScripts =
-                res.rows[0].svyTemplateLibScripts;
+                res.data.svyTaskTemplateScriptVOS;
             }
           });
         }
@@ -2135,8 +2140,8 @@
     },
     // 鐤剧梾鍒犻櫎瑙﹀彂
     removediagg(row) {
-      console.log(row,'row');
-console.log(this.diagglist,'this.diagglist');
+      console.log(row, "row");
+      console.log(this.diagglist, "this.diagglist");
 
       let result = this.diagglist
         .filter((item) => item.icd10code == row)
@@ -2270,7 +2275,7 @@
               TaskQuestioncomit(this.objyl).then((response) => {
                 this.previewtf = false;
                 this.form.libtemplateid = this.objyl.svyid;
-              this.form.libtemplatename = this.objyl.svyname;
+                this.form.libtemplatename = this.objyl.svyname;
                 this.form.templateid = response.data;
                 this.form.templatename = this.objyl.svyname;
                 this.$modal.msgSuccess("閫夋嫨妯℃澘鎴愬姛");

--
Gitblit v1.9.3