From 4f32927b497b25fe7405aff423c24336ee805dfd Mon Sep 17 00:00:00 2001 From: lyc Date: Tue, 24 Dec 2024 10:21:13 +0800 Subject: [PATCH] =?UTF-8?q?edit=20=E6=A1=86=E6=9E=B6=E8=AE=BE=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 () => {