WXL (wul)
15 小时以前 d93ed5c5aadcf3d49f824339c26ebfac911be06d
src/views/knowledge/education/index.vue
@@ -5,7 +5,7 @@
    <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
@@ -596,6 +596,7 @@
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        hetype:1,
        isavailable: "",
      },
    };
@@ -783,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;
@@ -792,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("获取富文本失败");
@@ -855,7 +865,7 @@
    },
    // 查询树
    getDeptTree() {
      getheLibraryAssort({}).then((res) => {
      getheLibraryAssort({ hetype: 2 }).then((res) => {
        this.deptOptions = res.rows;
        this.dialogFormVisible = false;
      });
@@ -930,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;