mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 11:26:45 +08:00
t
This commit is contained in:
@@ -4890,8 +4890,6 @@ export default defineComponent({
|
|||||||
};
|
};
|
||||||
//编辑面授课
|
//编辑面授课
|
||||||
const handleEdit = async (itm, type) => {
|
const handleEdit = async (itm, type) => {
|
||||||
console.log(45555);
|
|
||||||
console.log(itm);
|
|
||||||
if (type === "1") {
|
if (type === "1") {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -361,7 +361,7 @@ import {
|
|||||||
ref,
|
ref,
|
||||||
shallowRef,
|
shallowRef,
|
||||||
// onMounted,
|
// onMounted,
|
||||||
onBeforeUnmount,
|
onUnmounted,
|
||||||
} from "vue";
|
} from "vue";
|
||||||
import { message } from "ant-design-vue";
|
import { message } from "ant-design-vue";
|
||||||
import { edit, detail, handle } from "@/api/indexCourse";
|
import { edit, detail, handle } from "@/api/indexCourse";
|
||||||
@@ -450,7 +450,7 @@ export default defineComponent({
|
|||||||
state.imgList = [];
|
state.imgList = [];
|
||||||
state.attach = "";
|
state.attach = "";
|
||||||
|
|
||||||
valueHtml.value = "";
|
// valueHtml.value = "";
|
||||||
};
|
};
|
||||||
|
|
||||||
// 富文本 sssssssssssssss
|
// 富文本 sssssssssssssss
|
||||||
@@ -460,11 +460,8 @@ export default defineComponent({
|
|||||||
const valueHtml = ref("");
|
const valueHtml = ref("");
|
||||||
// // 模拟 ajax 异步获取内容
|
// // 模拟 ajax 异步获取内容
|
||||||
// onMounted(() => {
|
// onMounted(() => {
|
||||||
// console.log("toolbar222222222222222111111");
|
|
||||||
// console.log(editorRef.value);
|
|
||||||
// setTimeout(() => {
|
// setTimeout(() => {
|
||||||
// // valueHtml.value = "<p>模拟 Ajax 异步设置内容</p>";
|
// // valueHtml.value = "<p>模拟 Ajax 异步设置内容</p>";
|
||||||
// console.log("toolbar22222222222222222222222233");
|
|
||||||
// console.log(editorRef.value);
|
// console.log(editorRef.value);
|
||||||
// // const toolbar = DomEditor.getToolbar(editorRef.value);
|
// // const toolbar = DomEditor.getToolbar(editorRef.value);
|
||||||
// // const menu = editorRef.value.getAllMenuKeys();
|
// // const menu = editorRef.value.getAllMenuKeys();
|
||||||
@@ -484,25 +481,23 @@ export default defineComponent({
|
|||||||
formData.append("file", file);
|
formData.append("file", file);
|
||||||
fileUp(formData).then((res) => {
|
fileUp(formData).then((res) => {
|
||||||
if (res.data.code === 200) {
|
if (res.data.code === 200) {
|
||||||
// 最后插入图片
|
// 最后插入图片 url alt href
|
||||||
insertFn(res.data.data, file.name, res.data.data);
|
insertFn(res.data.data, file.name, res.data.data);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
const handleCreated = (editor) => {
|
const handleCreated = (editor) => {
|
||||||
console.log(4545454544);
|
|
||||||
console.log(editor);
|
|
||||||
editorRef.value = editor; // 记录 editor 实例,重要!
|
editorRef.value = editor; // 记录 editor 实例,重要!
|
||||||
};
|
};
|
||||||
const handleDestory = () => {
|
// const handleDestory = () => {
|
||||||
const editor = editorRef.value;
|
// const editor = editorRef.value;
|
||||||
if (editor == null) return;
|
// if (editor == null) return;
|
||||||
editor.destroy();
|
// editor.destroy();
|
||||||
};
|
// };
|
||||||
// 组件销毁时,也及时销毁编辑器
|
// 组件销毁时,也及时销毁编辑器
|
||||||
onBeforeUnmount(() => {
|
onUnmounted(() => {
|
||||||
console.log(78787866666666666666);
|
console.log("组件销毁时,也及时销毁编辑器");
|
||||||
// handleDestory();
|
// handleDestory();
|
||||||
});
|
});
|
||||||
// 富文本 eeeeeeeeeeeeee
|
// 富文本 eeeeeeeeeeeeee
|
||||||
@@ -662,14 +657,15 @@ export default defineComponent({
|
|||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 1,
|
pageSize: 1,
|
||||||
};
|
};
|
||||||
api2.auditList(obj).then((res) => {
|
const res = await api2.auditList(obj).then((res) => {
|
||||||
if (res.data.data.rows && res.data.data.rows.length > 0) {
|
if (res.data.code === 200) return res.data.data;
|
||||||
state.auditDescription = res.data.data.rows[0].description
|
|
||||||
? res.data.data.rows[0].description
|
|
||||||
: "-";
|
|
||||||
console.log("state.auditDescription", state.auditDescription);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
if (res.rows && res.rows.length > 0) {
|
||||||
|
state.auditDescription = res.rows[0].description
|
||||||
|
? res.rows[0].description
|
||||||
|
: "-";
|
||||||
|
console.log("state.auditDescription", state.auditDescription);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
state.qdms_inputV1 = item.name;
|
state.qdms_inputV1 = item.name;
|
||||||
@@ -741,7 +737,6 @@ export default defineComponent({
|
|||||||
toolbarConfig,
|
toolbarConfig,
|
||||||
editorConfig,
|
editorConfig,
|
||||||
handleCreated,
|
handleCreated,
|
||||||
handleDestory,
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user