From 8a8f90ce1693e948e0ab551498033ae452b57bfc Mon Sep 17 00:00:00 2001
From: zhuhao <979263092@qq.com>
Date: Wed, 27 Nov 2024 10:58:29 +0800
Subject: [PATCH] =?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/utils/ppt-request.js | 32 +-
.../src/views/prepare/container/ai-pptist.vue | 378 +++++++++++++++++
.../views/prepare/container/ai-pptistV2.vue | 391 ++++++++++++++++++
.../views/prepare/container/pptist-dialog.vue | 43 ++
4 files changed, 843 insertions(+), 1 deletion(-)
create mode 100644 src/renderer/src/views/prepare/container/ai-pptist.vue
create mode 100644 src/renderer/src/views/prepare/container/ai-pptistV2.vue
create mode 100644 src/renderer/src/views/prepare/container/pptist-dialog.vue
diff --git a/src/renderer/src/utils/ppt-request.js b/src/renderer/src/utils/ppt-request.js
index ccfc55f..7d49a50 100644
--- a/src/renderer/src/utils/ppt-request.js
+++ b/src/renderer/src/utils/ppt-request.js
@@ -97,4 +97,34 @@ const getProgress = async (id) => {
}
};
-export { createOutline, getBackGround, createPPT, getProgress, createByOutline };
+const getBackGroundV2 = async () => {
+ try {
+ const response = await req("/api/aipptV2/themeListV2", "GET");
+ return response.data;
+ } catch (error) {
+ console.error("请求失败:", error);
+ throw error;
+ }
+};
+const createPPTV2 = async (data) => {
+ try {
+ const response = await req("/api/aipptV2/createV2", "POST", data);
+ console.log("createOutline response:", response);
+
+ return response.data;
+ } catch (error) {
+ console.error("请求失败:", error);
+ throw error;
+ }
+};
+const getProgressV2 = async (id) => {
+ try {
+ const response = await req(`/api/aipptV2/progressV2?sid=${id}`, "GET");
+ return response.data;
+ } catch (error) {
+ console.error("请求失败:", error);
+ throw error;
+ }
+};
+
+export { createOutline, getBackGround, createPPT, getProgress, getBackGroundV2, createPPTV2, getProgressV2, createByOutline };
diff --git a/src/renderer/src/views/prepare/container/ai-pptist.vue b/src/renderer/src/views/prepare/container/ai-pptist.vue
new file mode 100644
index 0000000..5e0bc9b
--- /dev/null
+++ b/src/renderer/src/views/prepare/container/ai-pptist.vue
@@ -0,0 +1,378 @@
+
+
+
+
+
+
+
+
+
+
+ {{ outputText }}
+
+ 从新生成
+ 下一步
+
+
+ ppt模板选择
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 上一步
+ 生成PPT
+
+
+
+
+
+
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+
+