WXL (wul)
20 小时以前 d93ed5c5aadcf3d49f824339c26ebfac911be06d
src/views/knowledge/education/index.vue
@@ -1,10 +1,11 @@
<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
@@ -87,7 +88,6 @@
                >
                  <el-option
                    v-for="item in courtyardlist"
                    :key="item.label"
                    :label="item.label"
                    :value="item.label"
                  >
@@ -111,7 +111,6 @@
                >
                  <el-option
                    v-for="(item, index) in qyoptions"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  >
@@ -365,7 +364,7 @@
      </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>
@@ -597,6 +596,7 @@
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        hetype:1,
        isavailable: "",
      },
    };
@@ -784,6 +784,13 @@
        query: { id: row.id },
      });
    },
         Newcategory(){
      this.classifyform= {}, //类别表单
      this.radio = "主分类";
     this.dialogFormVisible = true
     this.zifon = true;
      this.zufon = true;
    },
    // 查看宣教
    Vieweducation(row) {
      this.htmlRichText = null;
@@ -793,7 +800,9 @@
        .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("获取富文本失败");
@@ -823,6 +832,8 @@
    },
    // 打开统计图表
    statistics() {
      this.Collarrname=[];
      this.Collarrvalue=[];
      //取数据
      let obj = { assortid: 13, isavailable: "", pageNum: 1, pageSize: 20 };
      getlibrarylist(obj).then((response) => {
@@ -854,7 +865,7 @@
    },
    // 查询树
    getDeptTree() {
      getheLibraryAssort({}).then((res) => {
      getheLibraryAssort({ hetype: 2 }).then((res) => {
        this.deptOptions = res.rows;
        this.dialogFormVisible = false;
      });
@@ -929,8 +940,12 @@
      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;