WXL
2024-09-09 d27e3ada8f1e9c005747988e9bf2519fcd6da21a
src/views/outsideChainxj.vue
@@ -1,16 +1,16 @@
<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>
      <el-form :model="formData" label-width="80px">
      <!-- <el-form :model="formData" label-width="80px">
        <el-form-item>
          <el-button type="primary" @click="submitForm">确认查看</el-button>
        </el-form-item>
      </el-form>
      </el-form> -->
    </div>
  </div>
</template>
@@ -41,6 +41,7 @@
        question3: "",
      },
      richText: "<p>Hello, <strong>world</strong>!</p>",
      url:'',
    };
  },
@@ -50,8 +51,8 @@
  methods: {
    // 获取数据
    getQuestionnaire() {
      // let taskid = this.$route.query.param1;
      // let patid = this.$route.query.param2;
      this.taskid = this.$route.query.param1;
      this.patid = this.$route.query.param2;
      // // let taskid =
      // //   "OFp7tn/B6x7IzKJetvGWHdSWBj7msRlnlj6am9dyuHTH6sEt4uBbVCUXs5kcF/e4O2W6vqHf2Bz9K3/evbYDmw==";
      // // let patid =
@@ -63,16 +64,12 @@
      // // this.$modal.msgSuccess("任务id为" + this.taskid);
      // let taskids = this.encrypt(this.taskid);
      // let patids = this.encrypt(this.patid);
      // getExternalfollowup({ param1: taskids, param2: patids }).then((res) => {
      //   if (res.code == 200) {
      //     this.questionList = res.rows;
      //   }
      // });
      // 临时获取数据
      getExternalfollowup({ param1: this.taskid, param2: this.patid }).then((res) => {
        if (res.code == 200) {
          this.url = res.data.script[0].richText;
          // 临时获取数据
      axios
        .get(
          "http://116.62.18.175:8096/profile/upload/show/挂号需知/挂号需知.html"
        )
        .get(this.url)
        .then((response) => {
          console.log(response.data, "数据"); // 输出获取到的文件内容
          this.richText = response.data;
@@ -81,6 +78,9 @@
        .catch((error) => {
          console.error("Failed to fetch file:", error);
        });
        }
      });
    },
    addStyleToImages(html) {
      return html.replace(
@@ -106,8 +106,8 @@
      // 提交表单逻辑
      console.log(this.questionList);
      let form = {
        param1: this.encrypt(this.taskid),
        param2: this.encrypt(this.patid),
        param1: this.taskid,
        param2: this.patid,
        ivrTaskcalldetailList: [],
      };
      this.questionList.forEach((item) => {