From 88d423ce3a1f624bc3b84b4c71ec06d8024da15b Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期六, 07 九月 2024 16:09:25 +0800
Subject: [PATCH] 测试完成
---
src/views/knowledge/education/compilequer/index.vue | 25 +++++++++++++++++--------
1 files changed, 17 insertions(+), 8 deletions(-)
diff --git a/src/views/knowledge/education/compilequer/index.vue b/src/views/knowledge/education/compilequer/index.vue
index b064c0e..34798b9 100644
--- a/src/views/knowledge/education/compilequer/index.vue
+++ b/src/views/knowledge/education/compilequer/index.vue
@@ -408,13 +408,14 @@
];
export default {
+ name: "Educationinfo",
components: { OptionalForm },
data() {
return {
headers: {
Authorization: "Bearer " + getToken(),
},
- uploadImgUrl: process.env.VUE_APP_BASE_API + "/common/upload",
+ uploadImgUrl: process.env.VUE_APP_BASE_API + "/common/uploadSort",
uploadImgUrlword: process.env.VUE_APP_BASE_API + "/common/uploadShow",
uploadUrlPath: "娌℃湁鏂囦欢涓婁紶",
quillUpdateImg: false,
@@ -542,6 +543,13 @@
},
};
},
+ activated() {
+ if (this.id != this.$route.query.id) {
+ this.gettabList();
+ this.getList();
+ this.illnessUpdate();
+ }
+ },
created() {
this.gettabList();
@@ -609,7 +617,7 @@
this.ruleForm.campus = this.ruleForm.campus.join(",");
this.ruleForm.labelInfo = tgs.length != 0 ? tgs.join(", ") : "";
this.ruleForm.otherdata = JSON.stringify(this.variablelist);
- this.ruleForm.hetype = 2;
+ this.ruleForm.hetype = 1;
console.log(22);
this.ruleForm.suitway =
this.ruleForm.suitway.length != 0
@@ -820,7 +828,7 @@
// --------------------------
- // 棰勮妯$増
+ // 棰勮妯℃澘
PreviewTemplate() {
this.drawer = true;
},
@@ -841,12 +849,11 @@
// 涓婁紶鍥剧墖鎴愬姛
uploadEditorSuccess(res, file) {
console.log("涓婁紶鎴愬姛");
- // this.$emit('upload',res, file)
- console.log(res, file);
//鎷兼帴鍑轰笂浼犵殑鍥剧墖鍦ㄦ湇鍔″櫒鐨勫畬鏁村湴鍧�
let imgUrl = res.url;
let type = imgUrl.substring(imgUrl.lastIndexOf(".") + 1);
- console.log(type);
+ this.fileName = this.getFileNameFromPath(res.url);
+
// 鑾峰彇瀵屾枃鏈粍浠跺疄渚�
let quill = this.$refs.customQuillEditor.quill;
// 鑾峰彇鍏夋爣鎵�鍦ㄤ綅缃�
@@ -918,7 +925,8 @@
console.log(response.data, "鏁版嵁"); // 杈撳嚭鑾峰彇鍒扮殑鏂囦欢鍐呭
this.content = response.data;
this.texturl = res.url;
- this.fileName = this.getFileNameFromPath(res.url);
+ this.fileName = this.getFileNameFromPath(response.url);
+ console.log(this.fileName, "this.fileName");
})
.catch((error) => {
console.error("Failed to fetch file:", error);
@@ -930,7 +938,8 @@
.then((response) => {
console.log(response.data, "鏁版嵁"); // 杈撳嚭鑾峰彇鍒扮殑鏂囦欢鍐呭
this.content = response.data;
- this.fileName = this.getFileNameFromPath(res.url);
+ this.fileName = this.getFileNameFromPath(response.url);
+ console.log(this.fileName, "this.fileName");
})
.catch((error) => {
console.error("Failed to fetch file:", error);
--
Gitblit v1.9.3