WXL (wul)
2026-05-08 f9902f7a3b79d22bde9f199263ac36de26816470
src/views/patient/propaganda/Missioncreation.vue
@@ -870,6 +870,8 @@
      questionList: [],
      uploadingData: [],
      deptcodesWards: [], //科室数据
      deptlist: [],
      hosplist: [],
      leavehospitaldistrictcodes: [], //病区数据
      operationcodes: [], //手术数据
      illnesscodes: [], //疾病数据
@@ -1041,6 +1043,10 @@
          "的医护人员,为了更好地了解您的康复情况,请您抽一点宝贵时间,观看这份宣教资讯。",
        jsy: "生活上要劳逸结合,注意休息和营养,适当锻炼,戒烟限酒,保持心情舒畅,定期复诊。那本次宣教内容就到这里,祝您身体健康!",
      },
      queryParamsdept: {
        tempid: "",
        type: 2,
      },
      taskoptions: [
        {
          value: "4",
@@ -1147,7 +1153,7 @@
      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",
@@ -1362,10 +1368,21 @@
      });
    },
    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;
    },
    // 子任务二级弹框
@@ -1635,6 +1652,9 @@
                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)
@@ -1721,14 +1741,20 @@
      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);
            }