| | |
| | | <template> |
| | | <div class="educationmanagement"> |
| | | |
| | | <!-- 左侧栏 --> |
| | | <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 |
| | |
| | | > |
| | | <el-option |
| | | v-for="item in courtyardlist" |
| | | :key="item.label" |
| | | :label="item.label" |
| | | :value="item.label" |
| | | > |
| | |
| | | > |
| | | <el-option |
| | | v-for="(item, index) in qyoptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | |
| | | </div> |
| | | </div> |
| | | <!-- 添加类别弹框 --> |
| | | <el-dialog title="新增类别" width="30%" :visible.sync="dialogFormVisible"> |
| | | <el-dialog title="类别编辑" width="30%" :visible.sync="dialogFormVisible"> |
| | | <div style="text-align: center; margin-bottom: 20px"> |
| | | <el-radio-group v-model="radio"> |
| | | <el-radio-button label="主分类"></el-radio-button> |
| | |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | hetype:1, |
| | | isavailable: "", |
| | | }, |
| | | }; |
| | |
| | | // const res = await getnodeCollect(); |
| | | // this.nodeCollect = res.data; |
| | | // this.nodeCollect = [ |
| | | // { name: "门诊随访", value: 1232 }, |
| | | // { name: "影像随访", value: 1232 }, |
| | | // { name: "出院随访", value: 342 }, |
| | | // ]; |
| | | this.myPieChart(); |
| | |
| | | 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("获取富文本失败"); |
| | |
| | | }, |
| | | // 打开统计图表 |
| | | statistics() { |
| | | this.Collarrname=[]; |
| | | this.Collarrvalue=[]; |
| | | //取数据 |
| | | let obj = { assortid: 13, isavailable: "", pageNum: 1, pageSize: 20 }; |
| | | getlibrarylist(obj).then((response) => { |
| | |
| | | }, |
| | | // 查询树 |
| | | 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; |