s生成PPT

This commit is contained in:
朱浩 2024-11-27 10:58:00 +08:00
parent b0d3876e05
commit 050f87a84a
1 changed files with 9 additions and 3 deletions

View File

@ -11,7 +11,7 @@
</div>
<div class="header-right">
<el-button type="primary">生成大纲</el-button>
<el-button type="danger">生成PPT</el-button>
<el-button type="danger" @click="pptDialog = true">生成PPT</el-button>
</div>
</div>
<div class="right-con flex">
@ -49,6 +49,7 @@
</div>
<EditDialog v-model="isEdit" :item="curItem" />
<AdjustDialog v-model="isAdjust" :item="curItem" />
<PptDialog @add-success="addAiPPT" :dataList="resultList" v-model="pptDialog"/>
</template>
<script setup>
@ -59,8 +60,9 @@ import EditDialog from './edit-dialog.vue'
import AdjustDialog from './adjust-dialog.vue'
import { completion, tempResult } from '@/api/mode/index.js'
import { dataSetJson } from '@/utils/comm.js'
import PptDialog from '@/views/prepare/container/pptist-dialog.vue'
const pptDialog = ref(false)
const resultList = ref([])
emitter.on('changeMode', (item) => {
console.log(item, 'item')
@ -95,6 +97,10 @@ const params = reactive(
dataset_id: ''
}
)
const addAiPPT = () => {
}
const conversation = async () => {
for (let item of resultList.value) {
item.loading = true
@ -242,4 +248,4 @@ onUnmounted(() => {
}
}
}
</style>
</style>