From 1060929532bca256c5497da93ba3fcd5d63a9f8d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=B0=8F=E6=9D=A8?= <666>
Date: Wed, 27 Nov 2024 10:51:43 +0800
Subject: [PATCH 01/10] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=94=B9=E4=B8=AA?=
=?UTF-8?q?=E4=BA=BA=E4=B8=AD=E5=BF=83=E9=BB=98=E8=AE=A4=E4=BF=AE=E6=94=B9?=
=?UTF-8?q?=EF=BC=9B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/renderer/src/views/profile/components/selectClass.vue | 7 +++++--
src/renderer/src/views/profile/userInfo.vue | 4 ++--
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/renderer/src/views/profile/components/selectClass.vue b/src/renderer/src/views/profile/components/selectClass.vue
index ada1d13..2dcc47e 100644
--- a/src/renderer/src/views/profile/components/selectClass.vue
+++ b/src/renderer/src/views/profile/components/selectClass.vue
@@ -59,24 +59,27 @@ const getSubject = () => {
// 选择学段
const handleUserEduStage = (item) => {
userStore.edustage = item
- sessionStore.set('edustage',item)
+ sessionStore.set('edustageSelf',item)
if(item === '幼儿园'){
// 默认语文
userStore.edusubject = '语文'
+ sessionStore.set('edusubjectSelf','语文')
}
else if(item === '高中' && userStore.edusubject === "道德与法治"){
// 默认语文
userStore.edusubject = '政治'
+ sessionStore.set('edusubjectSelf','政治')
}
else if(item != '高中' && userStore.edusubject === "政治"){
// 默认语文
userStore.edusubject = '道德与法治'
+ sessionStore.set('edusubjectSelf','道德与法治')
}
}
// 选择学科
const handleUserEduSubject = (item) => {
userStore.edusubject = item;
- sessionStore.set('edusubject',item)
+ sessionStore.set('edusubjectSelf',item)
}
onMounted(() => {
getSubject()
diff --git a/src/renderer/src/views/profile/userInfo.vue b/src/renderer/src/views/profile/userInfo.vue
index 7666bdf..5efcc0f 100644
--- a/src/renderer/src/views/profile/userInfo.vue
+++ b/src/renderer/src/views/profile/userInfo.vue
@@ -162,8 +162,8 @@ setTimeout(() => {
function submit() {
proxy.$refs.userRef.validate((valid) => {
if (valid) {
- userStore.user.edusubject = sessionStore.get('edusubject') ? sessionStore.get('edusubject') : userStore.user.edusubject
- userStore.user.edustage = sessionStore.get('edustage') ? sessionStore.get('edustage') : userStore.user.edustage
+ userStore.user.edusubject = sessionStore.get('edusubjectSelf') ? sessionStore.get('edusubjectSelf') : userStore.user.edusubject
+ userStore.user.edustage = sessionStore.get('edustageSelf') ? sessionStore.get('edustageSelf') : userStore.user.edustage
updateUserInfo(userStore.user).then((response) => {
if(response.code == 200){
userStore.login({username:userStore.user.userName,password:userStore.user.plainpwd}).then(() => {
From 050f87a84a0db8af86e6bd0c6d8f2332bf4fd2ad Mon Sep 17 00:00:00 2001
From: zhuhao <979263092@qq.com>
Date: Wed, 27 Nov 2024 10:58:00 +0800
Subject: [PATCH 02/10] =?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/views/teachingDesign/container/right.vue | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/src/renderer/src/views/teachingDesign/container/right.vue b/src/renderer/src/views/teachingDesign/container/right.vue
index f973469..d360122 100644
--- a/src/renderer/src/views/teachingDesign/container/right.vue
+++ b/src/renderer/src/views/teachingDesign/container/right.vue
@@ -11,7 +11,7 @@
@@ -49,6 +49,7 @@
+
+
+
diff --git a/src/renderer/src/views/prepare/container/ai-pptistV2.vue b/src/renderer/src/views/prepare/container/ai-pptistV2.vue
new file mode 100644
index 0000000..0a1f50e
--- /dev/null
+++ b/src/renderer/src/views/prepare/container/ai-pptistV2.vue
@@ -0,0 +1,391 @@
+
+
+
+
+
+
+
+
+
+
+ {{ outputText }}
+
+ 从新生成
+ 下一步
+
+
+ ppt模板选择
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 上一步
+ 生成PPT
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/renderer/src/views/prepare/container/pptist-dialog.vue b/src/renderer/src/views/prepare/container/pptist-dialog.vue
new file mode 100644
index 0000000..84bf25f
--- /dev/null
+++ b/src/renderer/src/views/prepare/container/pptist-dialog.vue
@@ -0,0 +1,43 @@
+
+
+
+
+
+
+
From 2c6ccd893bff1e9c6141f51b948711c47aa12fb9 Mon Sep 17 00:00:00 2001
From: zhuhao <979263092@qq.com>
Date: Wed, 27 Nov 2024 11:03:35 +0800
Subject: [PATCH 04/10] =?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/teachingDesign/container/right.vue | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/renderer/src/views/teachingDesign/container/right.vue b/src/renderer/src/views/teachingDesign/container/right.vue
index d360122..2be6c0d 100644
--- a/src/renderer/src/views/teachingDesign/container/right.vue
+++ b/src/renderer/src/views/teachingDesign/container/right.vue
@@ -98,8 +98,9 @@ const params = reactive(
}
)
-const addAiPPT = () => {
-
+const addAiPPT = (res) => {
+ //TODO res中有PPT地址
+ console.log(res)
}
const conversation = async () => {
for (let item of resultList.value) {
From a68fb21203d819ac3ffcc11b93f4e1df85959e79 Mon Sep 17 00:00:00 2001
From: lyc
Date: Wed, 27 Nov 2024 11:21:18 +0800
Subject: [PATCH 05/10] edit
---
.../template-study/container/left.vue | 5 ++-
.../template-study/container/right.vue | 41 +++++++++++--------
2 files changed, 28 insertions(+), 18 deletions(-)
diff --git a/src/renderer/src/components/template-study/container/left.vue b/src/renderer/src/components/template-study/container/left.vue
index 4fbd9d7..f924206 100644
--- a/src/renderer/src/components/template-study/container/left.vue
+++ b/src/renderer/src/components/template-study/container/left.vue
@@ -16,6 +16,7 @@
diff --git a/src/renderer/src/components/template-study/container/right.vue b/src/renderer/src/components/template-study/container/right.vue
index 21931db..2fb7ada 100644
--- a/src/renderer/src/components/template-study/container/right.vue
+++ b/src/renderer/src/components/template-study/container/right.vue
@@ -82,9 +82,10 @@
diff --git a/src/renderer/src/components/template-study/container/right.vue b/src/renderer/src/components/template-study/container/right.vue
index 2fb7ada..68d9acd 100644
--- a/src/renderer/src/components/template-study/container/right.vue
+++ b/src/renderer/src/components/template-study/container/right.vue
@@ -76,7 +76,7 @@
-
+
@@ -278,7 +278,7 @@ const getCompletion = async () => {
for (let item of childTempList.value) {
try {
item.loading = true
- params.prompt = `按照${item.name}的要求,针对${curNode.edustage}${curNode.edusubject}${modeType.value} 对${curNode.itemtitle}进行教学分析`
+ params.prompt = `按照${item.name}的要求,针对${curNode.edustage}${curNode.edusubject}${modeType.value} 对${curNode.itemtitle}进行教学分析`
const { data } = await completion(params)
let answer = data.answer
item.oldAnswer = answer
From c1bba6e4431ba9f660af4ee671c60d1c834997ec Mon Sep 17 00:00:00 2001
From: zdg
Date: Wed, 27 Nov 2024 13:45:48 +0800
Subject: [PATCH 07/10] =?UTF-8?q?pptist=20=E5=9F=BA=E7=A1=80=E5=8A=9F?=
=?UTF-8?q?=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/main/store.js | 4 +-
src/renderer/src/AixPPTist/src/App.vue | 47 ++-
src/renderer/src/AixPPTist/src/api/index.ts | 171 ++++++++
src/renderer/src/AixPPTist/src/api/store.ts | 19 +
src/renderer/src/AixPPTist/src/global.d.ts | 2 +-
.../src/AixPPTist/src/mocks/slides.ts | 365 +++++++++---------
.../src/AixPPTist/src/store/slides.ts | 14 +-
src/renderer/src/api/education/entpcourse.js | 54 +++
.../src/api/education/entpcoursefile.js | 8 +
src/renderer/src/plugins/shareStore.js | 2 +-
src/renderer/src/store/modules/tool.js | 2 +-
src/renderer/src/views/model/index.vue | 171 +++++++-
12 files changed, 647 insertions(+), 212 deletions(-)
create mode 100644 src/renderer/src/AixPPTist/src/api/index.ts
create mode 100644 src/renderer/src/AixPPTist/src/api/store.ts
create mode 100644 src/renderer/src/api/education/entpcourse.js
diff --git a/src/main/store.js b/src/main/store.js
index a34bd90..22e61dd 100644
--- a/src/main/store.js
+++ b/src/main/store.js
@@ -23,7 +23,9 @@ const defaultData = {
curNode: null, // 当前选中的节点
defaultExpandedKeys: [], //展开的节点
subjectTree: [] // "树结构" 章节
- }
+ },
+ env: {}, // 不走同步 Pinia - 变量
+ curr: {} // 不走同步 Pinia - 当前信息
},
local: { // 本地(永久localStorage)
},
diff --git a/src/renderer/src/AixPPTist/src/App.vue b/src/renderer/src/AixPPTist/src/App.vue
index 9029052..2d58652 100644
--- a/src/renderer/src/AixPPTist/src/App.vue
+++ b/src/renderer/src/AixPPTist/src/App.vue
@@ -1,15 +1,20 @@
-
-
-
+
+ 加载中...
+
+
+
+
+
+