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/11] =?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 @@
- {
+
导出文件
重置幻灯片
From c95508ed599fadb7b0e11dc09de3d65d87ffd86a Mon Sep 17 00:00:00 2001
From: lyc
Date: Mon, 23 Dec 2024 17:01:40 +0800
Subject: [PATCH 02/11] =?UTF-8?q?edit=20=E6=A8=A1=E6=9D=BF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/components/template-study/container/right.vue | 7 +++++--
src/renderer/src/views/teachingDesign/container/right.vue | 2 +-
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/renderer/src/components/template-study/container/right.vue b/src/renderer/src/components/template-study/container/right.vue
index a452139..ea67d82 100644
--- a/src/renderer/src/components/template-study/container/right.vue
+++ b/src/renderer/src/components/template-study/container/right.vue
@@ -415,7 +415,7 @@ const onEditSave = async (item) => {
}
// 保存模板
-const onSaveTemp = (item) => {
+const onSaveTemp = async (item) => {
if (item.answer == '') return
const data = {
@@ -425,7 +425,10 @@ const onSaveTemp = (item) => {
content: item.answer,
ex1: curNode.id
}
- tempSave(data).then(res => { })
+ const res = await tempSave(data)
+ if(!item.resultId){
+ item.resultId = res.data
+ }
}
// 去掉字符串中的 ### **
diff --git a/src/renderer/src/views/teachingDesign/container/right.vue b/src/renderer/src/views/teachingDesign/container/right.vue
index f829f3b..2afef2d 100644
--- a/src/renderer/src/views/teachingDesign/container/right.vue
+++ b/src/renderer/src/views/teachingDesign/container/right.vue
@@ -258,7 +258,7 @@ const listRef = ref()
// 查询模板结果
const isStarted = ref([]);
const getTempResult = (id) => {
- tempResult({ mainModelId: id }).then(res => {
+ tempResult({ mainModelId: id, pageNum: 1, pageSize: 10000, ex1: curNode.id }).then(res => {
let rows = res.rows
if (rows.length > 0) {
isStarted.value = new Array(rows.length).fill(true)
From 3867a9603ffc07df58a6f4420861df790e2b9436 Mon Sep 17 00:00:00 2001
From: zhuhao <979263092@qq.com>
Date: Tue, 24 Dec 2024 09:58:31 +0800
Subject: [PATCH 03/11] =?UTF-8?q?=E6=8A=A5=E9=94=99=E5=90=8E=E5=8F=8A?=
=?UTF-8?q?=E6=97=B6=E5=9B=9E=E8=BD=ACloading=E6=8C=89=E9=92=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/renderer/src/views/prepare/container/ai-pptistV2.vue | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/renderer/src/views/prepare/container/ai-pptistV2.vue b/src/renderer/src/views/prepare/container/ai-pptistV2.vue
index f92eca6..ac1ce0c 100644
--- a/src/renderer/src/views/prepare/container/ai-pptistV2.vue
+++ b/src/renderer/src/views/prepare/container/ai-pptistV2.vue
@@ -177,6 +177,8 @@ const outlineCreatePPT = () => {
};
checkProgress();
+ }).finally(()=>{
+ createPPTLoading.value = false
})
};
From c290c170d3ed647ccd8cf1f3b219f2d46ec3e11f Mon Sep 17 00:00:00 2001
From: zhuhao <979263092@qq.com>
Date: Tue, 24 Dec 2024 10:01:34 +0800
Subject: [PATCH 04/11] =?UTF-8?q?=E6=8A=A5=E9=94=99=E5=90=8E=E5=8F=8A?=
=?UTF-8?q?=E6=97=B6=E5=9B=9E=E8=BD=ACloading=E6=8C=89=E9=92=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/renderer/src/views/prepare/container/ai-pptistV2.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/renderer/src/views/prepare/container/ai-pptistV2.vue b/src/renderer/src/views/prepare/container/ai-pptistV2.vue
index ac1ce0c..583d987 100644
--- a/src/renderer/src/views/prepare/container/ai-pptistV2.vue
+++ b/src/renderer/src/views/prepare/container/ai-pptistV2.vue
@@ -57,7 +57,7 @@
上一步
- 生成PPT
+ 生成PPT
From 4f32927b497b25fe7405aff423c24336ee805dfd Mon Sep 17 00:00:00 2001
From: lyc
Date: Tue, 24 Dec 2024 10:21:13 +0800
Subject: [PATCH 05/11] =?UTF-8?q?edit=20=E6=A1=86=E6=9E=B6=E8=AE=BE?=
=?UTF-8?q?=E8=AE=A1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/views/prepare/container/ai-pptistV2.vue | 4 ++--
.../src/views/teachingDesign/container/left.vue | 3 +++
.../src/views/teachingDesign/container/right.vue | 13 +++++++++++--
3 files changed, 16 insertions(+), 4 deletions(-)
diff --git a/src/renderer/src/views/prepare/container/ai-pptistV2.vue b/src/renderer/src/views/prepare/container/ai-pptistV2.vue
index f92eca6..f619798 100644
--- a/src/renderer/src/views/prepare/container/ai-pptistV2.vue
+++ b/src/renderer/src/views/prepare/container/ai-pptistV2.vue
@@ -10,8 +10,8 @@
{{ outputText }}
- 从新生成
- 下一步
+ {{ outputText ? '重新生产' : '生成大纲' }}
+ 下一步
ppt模板选择
diff --git a/src/renderer/src/views/teachingDesign/container/left.vue b/src/renderer/src/views/teachingDesign/container/left.vue
index a6d8585..f0343b4 100644
--- a/src/renderer/src/views/teachingDesign/container/left.vue
+++ b/src/renderer/src/views/teachingDesign/container/left.vue
@@ -93,6 +93,9 @@ emitter.on('onGetMain', (item) => {
const emit = defineEmits([''])
const onSelect = (item) =>{
actId.value = item.id
+ item.child.forEach(el =>{
+ el.aiShow = false
+ })
emitter.emit('changeMode', item)
}
diff --git a/src/renderer/src/views/teachingDesign/container/right.vue b/src/renderer/src/views/teachingDesign/container/right.vue
index 2afef2d..d0683dd 100644
--- a/src/renderer/src/views/teachingDesign/container/right.vue
+++ b/src/renderer/src/views/teachingDesign/container/right.vue
@@ -14,8 +14,7 @@
一键研读
- 生成大纲
- 生成PPT
+ 生成PPT
@@ -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 c152a3d3eee6ff8b9c7cf73d9b46b0ff8c95449d Mon Sep 17 00:00:00 2001
From: zdg
Date: Tue, 24 Dec 2024 11:24:53 +0800
Subject: [PATCH 06/11] =?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 @@
-