diff --git a/d3code-ui/src/components/AttachmentSelector/AttachmentItem/index.vue b/d3code-ui/src/components/AttachmentPanel/AttachmentItem/index.vue similarity index 97% rename from d3code-ui/src/components/AttachmentSelector/AttachmentItem/index.vue rename to d3code-ui/src/components/AttachmentPanel/AttachmentItem/index.vue index b54d9ab231d0684935af8776658ef6b7442d73f4..a44ad6ddc28bec128172dd027fd366c7a934b855 100644 --- a/d3code-ui/src/components/AttachmentSelector/AttachmentItem/index.vue +++ b/d3code-ui/src/components/AttachmentPanel/AttachmentItem/index.vue @@ -2,8 +2,8 @@
@@ -98,7 +98,7 @@ export default { }, // 删除文件 handleDeleteFile() { - this.$emit('on-fileDelete', this.index) + this.$emit('on-fileDelete', this.item.id) }, // 下载按钮 handleDownloadFile() { diff --git a/d3code-ui/src/components/AttachmentPanel/index.vue b/d3code-ui/src/components/AttachmentPanel/index.vue index a9e7f73264abec0e17916efaa42a8d31c543360c..311eb3f8f5b7d52e6c48702fa82bb13107b1d58d 100644 --- a/d3code-ui/src/components/AttachmentPanel/index.vue +++ b/d3code-ui/src/components/AttachmentPanel/index.vue @@ -32,7 +32,7 @@ :is-file-checked="checkFileSelected(item)" @checked="handleItemChecked" @unchecked="handleItemUncheck" - @on-fileDelete="handleDeleteFile(index)" + @on-fileDelete="handleDeleteFile" @on-filePreview="handlePreviewFile(item)" @on-lookFile="fileInformation(item)" /> @@ -61,9 +61,10 @@