From 399c4b546163dd823a0544c00465b9e46744d475 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=9D=A8?= <666> Date: Thu, 5 Dec 2024 14:47:23 +0800 Subject: [PATCH 01/20] =?UTF-8?q?add:=E6=B7=BB=E5=8A=A0=E6=B4=BB=E5=8A=A8?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/AixPPTist/src/api/index.ts | 2 + .../ElementStylePanel/Active/index.vue | 84 ++++++++++++------- .../classTask/newClassTaskAssign/index.vue | 12 ++- src/renderer/src/views/model/index.vue | 2 +- 4 files changed, 67 insertions(+), 33 deletions(-) diff --git a/src/renderer/src/AixPPTist/src/api/index.ts b/src/renderer/src/AixPPTist/src/api/index.ts index d7ff6ad..0d657b1 100644 --- a/src/renderer/src/AixPPTist/src/api/index.ts +++ b/src/renderer/src/AixPPTist/src/api/index.ts @@ -142,6 +142,8 @@ export class PPTApi { static updateSlide(data: object): Promise { return new Promise(async (resolve, reject) => { const res: Result = await API_entpcoursefile.updateEntpcoursefileNew(data) + console.log(data,'data'); + console.log(res,'dresata'); if (res.code === 200) { resolve(true) } else msgUtils.msgError(res.msg || '更新失败');resolve(false) diff --git a/src/renderer/src/AixPPTist/src/views/Editor/Toolbar/ElementStylePanel/Active/index.vue b/src/renderer/src/AixPPTist/src/views/Editor/Toolbar/ElementStylePanel/Active/index.vue index 9bf72ac..4322dfb 100644 --- a/src/renderer/src/AixPPTist/src/views/Editor/Toolbar/ElementStylePanel/Active/index.vue +++ b/src/renderer/src/AixPPTist/src/views/Editor/Toolbar/ElementStylePanel/Active/index.vue @@ -32,21 +32,24 @@
- \ No newline at end of file diff --git a/src/renderer/src/views/classTask/newClassTaskAssign/index.vue b/src/renderer/src/views/classTask/newClassTaskAssign/index.vue index 577a881..21d239f 100644 --- a/src/renderer/src/views/classTask/newClassTaskAssign/index.vue +++ b/src/renderer/src/views/classTask/newClassTaskAssign/index.vue @@ -157,6 +157,7 @@ const props = defineProps({ currentCourse: Object, }) const emits = defineEmits(['getData']) +// 这个代表的是是否从ppt里面添加的作业 const isShow = ref(false) const propsQueryCourseObj = route.query.courseObj;//作业布置的内容对象 @@ -490,11 +491,13 @@ const handleClassWorkFormQuizRemove = (index) =>{ // 当前为[编辑]状态下点进来得处理 newWorkSpaceEdit true 为编辑状态 - if(classWorkForm.id != '' ) {// 编辑状态 有id - - editWork(cform); // 编辑作业 + if(isShow.value === false){ + if(classWorkForm.id != '' ) {// 编辑状态 有id + editWork(cform); // 编辑作业 return; + } } + if (classWorkForm.worktype === "课堂展示") { boardLoading.value = true @@ -596,7 +599,12 @@ const handleClassWorkFormQuizRemove = (index) =>{ } console.log('该清空左侧列表数据了'); // 清空左侧 选中的布置列表 并刷新列表 - currentRow.value = {id:0}; + debugger + if(isShow.value){ + currentRow.value = {id:1}; + }else{ + currentRow.value = {id:0}; + } initHomeWork(); From c159d6be1a22645cd32eaf61b2f9a2cb0f2c406f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=9D=A8?= <666> Date: Tue, 10 Dec 2024 15:38:19 +0800 Subject: [PATCH 20/20] =?UTF-8?q?fix:=E6=B8=85=E9=99=A4debugger;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/Editor/Toolbar/ElementStylePanel/Active/index.vue | 1 - src/renderer/src/views/classTask/newClassTaskAssign/index.vue | 1 - 2 files changed, 2 deletions(-) diff --git a/src/renderer/src/AixPPTist/src/views/Editor/Toolbar/ElementStylePanel/Active/index.vue b/src/renderer/src/AixPPTist/src/views/Editor/Toolbar/ElementStylePanel/Active/index.vue index c4bc362..bc658cf 100644 --- a/src/renderer/src/AixPPTist/src/views/Editor/Toolbar/ElementStylePanel/Active/index.vue +++ b/src/renderer/src/AixPPTist/src/views/Editor/Toolbar/ElementStylePanel/Active/index.vue @@ -266,7 +266,6 @@ const savePPtData = async () => { workList.value = [] const arr = selectedWorkList.value.map(item => item.id) // 应该是新加而不是覆盖 - debugger const existingIds = paramData.value.activityContent ? paramData.value.activityContent.split(',') : [] paramData.value.activityContent = Array.from(new Set([...existingIds, ...arr])).join(',') upDateData() diff --git a/src/renderer/src/views/classTask/newClassTaskAssign/index.vue b/src/renderer/src/views/classTask/newClassTaskAssign/index.vue index 21d239f..8d18094 100644 --- a/src/renderer/src/views/classTask/newClassTaskAssign/index.vue +++ b/src/renderer/src/views/classTask/newClassTaskAssign/index.vue @@ -599,7 +599,6 @@ const handleClassWorkFormQuizRemove = (index) =>{ } console.log('该清空左侧列表数据了'); // 清空左侧 选中的布置列表 并刷新列表 - debugger if(isShow.value){ currentRow.value = {id:1}; }else{