@@ -359,6 +360,13 @@ export default {
documentId: this.selectedDocument.id,
archivesId: this.crud.selections[0].id
}
+ } else if (type === 'copy') {
+ this.formTitle = '复制文件'
+ this.arcId = this.crud.selections[0].id
+ params = {
+ documentId: this.selectedDocument.id,
+ archivesId: this.crud.selections[0].id
+ }
}
this.getFormInfo(params, type)
},
@@ -405,6 +413,11 @@ export default {
this.$refs.previewForm.fileJsonString = fileJsonString
console.log('fileJsonString', JSON.parse(fileJsonString))
console.log('fileJsonString', JSON.parse(fileJsonString).length)
+ } else if (type === 'copy') {
+ this.$refs.previewForm.archivesType = 'add'
+ this.$refs.previewForm.addOrUpdateForm = data.echo
+ this.$refs.previewForm.fileOriginal = ''
+ this.$refs.previewForm.fileJsonString = ''
} else {
this.$refs.previewForm.archivesType = 'add'
}