| | |
| | | <div class="sidecolumn"> |
| | | <div class="sidecolumn-top"> |
| | | <div class="top-wj">宣教类型</div> |
| | | <div class="top-tj" @click="dialogFormVisible = true">+添加类别</div> |
| | | <div class="top-tj" @click="Newcategory">+添加类别</div> |
| | | </div> |
| | | <div class="center-ss"> |
| | | <el-input |
| | |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | hetype:1, |
| | | isavailable: "", |
| | | }, |
| | | }; |
| | |
| | | query: { id: row.id }, |
| | | }); |
| | | }, |
| | | Newcategory(){ |
| | | this.classifyform= {}, //类别表单 |
| | | this.radio = "主分类"; |
| | | this.dialogFormVisible = true |
| | | this.zifon = true; |
| | | this.zufon = true; |
| | | }, |
| | | // 查看宣教 |
| | | Vieweducation(row) { |
| | | this.htmlRichText = null; |
| | |
| | | .then((response) => { |
| | | console.log(response.data, "数据"); // 输出获取到的文件内容 |
| | | this.htmlRichText = response.data; |
| | | this.htmlRichText = this.addStyleToImages(this.htmlRichText); |
| | | // this.htmlRichText = this.addStyleToImages(this.htmlRichText); |
| | | console.log(this.htmlRichText); |
| | | |
| | | }) |
| | | .catch((error) => { |
| | | this.$modal.msgError("获取富文本失败"); |
| | |
| | | }, |
| | | // 查询树 |
| | | getDeptTree() { |
| | | getheLibraryAssort({}).then((res) => { |
| | | getheLibraryAssort({ hetype: 2 }).then((res) => { |
| | | this.deptOptions = res.rows; |
| | | this.dialogFormVisible = false; |
| | | }); |
| | |
| | | this.dialogFormVisible = true; |
| | | if (!b.pid) { |
| | | this.radio = "主分类"; |
| | | this.title = "修改主分类"; |
| | | this.zufon = false; |
| | | } else { |
| | | this.radio = "子分类"; |
| | | this.title = "修改子分类"; |
| | | this.zifon = false; |
| | | } |
| | | this.classifyform = b; |
| | | this.dialogFormVisible = true; |