du
2025-04-22 44d711f64555a424361866bafa145dd0c462d0cd
复制ppt,删除ppt的提示
已修改2个文件
41 ■■■■■ 文件已修改
easegen-front/src/views/chooseTemplate/index.vue 39 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
easegen-front/src/views/pptTemplateList/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
easegen-front/src/views/chooseTemplate/index.vue
@@ -126,7 +126,7 @@
                    <div class="icon-content">
                      <el-icon
                        size="20"
                        color="#ffffff"
                        color="#FFA500"
                        style="margin-right: 5px"
                        @click.stop="copyDocument(element, index)"
                      >
@@ -134,7 +134,7 @@
                      </el-icon>
                      <el-icon
                        size="20"
                        color="#ffffff"
                        color="#FFA500"
                        style="margin-right: 5px"
                        @click.stop="deleteDocument(element)"
                      >
@@ -1234,13 +1234,48 @@
  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
easegen-front/src/views/pptTemplateList/index.vue
@@ -116,7 +116,7 @@
          <!--          <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>