From 64272467a21b91767edbf039160b25c72ff72cde Mon Sep 17 00:00:00 2001
From: zhangxuelin <959231531@qq.com>
Date: Wed, 18 Dec 2024 16:08:19 +0800
Subject: [PATCH 01/17] =?UTF-8?q?ppist=E9=87=8C=E9=9D=A2=E4=B8=8D=E6=98=BE?=
=?UTF-8?q?=E7=A4=BA=E5=AF=BC=E5=85=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/AixPPTist/src/views/Editor/EditorHeader/index.vue | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/renderer/src/AixPPTist/src/views/Editor/EditorHeader/index.vue b/src/renderer/src/AixPPTist/src/views/Editor/EditorHeader/index.vue
index 29d7ca5..71bce12 100644
--- a/src/renderer/src/AixPPTist/src/views/Editor/EditorHeader/index.vue
+++ b/src/renderer/src/AixPPTist/src/views/Editor/EditorHeader/index.vue
@@ -3,7 +3,7 @@
@@ -136,6 +135,16 @@ emitter.on('changeMode', (item) => {
getTempResult(item.id)
})
+const onCreate = () =>{
+ let isAnswer = resultList.value.every(item => !item.answer)
+ if(isAnswer){
+ ElMessage.warning('请先进行研读')
+ return
+ }
+ pptDialog.value = true
+}
+
+
// 一键研读
const getCompletion = async () => {
From e0ec22c3ac6654f600c3db57a01918554f5f0d55 Mon Sep 17 00:00:00 2001
From: zhangxuelin <959231531@qq.com>
Date: Tue, 24 Dec 2024 11:23:52 +0800
Subject: [PATCH 06/17] =?UTF-8?q?=E6=9B=BF=E6=8D=A2=E7=85=A7=E7=89=87?=
=?UTF-8?q?=E6=94=B9=E4=B8=BA=E7=BA=BF=E4=B8=8Aurl?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/views/Editor/EditorHeader/index.vue | 2 +-
.../Toolbar/ElementStylePanel/ImageStylePanel.vue | 14 ++++++++++----
2 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/src/renderer/src/AixPPTist/src/views/Editor/EditorHeader/index.vue b/src/renderer/src/AixPPTist/src/views/Editor/EditorHeader/index.vue
index 71bce12..72eb83f 100644
--- a/src/renderer/src/AixPPTist/src/views/Editor/EditorHeader/index.vue
+++ b/src/renderer/src/AixPPTist/src/views/Editor/EditorHeader/index.vue
@@ -16,7 +16,7 @@
导入 pptx 文件
-->
导出文件
-
重置幻灯片
+
快捷操作
diff --git a/src/renderer/src/AixPPTist/src/views/Editor/Toolbar/ElementStylePanel/ImageStylePanel.vue b/src/renderer/src/AixPPTist/src/views/Editor/Toolbar/ElementStylePanel/ImageStylePanel.vue
index 7445f45..02a794f 100644
--- a/src/renderer/src/AixPPTist/src/views/Editor/Toolbar/ElementStylePanel/ImageStylePanel.vue
+++ b/src/renderer/src/AixPPTist/src/views/Editor/Toolbar/ElementStylePanel/ImageStylePanel.vue
@@ -88,7 +88,9 @@ import Button from '../../../../components/Button.vue'
import ButtonGroup from '../../../../components/ButtonGroup.vue'
import Popover from '../../../../components/Popover.vue'
import NumberInput from '../../../../components/NumberInput.vue'
-
+import { PPTApi } from '../../../../api'
+import { Console } from 'node:console'
+import { x64 } from 'crypto-js'
const shapeClipPathOptions = CLIPPATHS
const ratioClipOptions = [
{
@@ -221,10 +223,14 @@ const presetImageClip = (shape: string, ratio = 0) => {
const replaceImage = (files: FileList) => {
const imageFile = files[0]
if (!imageFile) return
- getImageDataURL(imageFile).then(dataURL => {
- const props = { src: dataURL }
- updateImage(props)
+ PPTApi.toRousrceUrl(imageFile).then(data=>{
+ const props = { src: data }
+ updateImage(props)
})
+ // getImageDataURL(imageFile).then(dataURL => {
+ // const props = { src: dataURL }
+ // updateImage(props)
+ // })
}
// 重置图片:清除全部样式
From c152a3d3eee6ff8b9c7cf73d9b46b0ff8c95449d Mon Sep 17 00:00:00 2001
From: zdg
Date: Tue, 24 Dec 2024 11:24:53 +0800
Subject: [PATCH 07/17] =?UTF-8?q?aippt=E7=94=9F=E6=88=90-=E7=BC=A9?=
=?UTF-8?q?=E7=95=A5=E5=9B=BE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/renderer/src/AixPPTist/src/api/chat.ts | 3 +-
.../src/views/Editor/EditorHeader/index.vue | 8 +-
src/renderer/src/utils/ppt/index.js | 87 +++++++++++++++++++
src/renderer/src/views/model/index.vue | 13 ++-
.../views/teachingDesign/container/right.vue | 6 +-
5 files changed, 107 insertions(+), 10 deletions(-)
create mode 100644 src/renderer/src/utils/ppt/index.js
diff --git a/src/renderer/src/AixPPTist/src/api/chat.ts b/src/renderer/src/AixPPTist/src/api/chat.ts
index 70574e2..9987c7d 100644
--- a/src/renderer/src/AixPPTist/src/api/chat.ts
+++ b/src/renderer/src/AixPPTist/src/api/chat.ts
@@ -14,7 +14,8 @@ export default () => {
const courseId = classcourse?.id // 课堂id
const timgroupid = classcourse?.timgroupid // 群组id
const classcourseStore = useClasscourseStore() // 课堂信息-状态管理
- if (!ChatWs.ws) ChatWs.init()
+ // 上课状态才-初始化socket
+ if (!ChatWs.ws && !!courseId) ChatWs.init()
// 开课消息
const startCourse = async() => {
// await API_classcourse.updateClasscourse({ id: classcourse.id, status: 'open' })
diff --git a/src/renderer/src/AixPPTist/src/views/Editor/EditorHeader/index.vue b/src/renderer/src/AixPPTist/src/views/Editor/EditorHeader/index.vue
index 29d7ca5..8b5365a 100644
--- a/src/renderer/src/AixPPTist/src/views/Editor/EditorHeader/index.vue
+++ b/src/renderer/src/AixPPTist/src/views/Editor/EditorHeader/index.vue
@@ -3,7 +3,7 @@
- {
+
重置幻灯片
@@ -54,9 +54,9 @@
-
-