This commit is contained in:
kclf
2022-12-08 17:29:52 +08:00
parent 53feaf313c
commit 827b0cba95
3 changed files with 79 additions and 48 deletions

View File

@@ -191,7 +191,7 @@
alt="" alt=""
/> />
</div> </div>
<span>授课形式</span> <span>授课形式</span>
</div> </div>
<a-radio-group v-model:value="valueE1"> <a-radio-group v-model:value="valueE1">
@@ -221,7 +221,7 @@
</div> </div>
</a-radio-group> </a-radio-group>
</div> </div>
<!-- <!--
<div class="b_sup" :style="{ display: bs_hs ? 'block' : 'none' }"> <div class="b_sup" :style="{ display: bs_hs ? 'block' : 'none' }">
<div class="ofmb_items"> <div class="ofmb_items">
<div class="signbox"> <div class="signbox">
@@ -1403,7 +1403,7 @@
placeholder="请选择状态" placeholder="请选择状态"
v-model:value="gl_selectV2" v-model:value="gl_selectV2"
style="width: 200px" style="width: 200px"
:options="options1" :options="options11"
allowClear allowClear
showSearch showSearch
@focus="focus" @focus="focus"
@@ -4022,6 +4022,7 @@ export default defineComponent({
}; };
const handleSearchTable3 = () => { const handleSearchTable3 = () => {
console.log(7878); console.log(7878);
this.$message.error("该课程暂学员学习记录");
getTableDate333(); getTableDate333();
}; };
const getTableDate33 = async () => { const getTableDate33 = async () => {
@@ -4129,6 +4130,16 @@ export default defineComponent({
label: "审核未通过", label: "审核未通过",
}, },
]); ]);
const options11 = ref([
{
value: 0,
label: "未开始",
},
{
value: 1,
label: "已完成",
},
]);
const options2 = ref([ const options2 = ref([
// { // {
// value: "value2", // value: "value2",
@@ -4190,11 +4201,17 @@ export default defineComponent({
} }
}; };
const createft = () => { const createft = () => {
if(!state.valueE1 || !state.xzinputV1){ if (!state.valueE1 || !state.xzinputV1) {
message.destroy(); message.destroy();
return message.warning("请输入必填项"); return message.warning("请输入必填项");
} }
console.log(" state.valueE1", state.valueE1,!state.bs_hs && state.valueE1 == 2,state.bs_hs,state.valueE1 == 2); console.log(
" state.valueE1",
state.valueE1,
!state.bs_hs && state.valueE1 == 2,
state.bs_hs,
state.valueE1 == 2
);
if (state.bs_hs && state.valueE1 == 2) { if (state.bs_hs && state.valueE1 == 2) {
state.of_hs = false; state.of_hs = false;
// state.ft_hs = true; // state.ft_hs = true;
@@ -4203,10 +4220,10 @@ export default defineComponent({
state.valueE1 = ""; state.valueE1 = "";
state.teacher = ""; state.teacher = "";
state.teacherName = ""; state.teacherName = "";
state.qdms_inputV1 = state.xzinputV1; state.qdms_inputV1 = state.xzinputV1;
state.xzinputV1 = ""; state.xzinputV1 = "";
console.log("qdms_inputV1", state.qdms_inputV1 ); console.log("qdms_inputV1", state.qdms_inputV1);
getDictList("faceclassPic"); getDictList("faceclassPic");
getTea(); getTea();
} }
@@ -4841,8 +4858,6 @@ export default defineComponent({
}; };
//编辑面授课 //编辑面授课
const handleEdit = async (itm, type) => { const handleEdit = async (itm, type) => {
console.log(45555); console.log(45555);
console.log(itm); console.log(itm);
if (type === "1") { if (type === "1") {
@@ -5293,6 +5308,7 @@ export default defineComponent({
columns6, columns6,
columns7, columns7,
options1, options1,
options11,
options2, options2,
options3, options3,
options4, options4,

View File

@@ -650,7 +650,9 @@ export default defineComponent({
.fotarea { .fotarea {
width: calc(100% - 150px); width: calc(100% - 150px);
position: relative; position: relative;
img {
width: 100%;
}
.fuwenben { .fuwenben {
width: 90%; width: 90%;
height: 20px; height: 20px;

View File

@@ -31,7 +31,7 @@
<!-- 审核理由 --> <!-- 审核理由 -->
<div v-if="statusJuJue" class="statusJuJue"> <div v-if="statusJuJue" class="statusJuJue">
<span>审核意见</span> <span>审核意见</span>
<span>{{auditDescription}}</span> <span>{{ auditDescription }}</span>
</div> </div>
<div class="faceteach" :style="{ display: ft_hs ? 'block' : 'none' }"> <div class="faceteach" :style="{ display: ft_hs ? 'block' : 'none' }">
<div class="ft_main"> <div class="ft_main">
@@ -310,7 +310,7 @@
<span style="margin-right: 10px">附件</span> <span style="margin-right: 10px">附件</span>
</div> </div>
<div class="item_inp"> <div class="item_inp">
<FJUpload v-model:value="attach"></FJUpload> <FJUpload v-model:value="attach" />
</div> </div>
</div> </div>
</div> </div>
@@ -360,7 +360,7 @@ import {
defineComponent, defineComponent,
ref, ref,
shallowRef, shallowRef,
onMounted, // onMounted,
onBeforeUnmount, onBeforeUnmount,
} from "vue"; } from "vue";
import { message } from "ant-design-vue"; import { message } from "ant-design-vue";
@@ -372,7 +372,7 @@ import { Editor, Toolbar } from "@wangeditor/editor-for-vue";
import ProjectManager from "@/components/project/ProjectManagerNew"; import ProjectManager from "@/components/project/ProjectManagerNew";
import FJUpload from "@/components/common/FJUpload"; import FJUpload from "@/components/common/FJUpload";
import * as moment from "moment"; import * as moment from "moment";
import * as api2 from "../../api/indexAudit" import * as api2 from "../../api/indexAudit";
export default defineComponent({ export default defineComponent({
components: { components: {
Editor, Editor,
@@ -383,6 +383,7 @@ export default defineComponent({
setup(props, { expose, emit }) { setup(props, { expose, emit }) {
const state = reactive({ const state = reactive({
hideshow: true, hideshow: true,
ft_eidt: false,
attach: "", attach: "",
ft_hs: false, ft_hs: false,
addLoading: false, addLoading: false,
@@ -401,17 +402,20 @@ export default defineComponent({
tags_val: [], tags_val: [],
qdms_inputV6: "", qdms_inputV6: "",
imgList: [], imgList: [],
auditDescription:"", auditDescription: "",
}); });
const visibleOpen = (offcourseId, name) => { const visibleOpen = (offcourseId, name) => {
state.offcourseId = offcourseId; state.offcourseId = offcourseId;
if (state.offcourseId) { if (state.offcourseId) {
state.ft_hs = true;
state.ft_eidt = true;
handleEditInfo(state.offcourseId); handleEditInfo(state.offcourseId);
} else { } else {
state.qdms_inputV1 = name;
state.ft_hs = true; state.ft_hs = true;
state.ft_eidt = false;
state.qdms_inputV1 = name;
} }
}; };
const visibleClose = () => { const visibleClose = () => {
@@ -455,18 +459,20 @@ export default defineComponent({
// 内容 HTML // 内容 HTML
const valueHtml = ref(""); const valueHtml = ref("");
// // 模拟 ajax 异步获取内容 // // 模拟 ajax 异步获取内容
onMounted(() => { // onMounted(() => {
setTimeout(() => { // console.log("toolbar222222222222222111111");
// valueHtml.value = "<p>模拟 Ajax 异步设置内容</p>"; // console.log(editorRef.value);
console.log("toolbar222222222222222"); // setTimeout(() => {
console.log(editorRef.value); // // valueHtml.value = "<p>模拟 Ajax 异步设置内容</p>";
// const toolbar = DomEditor.getToolbar(editorRef.value); // console.log("toolbar22222222222222222222222233");
// const menu = editorRef.value.getAllMenuKeys(); // console.log(editorRef.value);
// const bar = toolbar.getConfig().toolbarKeys; // // const toolbar = DomEditor.getToolbar(editorRef.value);
// console.log(menu); // // const menu = editorRef.value.getAllMenuKeys();
// console.log(bar); // // const bar = toolbar.getConfig().toolbarKeys;
}, 3500); // // console.log(menu);
}); // // console.log(bar);
// }, 3500);
// });
const toolbarConfig = { const toolbarConfig = {
excludeKeys: ["insertVideo", "insertImage"], excludeKeys: ["insertVideo", "insertImage"],
}; };
@@ -485,13 +491,19 @@ export default defineComponent({
}, },
}; };
const handleCreated = (editor) => { const handleCreated = (editor) => {
console.log(4545454544);
console.log(editor);
editorRef.value = editor; // 记录 editor 实例,重要! editorRef.value = editor; // 记录 editor 实例,重要!
}; };
// 组件销毁时,也及时销毁编辑器 const handleDestory = () => {
onBeforeUnmount(() => {
const editor = editorRef.value; const editor = editorRef.value;
if (editor == null) return; if (editor == null) return;
editor.destroy(); editor.destroy();
};
// 组件销毁时,也及时销毁编辑器
onBeforeUnmount(() => {
console.log(78787866666666666666);
// handleDestory();
}); });
// 富文本 eeeeeeeeeeeeee // 富文本 eeeeeeeeeeeeee
@@ -620,7 +632,9 @@ export default defineComponent({
if (param === "review") { if (param === "review") {
//新建时点击审核按钮 //新建时点击审核按钮
submitReview(res.data.data.offcourseId); submitReview(res.data.data.offcourseId);
} else visibleClose(); } else {
visibleClose();
}
} }
}); });
}; };
@@ -641,22 +655,21 @@ export default defineComponent({
if (Number(item.auditStatus) === 2 && Number(item.status) === 0) { if (Number(item.auditStatus) === 2 && Number(item.status) === 0) {
state.statusTingQi = 0; state.statusTingQi = 0;
} }
if(Number(item.auditStatus) === -1){ if (Number(item.auditStatus) === -1) {
let obj ={ let obj = {
offcourseId:offcourseId, offcourseId: offcourseId,
type:2, type: 2,
pageNo: 1, pageNo: 1,
pageSize: 1, pageSize: 1,
} };
api2.auditList(obj).then((res)=>{ api2.auditList(obj).then((res) => {
if (res.data.data.rows && res.data.data.rows.length > 0) {
if(res.data.data.rows &&res.data.data.rows.length > 0){ state.auditDescription = res.data.data.rows[0].description
state.auditDescription = res.data.data.rows[0].description?res.data.data.rows[0].description :"-"; ? res.data.data.rows[0].description
console.log("state.auditDescription",state.auditDescription); : "-";
console.log("state.auditDescription", state.auditDescription);
} }
});
})
} }
state.qdms_inputV1 = item.name; state.qdms_inputV1 = item.name;
@@ -670,7 +683,6 @@ export default defineComponent({
state.member = { value: item.teacherId, name: item.teacher }; state.member = { value: item.teacherId, name: item.teacher };
valueHtml.value = item.outline; valueHtml.value = item.outline;
state.attach = item.attach; state.attach = item.attach;
state.ft_hs = true;
}; };
const handleTagChange = () => { const handleTagChange = () => {
@@ -720,15 +732,16 @@ export default defineComponent({
visibleClose, visibleClose,
handleTagChange, handleTagChange,
handleTagClose, handleTagClose,
handleCreated,
handlePush, handlePush,
submitReview,
reviewClick, reviewClick,
editorRef, editorRef,
valueHtml, valueHtml,
mode: "simple", // 或 'simple' mode: "simple", // 或 'simple'
toolbarConfig, toolbarConfig,
editorConfig, editorConfig,
handleCreated,
handleDestory,
}; };
}, },
}); });