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 @@ + + + + + + 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 @@ + + + + + + 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 @@ + + + + +