From 9803c09c434b805c4b688799f1cafde9d4378697 Mon Sep 17 00:00:00 2001 From: zhuhao <979263092@qq.com> Date: Wed, 4 Dec 2024 17:04:20 +0800 Subject: [PATCH 01/13] =?UTF-8?q?s=E7=94=9F=E6=88=90PPT?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/views/prepare/container/ai-pptistV2.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/renderer/src/views/prepare/container/ai-pptistV2.vue b/src/renderer/src/views/prepare/container/ai-pptistV2.vue index 674c65a..f92eca6 100644 --- a/src/renderer/src/views/prepare/container/ai-pptistV2.vue +++ b/src/renderer/src/views/prepare/container/ai-pptistV2.vue @@ -158,7 +158,7 @@ const outlineCreatePPT = () => { const checkProgress = () => { getProgressV2(res.sid).then(response => { - percentage.value = Math.round(response?.donePages/response?.totalPages)*100; + percentage.value = Math.round(response?.donePages*100/response?.totalPages); if (response.pptStatus === "done") { emit('addSuccess',{...res,url:response.pptUrl}) ElMessage.success("生成成功"); @@ -267,7 +267,6 @@ function webSocketSend(ws, data) { function result1(resultData) { let jsonData = JSON.parse(resultData); - console.log(jsonData) outputText.value += jsonData.payload.choices.text[0].content; const div = document.querySelector('.paragraphs'); if (div) { 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 02/13] =?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 @@
- @@ -88,7 +86,6 @@ import ThumbnailSlide from '../../../views/components/ThumbnailSlide/index.vue' import LayoutPool from './LayoutPool.vue' import Popover from '../../../components/Popover.vue' import Draggable from 'vuedraggable' -import Active from '../Toolbar/ElementStylePanel/Active/index.vue' const mainStore = useMainStore() const slidesStore = useSlidesStore() @@ -127,7 +124,6 @@ const { updateSectionTitle, } = useSectionHandler() -const activeRef = ref() // 页面被切换时 const thumbnailsRef = ref>() @@ -151,8 +147,6 @@ watch(() => slideIndex.value, () => { // 切换页面 const changeSlideIndex = (index: number) => { - console.log(workItem.value[index],'hasSection'); - activeRef.value.clickPPTList(workItem.value[index]) mainStore.setActiveElementIdList([]) 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 4322dfb..c5f5c31 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 @@ -37,13 +37,12 @@
{{item.worktype}} -
{{item.evaltitle}}
+
{{item.evaltitle}}
删除
- {{workList.length}} @@ -58,8 +57,8 @@ append-to-body :show-close="false" width="40%" - > - + > + @@ -71,183 +70,246 @@ -