| | |
| | | .then((response) => { |
| | | console.log(response.data, "数据"); // 输出获取到的文件内容 |
| | | this.richText = response.data; |
| | | // this.richText = |
| | | // '<p>This is an image: <img src="https://example.com/image.jpg"></p>'; |
| | | // }) |
| | | this.richText = this.addStyleToImages(this.richText); |
| | | }) |
| | | .catch((error) => { |
| | |
| | | // 确认选择模版放入任务模版 |
| | | selectfn(row, type) { |
| | | // 模版情况下获取模版信息 |
| | | |
| | | this.libName = row.preachname; |
| | | this.libName = row.templateName; |
| | | this.libId = row.id; |
| | | getvFollowup({ id: row.id }).then((res) => { |
| | | if (res.code == 200) { |
| | |
| | | this.Tasktemplate.libtemplateid = id; |
| | | this.Tasktemplate.isoperation = 1; |
| | | this.Tasktemplate.libtemplatename = this.Tasktemplate.templateName; |
| | | console.log(this.libName, this.libId); |
| | | |
| | | TaskTemplatecomit(this.Tasktemplate).then((response) => { |
| | | console.log(response); |
| | | this.previewtf = false; |