| | |
| | | <div class="icon-content"> |
| | | <el-icon |
| | | size="20" |
| | | color="#ffffff" |
| | | color="#FFA500" |
| | | style="margin-right: 5px" |
| | | @click.stop="copyDocument(element, index)" |
| | | > |
| | |
| | | </el-icon> |
| | | <el-icon |
| | | size="20" |
| | | color="#ffffff" |
| | | color="#FFA500" |
| | | style="margin-right: 5px" |
| | | @click.stop="deleteDocument(element)" |
| | | > |
| | |
| | | clearInterval(schedulePPTTimer.value) |
| | | } |
| | | const copyDocument = (item, index) => { |
| | | ElMessageBox.confirm( |
| | | '是否复制该页面?', |
| | | '提示', |
| | | { |
| | | 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) => { |
| | | ElMessageBox.confirm( |
| | | '是否删除该页面?', |
| | | '提示', |
| | | { |
| | | 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 |
| | |
| | | <!-- <el-icon size="20" color="#ffffff" style="margin-right: 5px" @click.stop="copyItem(item.id)">--> |
| | | <!-- <CopyDocument />--> |
| | | <!-- </el-icon>--> |
| | | <el-icon size="20" color="#ffffff" style="margin-right: 5px" @click.stop="deleteItem(item.id)"> |
| | | <el-icon size="20" color="#ffcf49" style="margin-right: 5px" @click.stop="deleteItem(item.id)"> |
| | | <Delete /> |
| | | </el-icon> |
| | | </div> |