WXL
2024-12-03 294e513504423b4726c36046decc649f272851e0
src/views/knowledge/education/index.vue
@@ -444,13 +444,13 @@
        <div class="qrcode-img"></div>
      </div>
    </el-dialog>
    <el-dialog title="模版预览" :visible.sync="previewtf" width="60%">
    <el-dialog title="模板预览" :visible.sync="previewtf" width="60%">
      <div class="preview-left">
        <!-- 单选 -->
        <div v-html="richText"></div>
        <div v-html="htmlRichText"></div>
      </div>
      <!-- <span slot="footer" class="dialog-footer">
        <el-button @click="previewGo">前往模版详情修改</el-button>
        <el-button @click="previewGo">前往模板详情修改</el-button>
        <el-button type="primary" @click="previewFn">确认使用</el-button>
      </span> -->
    </el-dialog>
@@ -501,7 +501,7 @@
      haoeducation: "",
      indexid: null,
      inputValue: "",
      richText: "",
      htmlRichText: "",
      radio: "主分类",
      inputVisible: false,
      previewtf: false,
@@ -652,14 +652,14 @@
    },
    // 查看宣教
    Vieweducation(row) {
      this.richText = null;
      this.htmlRichText = null;
      this.previewtf = true;
      axios
        .get(row.richText)
        .get(row.htmlRichText)
        .then((response) => {
          console.log(response.data, "数据"); // 输出获取到的文件内容
          this.richText = response.data;
          this.richText = this.addStyleToImages(this.richText);
          this.htmlRichText = response.data;
          this.htmlRichText = this.addStyleToImages(this.htmlRichText);
        })
        .catch((error) => {
          this.$modal.msgError("获取富文本失败");