| | |
| | | <script lang="ts" setup> |
| | | import { ref, reactive, onMounted } from 'vue' |
| | | import draggable from 'vuedraggable' |
| | | |
| | | import { ElMessage, ElMessageBox } from 'element-plus' |
| | | import Vue3DraggableResizable from 'vue3-draggable-resizable' |
| | | import 'vue3-draggable-resizable/dist/Vue3DraggableResizable.css' |
| | | import { config } from '@/config/axios/config' |
| | |
| | | clearInterval(schedulePPTTimer.value) |
| | | } |
| | | const copyDocument = (item, index) => { |
| | | let copyItem = cloneDeep(item) |
| | | copyItem.id = generateUUID() |
| | | copyItem.isActive = false |
| | | PPTArr.value.splice(index + 1, 0, copyItem) |
| | | ElMessageBox.confirm( |
| | | '是否复制这页PPT?', |
| | | '提示', |
| | | { |
| | | confirmButtonText: '是', |
| | | cancelButtonText: '否', |
| | | type: 'warning', |
| | | } |
| | | ) |
| | | .then(() => { |
| | | let copyItem = cloneDeep(item) |
| | | copyItem.id = generateUUID() |
| | | copyItem.isActive = false |
| | | PPTArr.value.splice(index + 1, 0, copyItem) |
| | | }) |
| | | .catch(() => { |
| | | ElMessage({ |
| | | type: 'info', |
| | | message: '已取消复制', |
| | | }) |
| | | }) |
| | | |
| | | } |
| | | const deleteDocument = (item) => { |
| | | PPTArr.value = PPTArr.value.filter((child) => child.id !== item.id) |
| | | ElMessageBox.confirm( |
| | | '是否删除这页PPT?', |
| | | '提示', |
| | | { |
| | | confirmButtonText: '是', |
| | | cancelButtonText: '否', |
| | | type: 'warning', |
| | | } |
| | | ) |
| | | .then(() => { |
| | | PPTArr.value = PPTArr.value.filter((child) => child.id !== item.id) |
| | | }).catch(() => { |
| | | ElMessage({ |
| | | type: 'info', |
| | | message: '已取消删除', |
| | | }) |
| | | }) |
| | | |
| | | } |
| | | const deleteDigitalHuman = () => { |
| | | selectPPT.value.showDigitalHuman = false |
| | |
| | | SaveLoading.value = false |
| | | return false |
| | | } |
| | | |
| | | |
| | | } else { |
| | | // 合成视频前先保存 |
| | | try { |