From d93ed5c5aadcf3d49f824339c26ebfac911be06d Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期五, 07 十一月 2025 14:39:38 +0800
Subject: [PATCH] 测试完成

---
 src/views/knowledge/education/index.vue |   24 ++++++++++++++++++------
 1 files changed, 18 insertions(+), 6 deletions(-)

diff --git a/src/views/knowledge/education/index.vue b/src/views/knowledge/education/index.vue
index 795dfde..5a090ab 100644
--- a/src/views/knowledge/education/index.vue
+++ b/src/views/knowledge/education/index.vue
@@ -5,7 +5,7 @@
     <div class="sidecolumn">
       <div class="sidecolumn-top">
         <div class="top-wj">瀹f暀绫诲瀷</div>
-        <div class="top-tj" @click="dialogFormVisible = true">+娣诲姞绫诲埆</div>
+        <div class="top-tj" @click="Newcategory">+娣诲姞绫诲埆</div>
       </div>
       <div class="center-ss">
         <el-input
@@ -88,7 +88,6 @@
                 >
                   <el-option
                     v-for="item in courtyardlist"
-                    :key="item.label"
                     :label="item.label"
                     :value="item.label"
                   >
@@ -112,7 +111,6 @@
                 >
                   <el-option
                     v-for="(item, index) in qyoptions"
-                    :key="item.value"
                     :label="item.label"
                     :value="item.value"
                   >
@@ -366,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>
@@ -598,6 +596,7 @@
       queryParams: {
         pageNum: 1,
         pageSize: 10,
+        hetype:1,
         isavailable: "",
       },
     };
@@ -785,6 +784,13 @@
         query: { id: row.id },
       });
     },
+         Newcategory(){
+      this.classifyform= {}, //绫诲埆琛ㄥ崟
+      this.radio = "涓诲垎绫�";
+     this.dialogFormVisible = true
+     this.zifon = true;
+      this.zufon = true;
+    },
     // 鏌ョ湅瀹f暀
     Vieweducation(row) {
       this.htmlRichText = null;
@@ -794,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("鑾峰彇瀵屾枃鏈け璐�");
@@ -857,7 +865,7 @@
     },
     // 鏌ヨ鏍�
     getDeptTree() {
-      getheLibraryAssort({}).then((res) => {
+      getheLibraryAssort({ hetype: 2 }).then((res) => {
         this.deptOptions = res.rows;
         this.dialogFormVisible = false;
       });
@@ -932,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;

--
Gitblit v1.9.3