| | |
| | | <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> |
| | |
| | | haoeducation: "", |
| | | indexid: null, |
| | | inputValue: "", |
| | | richText: "", |
| | | htmlRichText: "", |
| | | radio: "主分类", |
| | | inputVisible: false, |
| | | previewtf: false, |
| | |
| | | }, |
| | | // 查看宣教 |
| | | 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("获取富文本失败"); |