From 15c90ad541d895a4e0ceab0dd430260535479341 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期四, 07 五月 2026 10:20:44 +0800
Subject: [PATCH] 测试完成
---
src/views/knowledge/education/index.vue | 40 ++++++++++++++++++++++++++++++++--------
1 files changed, 32 insertions(+), 8 deletions(-)
diff --git a/src/views/knowledge/education/index.vue b/src/views/knowledge/education/index.vue
index 8b17e2c..8b48504 100644
--- a/src/views/knowledge/education/index.vue
+++ b/src/views/knowledge/education/index.vue
@@ -4,7 +4,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
@@ -87,7 +87,6 @@
>
<el-option
v-for="item in courtyardlist"
- :key="item.label"
:label="item.label"
:value="item.label"
>
@@ -111,7 +110,6 @@
>
<el-option
v-for="(item, index) in qyoptions"
- :key="item.value"
:label="item.label"
:value="item.value"
>
@@ -365,7 +363,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 +595,7 @@
queryParams: {
pageNum: 1,
pageSize: 10,
+ hetype: 1,
isavailable: "",
},
};
@@ -644,7 +643,7 @@
// const res = await getnodeCollect();
// this.nodeCollect = res.data;
// this.nodeCollect = [
- // { name: "闂ㄨ瘖闅忚", value: 1232 },
+ // { name: "褰卞儚闅忚", value: 1232 },
// { name: "鍑洪櫌闅忚", value: 342 },
// ];
this.myPieChart();
@@ -784,6 +783,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,6 +800,7 @@
console.log(response.data, "鏁版嵁"); // 杈撳嚭鑾峰彇鍒扮殑鏂囦欢鍐呭
this.htmlRichText = response.data;
this.htmlRichText = this.addStyleToImages(this.htmlRichText);
+ // console.log(this.htmlRichText);
})
.catch((error) => {
this.$modal.msgError("鑾峰彇瀵屾枃鏈け璐�");
@@ -801,10 +808,21 @@
});
},
addStyleToImages(html) {
- return html.replace(
+ if (!html) return html;
+
+ // 1. 鍏堜慨澶嶈矾寰�
+ let processedHtml = html.replace(
+ /\/aifollowup\/aifollowup\//g,
+ "/aifollowup/"
+ );
+
+ // 2. 鍐嶄慨澶嶆牱寮�
+ processedHtml = processedHtml.replace(
/<img([^>]*)style=(['"])(?:(?!\2).)*\2([^>]*)>/g,
'<img$1style="width:100%;height:auto;"$3>'
);
+
+ return processedHtml;
},
/** 鍒犻櫎鎸夐挳鎿嶄綔 */
@@ -823,8 +841,10 @@
},
// 鎵撳紑缁熻鍥捐〃
statistics() {
+ this.Collarrname = [];
+ this.Collarrvalue = [];
//鍙栨暟鎹�
- let obj = { assortid: 13, isavailable: "", pageNum: 1, pageSize: 10 };
+ let obj = { assortid: 13, isavailable: "", pageNum: 1, pageSize: 20 };
getlibrarylist(obj).then((response) => {
console.log(response.rows, "response.rows");
response.rows.forEach((item) => {
@@ -854,7 +874,7 @@
},
// 鏌ヨ鏍�
getDeptTree() {
- getheLibraryAssort({}).then((res) => {
+ getheLibraryAssort({ hetype: 1 }).then((res) => {
this.deptOptions = res.rows;
this.dialogFormVisible = false;
});
@@ -929,8 +949,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