diff --git a/electron-builder-yc.yml b/electron-builder-yc.yml
index 385b578..fd34471 100644
--- a/electron-builder-yc.yml
+++ b/electron-builder-yc.yml
@@ -1,10 +1,10 @@
appId: com.electron.app.yc
-productName: 文枢课堂
+productName: 永川中小学AI教学系统
directories:
output: dist
buildResources: build
win:
- executableName: 文枢课堂
+ executableName: 永川中小学AI教学系统
icon: resources/yc-logo.png
files:
- '!**/.vscode/*'
diff --git a/package.json b/package.json
index f3599c1..7fb23eb 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "aix-win-ws",
- "version": "2.5.11",
+ "version": "2.5.14",
"description": "",
"main": "./out/main/index.js",
"author": "上海交大重庆人工智能研究院",
diff --git a/src/renderer/src/api/mode/index.js b/src/renderer/src/api/mode/index.js
index add0402..26540bb 100644
--- a/src/renderer/src/api/mode/index.js
+++ b/src/renderer/src/api/mode/index.js
@@ -118,7 +118,6 @@ export function docList(params) {
})
}
-
// 保存教学大纲
export function addSyllabus(data) {
return request({
@@ -128,3 +127,35 @@ export function addSyllabus(data) {
})
}
+// 获取保存的大纲列表
+export function syllabusList(params) {
+ return request({
+ url: '/education/generate/list',
+ method: 'get',
+ params
+ })
+}
+
+// 大纲详情
+export function syllabuss(id) {
+ return request({
+ url: '/education/generate/' + id,
+ method: 'get',
+ })
+}
+
+// 删除大纲
+export function removeSyllabus(id) {
+ return request({
+ url: '/education/generate/' + id,
+ method: 'delete',
+ })
+}
+
+export function editSyllabus(data) {
+ return request({
+ url: '/education/generate',
+ method: 'put',
+ data
+ })
+}
diff --git a/src/renderer/src/components/template-study/container/right.vue b/src/renderer/src/components/template-study/container/right.vue
index ea67d82..543c928 100644
--- a/src/renderer/src/components/template-study/container/right.vue
+++ b/src/renderer/src/components/template-study/container/right.vue
@@ -344,6 +344,8 @@ const againResult = async (index, item) => {
}
}
+
+const delay = (ms) => new Promise(resolve => setTimeout(resolve, ms));
// 一键研读
const getCompletion = async () => {
isStarted.value = new Array(childTempList.length).fill(false)
@@ -372,6 +374,7 @@ const getCompletion = async () => {
conversationId: conversation_id.value,
stream: false
})
+ await delay(1000); // 每个请求之间延迟 1 秒
data = res.data
}
// 知识库模型
diff --git a/src/renderer/src/components/whiteboard/whiteboard.vue b/src/renderer/src/components/whiteboard/whiteboard.vue
index be3e274..563b114 100644
--- a/src/renderer/src/components/whiteboard/whiteboard.vue
+++ b/src/renderer/src/components/whiteboard/whiteboard.vue
@@ -123,7 +123,7 @@
-
@@ -303,6 +303,7 @@ import {
import Contextmenu from './components/Contextmenu.vue'
import { fontFamilyList, fontSizeList } from './constants'
+const borderStyleImg = new URL('../../../src/assets/images/borderstyle.png', import.meta.url).href
const borderImg = new URL('../../../src/assets/images/borderwidth.png', import.meta.url).href
const pointerImg = new URL('../../../src/assets/images/mouse-pointer.png', import.meta.url).href
const { proxy } = getCurrentInstance()
diff --git a/src/renderer/src/hooks/useProcessList.js b/src/renderer/src/hooks/useProcessList.js
index c9f1e07..a3dcd8b 100644
--- a/src/renderer/src/hooks/useProcessList.js
+++ b/src/renderer/src/hooks/useProcessList.js
@@ -328,7 +328,7 @@ export const processList = (row, aloneOption=false) => {
// 处理[答案显示] - 1-正常 0-错误
const answer = workAnswerArr
.map((item) => {
- return item === '1' ? '正确' : '错误'
+ return DICT_TRUE_OR_FALSE.TRUE.includes(item) ? '正确' : DICT_TRUE_OR_FALSE.FALSE.includes(item)?'错误':item;
})
.join('、')
row[i].workanswerFormat = answer
@@ -341,3 +341,8 @@ export const processList = (row, aloneOption=false) => {
}
}
}
+
+const DICT_TRUE_OR_FALSE = {
+ TRUE: ['正确', '对', '√', '1'],
+ FALSE: ['错误', '错', '×', '0'],
+};
\ No newline at end of file
diff --git a/src/renderer/src/utils/ppt-request.js b/src/renderer/src/utils/ppt-request.js
index 7d49a50..f080ece 100644
--- a/src/renderer/src/utils/ppt-request.js
+++ b/src/renderer/src/utils/ppt-request.js
@@ -106,6 +106,18 @@ const getBackGroundV2 = async () => {
throw error;
}
};
+
+const createOutlineV2 = async (data) => {
+ try {
+ const response = await req("/api/aipptV2/createOutlineV2", "POST", data);
+ console.log("createOutline response:", response);
+
+ return response.data;
+ } catch (error) {
+ console.error("请求失败:", error);
+ throw error;
+ }
+};
const createPPTV2 = async (data) => {
try {
const response = await req("/api/aipptV2/createV2", "POST", data);
@@ -127,4 +139,4 @@ const getProgressV2 = async (id) => {
}
};
-export { createOutline, getBackGround, createPPT, getProgress, getBackGroundV2, createPPTV2, getProgressV2, createByOutline };
+export { createOutline, getBackGround, createPPT, getProgress, getBackGroundV2, createOutlineV2, createPPTV2, getProgressV2, createByOutline };
diff --git a/src/renderer/src/views/teachingDesign/container/center.vue b/src/renderer/src/views/teachingDesign/container/center.vue
index 2bb122c..ae9fa30 100644
--- a/src/renderer/src/views/teachingDesign/container/center.vue
+++ b/src/renderer/src/views/teachingDesign/container/center.vue
@@ -9,29 +9,41 @@
生成教学大纲
+
+
+ 删除大纲
+
+
+
+ 编辑大纲
+
-
+
+
\ No newline at end of file