| | |
| | | questionList: [], |
| | | uploadingData: [], |
| | | deptcodesWards: [], //科室数据 |
| | | deptlist: [], |
| | | hosplist: [], |
| | | leavehospitaldistrictcodes: [], //病区数据 |
| | | operationcodes: [], //手术数据 |
| | | illnesscodes: [], //疾病数据 |
| | |
| | | "的医护人员,为了更好地了解您的康复情况,请您抽一点宝贵时间,观看这份宣教资讯。", |
| | | jsy: "生活上要劳逸结合,注意休息和营养,适当锻炼,戒烟限酒,保持心情舒畅,定期复诊。那本次宣教内容就到这里,祝您身体健康!", |
| | | }, |
| | | queryParamsdept: { |
| | | tempid: "", |
| | | type: 2, |
| | | }, |
| | | taskoptions: [ |
| | | { |
| | | value: "4", |
| | |
| | | this.currenttype = this.$route.query.type; |
| | | this.title = "宣教内容列表"; |
| | | this.tableLabel = this.tableLabelxj; |
| | | if (this.form.serviceType == 4) { |
| | | if (this.form.serviceType == 4 || this.form.serviceType == 17) { |
| | | this.checkboxlist = [ |
| | | { |
| | | value: "2", |
| | |
| | | }); |
| | | }, |
| | | addStyleToImages(html) { |
| | | return html.replace( |
| | | if (!html) return html; |
| | | |
| | | // 1. 先修复路径 |
| | | let processedHtml = html.replace( |
| | | /\/aifollowup\/aifollowup\//g, |
| | | "/aifollowup/" |
| | | ); |
| | | |
| | | // 2. 再修复样式 |
| | | processedHtml = processedHtml.replace( |
| | | /<img([^>]*)style=(['"])(?:(?!\2).)*\2([^>]*)>/g, |
| | | '<img$1style="width:100%;height:auto;"$3>' |
| | | ); |
| | | |
| | | return processedHtml; |
| | | }, |
| | | |
| | | // 子任务二级弹框 |
| | |
| | | this.time1 = this.form.showTimeMorn.split(","); |
| | | } |
| | | } |
| | | if (this.form.taskid) { |
| | | this.listDept(); |
| | | } |
| | | if (this.form.showTimeNoon) |
| | | this.time2 = this.form.showTimeNoon.split(","); |
| | | if (this.form.showTimeNight) |
| | |
| | | this.leavehospitaldistrictcodes = []; |
| | | this.deptcodesWards = []; |
| | | this.queryParamsdept.taskId = this.form.taskid; |
| | | console.log(1, this.queryParamsdept); |
| | | |
| | | taskdepthospgetsonlist(this.queryParamsdept).then((res) => { |
| | | if (res.code == 200) { |
| | | let arr = res.rows; |
| | | arr.forEach((item) => { |
| | | if (item.deptType == 1) { |
| | | console.log(1); |
| | | |
| | | this.deptlist.push(item); |
| | | this.deptcodesWards.push(item.deptCode); |
| | | } else if (item.deptType == 2) { |
| | | console.log(2, this.hosplist); |
| | | |
| | | this.hosplist.push(item); |
| | | this.leavehospitaldistrictcodes.push(item.deptCode); |
| | | } |