From 5c35457d2cc1fd0dcf8de9f3de838d58e8296cb8 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期一, 09 九月 2024 18:26:33 +0800 Subject: [PATCH] 测试完成 --- src/views/patient/propaganda/QuestionnaireTask.vue | 136 ++++++++++++++++++++++++--------------------- 1 files changed, 72 insertions(+), 64 deletions(-) diff --git a/src/views/patient/propaganda/QuestionnaireTask.vue b/src/views/patient/propaganda/QuestionnaireTask.vue index 1c8b4ea..a08b14c 100644 --- a/src/views/patient/propaganda/QuestionnaireTask.vue +++ b/src/views/patient/propaganda/QuestionnaireTask.vue @@ -416,66 +416,66 @@ </el-dialog> <el-dialog title="妯℃澘棰勮" :visible.sync="previewtf" width="60%"> <div class="preview-left"> - <!-- 鍗曢�� --> - <div - class="scriptTopic-dev" - v-for="item in questionList" - :key="item.sort" - v-if="item.scriptType == 1" - > - <div class="dev-text"> - {{ item.sort }}銆乕鍗曢�塢<span>{{ item.scriptContent }}</span> + <div v-for="item in questionList"> + <!-- 鍗曢�� --> + <div + class="scriptTopic-dev" + :key="item.sort" + v-if="item.scriptType == 1" + > + <div class="dev-text"> + {{ item.sort }}銆乕鍗曢�塢<span>{{ item.scriptContent }}</span> + </div> + <div class="dev-xx"> + <el-radio-group v-model="item.remark"> + <el-radio + v-for="(items, index) in item.svyLibTemplateTargetoptions" + :key="index" + :label="index" + >{{ items.optioncontent }}</el-radio + > + </el-radio-group> + </div> </div> - <div class="dev-xx"> - <el-radio-group v-model="item.remark"> - <el-radio - v-for="(items, index) in item.svyLibTemplateTargetoptions" - :key="index" - :label="index" - >{{ items.optioncontent }}</el-radio - > - </el-radio-group> + <!-- 澶氶�� --> + <div + class="scriptTopic-dev" + :key="item.sort" + v-if="item.scriptType == 2" + > + <div class="dev-text"> + {{ item.sort }}銆乕澶氶�塢<span>{{ item.scriptContent }}</span> + </div> + <div class="dev-xx"> + <el-checkbox-group v-model="qremark"> + <el-checkbox + v-for="(items, index) in item.svyLibTemplateTargetoptions" + :key="index" + :label="index" + > + {{ items.optioncontent }} + </el-checkbox> + </el-checkbox-group> + </div> </div> - </div> - <!-- 澶氶�� --> - <div - class="scriptTopic-dev" - v-for="item in questionList" - v-if="item.scriptType == 2" - > - <div class="dev-text"> - {{ item.sort }}銆乕澶氶�塢<span>{{ item.scriptContent }}</span> - </div> - <div class="dev-xx"> - <el-checkbox-group v-model="multiplechoice"> - <el-checkbox - v-for="items in item.svyLibTemplateTargetoptions" - :key="items.optioncontent" - :label="items.optioncontent" - > - {{ items.optioncontent }} - </el-checkbox> - </el-checkbox-group> - </div> - </div> - <!-- 濉┖ --> - <div - class="scriptTopic-dev" - v-for="item in questionList" - :key="item.sort" - v-if="item.scriptType == 4" - > - <div class="dev-text"> - {{ item.sort }}銆乕濉┖]<span>{{ item.scriptContent }}</span> - </div> - <div class="dev-xx"> - <el-input placeholder="璇疯緭鍏ョ瓟妗�" v-model="item.radioas" clearable> - </el-input> + <!-- 濉┖ --> + <div + class="scriptTopic-dev" + :key="item.sort" + v-if="item.scriptType == 4" + > + <div class="dev-text"> + {{ item.sort }}銆乕闂瓟]<span>{{ item.scriptContent }}</span> + </div> + <div class="dev-xx"> + <el-input placeholder="璇疯緭鍏ョ瓟妗�" v-model="radioas" clearable> + </el-input> + </div> </div> </div> </div> <span slot="footer" class="dialog-footer"> - <el-button @click="previewGo">鍓嶅線妯℃澘璇︽儏淇敼</el-button> + <!-- <el-button @click="previewGo">鍓嶅線妯℃澘璇︽儏淇敼</el-button> --> <el-button type="primary" @click="previewFn">纭浣跨敤</el-button> </span> </el-dialog> @@ -562,6 +562,7 @@ getlibrarylist, getFollowuplist, getQtemplatelist, + getQtemplateobj, TaskQuestioncomit, Questionnairetaskget, gethetaskinfo, @@ -963,11 +964,13 @@ submitForm(formName) { if (this.time4 && this.form.sendType == 3) this.form.showTimeMorn = this.time4; - this.form.sendTimeslot = [{ - begantime: this.time4, - endtime: "", - xh: 1, - }]; + this.form.sendTimeslot = [ + { + begantime: this.time4, + endtime: "", + xh: 1, + }, + ]; if (this.checkList[0]) { this.form.preachform = this.checkList.join(","); } else { @@ -1026,7 +1029,13 @@ this.libId = row.svyid; this.Tasktemplate = row; this.questionList = row.svyTemplateLibScripts; - this.previewtf = true; + getQtemplateobj({ svyid: row.svyid }).then((res) => { + if (res.code==200) { + this.questionList = res.rows[0].svyTemplateLibScripts; + this.previewtf = true; + } + }); + console.log(row.svyTemplateLibScripts); this.previewid = row.svyid; this.Variablehandling(row.svyTemplateLibScripts, 1); } else if (type == 2) { @@ -1037,10 +1046,8 @@ previewfnmb() { console.log(this.form); - getQtemplatelist({ svyid: this.form.libtemplateid }).then((res) => { + getQtemplateobj({ svyid: this.form.libtemplateid }).then((res) => { if (res.code == 200) { - console.log(); - this.questionList = res.rows[0].svyTemplateLibScripts; this.previewtf = true; } @@ -1229,7 +1236,8 @@ this.overallCase = this.form.patTaskRelevances.concat(); this.checkList = this.form.preachform.split(","); console.log(this.form, "this.form"); - if (this.form.showDate)this.daytime = this.form.showDate.split(","); + if (this.form.showDate) + this.daytime = this.form.showDate.split(","); if (this.form.showTimeMorn) { if (this.form.sendType == 3) { this.time4 = this.form.showTimeMorn; -- Gitblit v1.9.3