| | |
| | | <template> |
| | | <div class="questionnaire"> |
| | | <!-- <div class="CONTENT"> |
| | | <div class="title">浙中医大二院医护知识宣教</div> |
| | | <div class="title">无锡儿童医院医护知识宣教</div> |
| | | <div class="preview-left"> |
| | | <div v-html="richText"></div> |
| | | </div> |
| | |
| | | <div class="CONTENT" > |
| | | <div class="preview-left"> |
| | | <div class="toptitle"> |
| | | <div class="title">{{ taskname ? taskname : "浙中医大二院医护知识宣教" }}</div> |
| | | <div class="title">{{ taskname ? taskname : "无锡儿童医院医护知识宣教" }}</div> |
| | | <div style="font-size: 22px; margin-bottom: 20px; line-height: 1.5"> |
| | | {{ |
| | | kcb |
| | | ? kcb |
| | | : "亲爱的患者-家属,您好!我们是浙中医大二院的医护人员,为了更好地了解您的康复情况,请您抽一点宝贵时间,观看这份宣教资讯。" |
| | | : "亲爱的患者-家属,您好!我们是无锡儿童医院的医护人员,为了更好地了解您的康复情况,请您抽一点宝贵时间,观看这份宣教资讯。" |
| | | }} |
| | | <!-- 亲爱的患者/家属您好,为了更好的了解您出院后的康复情况,给您适当及时的健康指导,请您抽一点宝贵时间,完成这份出院随访问卷调查。 --> |
| | | </div> |
| | |
| | | <script> |
| | | import { |
| | | getExternalfollowup, |
| | | SetsaveQuestionAnswer, |
| | | Submitaquestionnaire, |
| | | geturlinfo, |
| | | } from "@/api/AiCentre/index"; |
| | | import { getToken } from "@/utils/auth"; |
| | | import axios from "axios"; |
| | |
| | | }, |
| | | |
| | | created() { |
| | | this.getQuestionnaire(); |
| | | }, |
| | | this.geturlinfo(); }, |
| | | methods: { |
| | | // 解析urlid |
| | | geturlinfo() { |
| | | // let url = window.location.href; |
| | | let url = this.$route.query.p; |
| | | // let url = 'http://218.108.11.22:8093/sf/003'; |
| | | // let urlid = this.extractLastSegmentFromUrl(url); |
| | | |
| | | geturlinfo(url).then((res) => { |
| | | if (res.code == 200) { |
| | | this.getQuestionnaire( |
| | | res.data.param1, |
| | | res.data.param2, |
| | | res.data.param3, |
| | | res.data.param5 |
| | | ); |
| | | } |
| | | }); |
| | | }, |
| | | // 获取数据 |
| | | getQuestionnaire() { |
| | | this.taskid = this.$route.query.param1; |
| | | this.patid = this.$route.query.param2; |
| | | this.taskname = this.$route.query.param3; |
| | | getQuestionnaire(param1, param2, param3) { |
| | | this.taskid = decodeURIComponent(param1); |
| | | this.patid = decodeURIComponent(param2); |
| | | // // let taskid = |
| | | // // "OFp7tn/B6x7IzKJetvGWHdSWBj7msRlnlj6am9dyuHTH6sEt4uBbVCUXs5kcF/e4O2W6vqHf2Bz9K3/evbYDmw=="; |
| | | // // let patid = |
| | |
| | | }); |
| | | console.log(form, "form"); |
| | | |
| | | SetsaveQuestionAnswer(form).then((res) => { |
| | | Submitaquestionnaire(form).then((res) => { |
| | | if (res.code == 200) { |
| | | this.$modal.msgSuccess("提交成功"); |
| | | } |