| | |
| | | </div> |
| | | |
| | | </div> --> |
| | | <div class="CONTENT" > |
| | | <div class="CONTENT"> |
| | | <div class="preview-left"> |
| | | <div class="toptitle"> |
| | | <div class="title">{{ taskname ? taskname : ""+localStorage.getItem("orgname")+"医护知识宣教" }}</div> |
| | | <div class="title"> |
| | | {{ |
| | | taskname |
| | | ? taskname |
| | | : "医护知识宣教" |
| | | }} |
| | | </div> |
| | | <div style="font-size: 22px; margin-bottom: 20px; line-height: 1.5"> |
| | | {{ |
| | | kcb |
| | | ? kcb |
| | | : "亲爱的患者-家属,我们是"+localStorage.getItem("orgname")+"的医护人员,为了更好地了解您的康复情况,请您抽一点宝贵时间,观看这份宣教资讯。" |
| | | : "亲爱的患者-家属,我们是医护人员,为了更好地了解您的康复情况,请您抽一点宝贵时间,观看这份宣教资讯。" |
| | | }} |
| | | <!-- 亲爱的患者/家属您好,为了更好的了解您出院后的康复情况,给您适当及时的健康指导,请您抽一点宝贵时间,完成这份出院随访问卷调查。 --> |
| | | </div> |
| | |
| | | margin-bottom: 10px; |
| | | " |
| | | > |
| | | {{ |
| | | {{ |
| | | jsy |
| | | ? jsy |
| | | : "生活上要劳逸结合,注意休息和营养,适当锻炼,戒烟限酒,保持心情舒畅,定期复诊。那本次宣教内容就到这里,祝您身体健康!" |
| | | }} </div> |
| | | }} |
| | | </div> |
| | | <!-- <div style="font-size: 20px"> |
| | | {{ |
| | | jsy |
| | |
| | | import { |
| | | getExternalfollowup, |
| | | Submitaquestionnaire, |
| | | geturlinfo |
| | | geturlinfo, |
| | | } from "@/api/AiCentre/index"; |
| | | import { getToken } from "@/utils/auth"; |
| | | import axios from "axios"; |
| | |
| | | question3: "", |
| | | }, |
| | | richText: "<p>Hello, <strong>world</strong>!</p>", |
| | | url:'', |
| | | taskname:'', |
| | | kcb:'', |
| | | jsy:'', |
| | | url: "", |
| | | taskname: "", |
| | | kcb: "", |
| | | jsy: "", |
| | | }; |
| | | }, |
| | | |
| | | created() { |
| | | this.getQuestionnaire(); |
| | | this.geturlinfo(); |
| | | }, |
| | | methods: { |
| | | // 解析urlid |
| | |
| | | // 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,) |
| | | } |
| | | geturlinfo(url).then((res) => { |
| | | if (res.code == 200) { |
| | | this.getQuestionnaire( |
| | | res.data.param1, |
| | | res.data.param2, |
| | | res.data.param3, |
| | | res.data.param5 |
| | | ); |
| | | } |
| | | }); |
| | | }, |
| | | extractLastSegmentFromUrl(url) { |
| | | // 找到最后一个'/'的位置 |
| | | const lastSlashIndex = url.lastIndexOf('/'); |
| | | // 如果找到了'/',截取其后的所有字符 |
| | | if (lastSlashIndex !== -1) { |
| | | return url.substring(lastSlashIndex + 1); |
| | | } |
| | | // 如果没有找到'/',返回空字符串 |
| | | return ''; |
| | | }, |
| | | // extractLastSegmentFromUrl(url) { |
| | | // // 找到最后一个'/'的位置 |
| | | // const lastSlashIndex = url.lastIndexOf('/'); |
| | | // // 如果找到了'/',截取其后的所有字符 |
| | | // if (lastSlashIndex !== -1) { |
| | | // return url.substring(lastSlashIndex + 1); |
| | | // } |
| | | // // 如果没有找到'/',返回空字符串 |
| | | // return ''; |
| | | // }, |
| | | // 获取数据 |
| | | getQuestionnaire(param1,param2,param3) { |
| | | this.taskid = param1; |
| | | this.patid = param2; |
| | | this.taskname = param3; |
| | | getQuestionnaire(param1, param2, param3) { |
| | | this.taskid = decodeURIComponent(param1); |
| | | this.patid = decodeURIComponent(param2); |
| | | this.taskname = decodeURIComponent(param3); |
| | | // // let taskid = |
| | | // // "OFp7tn/B6x7IzKJetvGWHdSWBj7msRlnlj6am9dyuHTH6sEt4uBbVCUXs5kcF/e4O2W6vqHf2Bz9K3/evbYDmw=="; |
| | | // // let patid = |
| | |
| | | // // this.$modal.msgSuccess("任务id为" + this.taskid); |
| | | // let taskids = this.encrypt(this.taskid); |
| | | // let patids = this.encrypt(this.patid); |
| | | getExternalfollowup({ param1: this.taskid, param2: this.patid }).then((res) => { |
| | | if (res.code == 200) { |
| | | this.url = res.data.script[0].richText; |
| | | this.jsy = res.data.jsy; |
| | | this.kcb = res.data.kcb; |
| | | // 临时获取数据 |
| | | axios |
| | | .get(this.url) |
| | | .then((response) => { |
| | | console.log(response.data, "数据"); // 输出获取到的文件内容 |
| | | this.richText = response.data; |
| | | this.richText = this.addStyleToImages(this.richText); |
| | | }) |
| | | .catch((error) => { |
| | | console.error("Failed to fetch file:", error); |
| | | }); |
| | | getExternalfollowup({ param1: this.taskid, param2: this.patid }).then( |
| | | (res) => { |
| | | if (res.code == 200) { |
| | | this.url = res.data.script[0].richText; |
| | | this.jsy = res.data.jsy; |
| | | this.kcb = res.data.kcb; |
| | | // 临时获取数据 |
| | | axios |
| | | .get(this.url) |
| | | .then((response) => { |
| | | console.log(response.data, "数据"); // 输出获取到的文件内容 |
| | | this.richText = response.data; |
| | | this.richText = this.addStyleToImages(this.richText); |
| | | }) |
| | | .catch((error) => { |
| | | console.error("Failed to fetch file:", error); |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | |
| | | ); |
| | | }, |
| | | addStyleToImages(html) { |
| | | return html.replace( |
| | |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | |
| | | .questionnaire { |
| | | background-image: url("../assets/images/chainbackground1.jpg"); |
| | | background-color: #f9f9fb; |