From 62663b84495cd34b7da135ac3d233725e6c52b08 Mon Sep 17 00:00:00 2001 From: kclf <1195754634@qq.com> Date: Tue, 6 Dec 2022 11:59:50 +0800 Subject: [PATCH 1/7] =?UTF-8?q?=E9=A2=98=E5=B9=B2=E4=BF=9D=E7=95=99?= =?UTF-8?q?=E4=B8=80=E6=9D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/vote/CreateVote.vue | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/components/vote/CreateVote.vue b/src/components/vote/CreateVote.vue index 7105db41..41e86aaa 100644 --- a/src/components/vote/CreateVote.vue +++ b/src/components/vote/CreateVote.vue @@ -264,15 +264,17 @@ export default { }; const handleDel = ({ id, curItem }) => { - // 接口删除 - if (curItem.voteStemId) { - api.deleteVoteStem(curItem.voteStemId).then((res) => { - if (res.data.code === 200) { - virtualDel(id); - } - }); - } else { - virtualDel(id); + if (state.allFormsData.length > 1) { + // 接口删除 + if (curItem.voteStemId) { + api.deleteVoteStem(curItem.voteStemId).then((res) => { + if (res.data.code === 200) { + virtualDel(id); + } + }); + } else { + virtualDel(id); + } } }; const virtualDel = (id) => { From b438a412d3b1ddb6957bc3656ec68cdf933ed467 Mon Sep 17 00:00:00 2001 From: wyx <51903@qq.com> Date: Tue, 6 Dec 2022 13:08:18 +0800 Subject: [PATCH 2/7] =?UTF-8?q?fix:=E6=B5=8B=E8=AF=84=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/drawers/AddEval.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/drawers/AddEval.vue b/src/components/drawers/AddEval.vue index bd913849..b5249990 100644 --- a/src/components/drawers/AddEval.vue +++ b/src/components/drawers/AddEval.vue @@ -276,7 +276,7 @@ export default { evaluationStartTime: state.time ? dayjs(state.time[0]).format("YYYY-MM-DD") : "", evaluationTypeId: state.evaluationTypeId, evaluationTypeName: state.evaluationTypeName, - evaluationFlag: state.description, + evaluationExplain: state.description, evaluationPictureAddress: "", evaluationTag: "", updateTime: "", From 6eeb2c540e972c68da87ca1a315fb95ad55bd9bb Mon Sep 17 00:00:00 2001 From: kclf <1195754634@qq.com> Date: Tue, 6 Dec 2022 13:40:44 +0800 Subject: [PATCH 3/7] =?UTF-8?q?=E5=AF=8C=E6=96=87=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/config.js | 8 +-- src/views/courselibrary/CoursewareManage.vue | 71 ++++++++++++++------ 2 files changed, 54 insertions(+), 25 deletions(-) diff --git a/src/api/config.js b/src/api/config.js index 7eca520f..326b58f4 100644 --- a/src/api/config.js +++ b/src/api/config.js @@ -55,10 +55,10 @@ http.interceptors.response.use( if (code === 0 || code === 200) { return response; } else { - if (code === 1000) { - window.open("https://u-pre.boe.com/web/", '_self'); - // window.open("http://111.231.196.214:12013/manage/login", '_self'); - } + // if (code === 1000) { + // window.open("https://u-pre.boe.com/web/", '_self'); + // // window.open("http://111.231.196.214:12013/manage/login", '_self'); + // } console.log("api %o", msg); } return response; diff --git a/src/views/courselibrary/CoursewareManage.vue b/src/views/courselibrary/CoursewareManage.vue index 7bd3b9da..5a2b290e 100644 --- a/src/views/courselibrary/CoursewareManage.vue +++ b/src/views/courselibrary/CoursewareManage.vue @@ -270,7 +270,7 @@ :closable="false" wrapClassName="modalStyle facteachModal" width="80%" - @cancel="ft_exit" + @cancel="ft_exit_1" >
@@ -682,7 +682,7 @@
模拟 Ajax 异步设置内容
"; - // console.log("toolbar222222222222222"); - // console.log(editorRef.value); - // // const toolbar = DomEditor.getToolbar(editorRef.value); - // // const menu = editorRef.value.getAllMenuKeys(); - // // const bar = toolbar.getConfig().toolbarKeys; - // // console.log(menu); - // // console.log(bar); - // }, 3500); + setTimeout(() => { + // valueHtml.value = "模拟 Ajax 异步设置内容
"; + console.log("toolbar222222222222222"); + console.log(editorRef.value); + // const toolbar = DomEditor.getToolbar(editorRef.value); + // const menu = editorRef.value.getAllMenuKeys(); + // const bar = toolbar.getConfig().toolbarKeys; + // console.log(menu); + // console.log(bar); + }, 3500); }); const toolbarConfig = { @@ -3865,17 +3866,41 @@ export default defineComponent({ }); }, }; + const handleCreated = (editor) => { + console.log("toolbar2222222222333333322222"); + console.log(editorRef.value); + editorRef.value = editor; // 记录 editor 实例,重要! + }; // 组件销毁时,也及时销毁编辑器 onBeforeUnmount(() => { const editor = editorRef.value; if (editor == null) return; editor.destroy(); }); - const handleCreated = (editor) => { - editorRef.value = editor; // 记录 editor 实例,重要! - }; + watch( + () => state, + (newVal) => { + console.log("newVal3333333333333333333"); + console.log(newVal.ft_hs); + if (!newVal.ft_hs) { + console.log("newVal.ft_hs11111111111111"); + // const editor = editorRef.value; + // if (editor == null) return; + // editor.destroy(); + // router.go(0); + } + }, + { + deep: true, + } + ); // 富文本 eeeeeeeeeeeeee + const route = useRoute(); + console.log(route); + const router = useRouter(); + console.log(router); + const beforeUpload = (file) => { return new Promise((resolve, reject) => { const isJpgOrPng = @@ -4517,8 +4542,11 @@ export default defineComponent({ } return count ? false : true; }; - const ft_exit = () => { + const ft_exit_1 = () => { state.ft_hs = false; + router.go(0); + }; + const ft_exit = () => { state.ft_eidt = false; state.hideshow = true; @@ -4542,6 +4570,7 @@ export default defineComponent({ const handlelookMs = () => { state.lookMs = false; }; + //保存面授课 const handlePush = (param) => { let files = ""; @@ -4551,7 +4580,7 @@ export default defineComponent({ }); } files = files.slice(0, files.length - 1); - console.log("filesfiles",files); + console.log("filesfiles", files); const postData = { offcourseId: state.offcourseId, //不传代表新增 name: state.qdms_inputV1, @@ -4589,7 +4618,7 @@ export default defineComponent({ edit(postData).then((res) => { if (res.data.code === 200) { getTableDate(); - // ft_exit(); + // ft_exit_1(); rest(); state.addLoading = false; state.isEdit = 1; @@ -5060,7 +5089,6 @@ export default defineComponent({ }; //获取教师 const getTea = async () => { - options4CurName.value = state.teacher; options4CurId.value = state.teacherId; const item1 = await getMemberInfoApi({ @@ -5432,7 +5460,7 @@ export default defineComponent({ handle(obj).then((res) => { console.log("提交审核成功", res.data); if (res.data.code === 200) { - ft_exit(); + ft_exit_1(); rest(); getTableDate(); state.addLoading = false; @@ -5584,6 +5612,7 @@ export default defineComponent({ bs_hShow, createft, ft_exit, + ft_exit_1, om_exit, ckxq_hs, ftsr_exit, From b039552dd1558d6bda1dd8f994f451076b0c3e4b Mon Sep 17 00:00:00 2001 From: wyx <51903@qq.com> Date: Tue, 6 Dec 2022 14:00:28 +0800 Subject: [PATCH 4/7] =?UTF-8?q?style:=E9=9A=90=E8=97=8F=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=B7=B2=E7=BB=93=E6=9D=9F=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/projectcenter/ProjectManage.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/projectcenter/ProjectManage.vue b/src/views/projectcenter/ProjectManage.vue index 95217006..091d76fe 100644 --- a/src/views/projectcenter/ProjectManage.vue +++ b/src/views/projectcenter/ProjectManage.vue @@ -1307,8 +1307,8 @@ export default { '1': () => '草稿', '2': () => '草稿', '3': () => dayjs().isBefore(value.record.beginTime) ? '未开始' : '进行中', - '4': () => dayjs().isBefore(value.record.end) ? '进行中' : '已结束', - '-1': () => '已结束', + '4': () => dayjs().isBefore(value.record.end) ? '进行中' : '-', + '-1': () => '-', '-5': () => '草稿' }[value.record.status + '']() || '' : '-'}