diff --git a/src/components/uploadDicomAndNonedicom/dicomFile.vue b/src/components/uploadDicomAndNonedicom/dicomFile.vue index 57c2aee3..492930e9 100644 --- a/src/components/uploadDicomAndNonedicom/dicomFile.vue +++ b/src/components/uploadDicomAndNonedicom/dicomFile.vue @@ -490,6 +490,10 @@ export default { type: String, default: '', }, + isUpload: { + type: Boolean, + default: false, + }, }, components: { 'study-view': studyView, @@ -619,6 +623,7 @@ export default { let res = await deleteTaskStudy(params) if (res.IsSuccess) { this.getList() + this.$emit('update:isUpload', true) this.$message.success( this.$t('trials:uploadImage:message:delSuccess') ) @@ -687,6 +692,7 @@ export default { for (let i = 0; i < checkFiles.length; i++) { let item = checkFiles[i] var dicom = await parseDicom(item, 'StudyInstanceUid') + if (!dicom.StudyInstanceUid) continue let has = true, has2 = false, has3 = false @@ -1422,6 +1428,7 @@ export default { } scope.uploadQueues[index].uploadState.record = Record scope.getList() + scope.$emit('update:isUpload', true) if ( scope.$route.path !== '/trials/trials-panel/visit/crc-question' diff --git a/src/components/uploadDicomAndNonedicom/index.vue b/src/components/uploadDicomAndNonedicom/index.vue index 1b3d5633..04eea735 100644 --- a/src/components/uploadDicomAndNonedicom/index.vue +++ b/src/components/uploadDicomAndNonedicom/index.vue @@ -19,6 +19,7 @@ :SubjectCode="SubjectCode" :Criterion="Criterion" :VisitTaskId="VisitTaskId" + :isUpload.sync="isUpload" /> @@ -71,6 +73,7 @@ export default { return { title: '', activeName: 'dicom', + isUpload: false, } }, mounted() { @@ -78,6 +81,12 @@ export default { }, methods: { beforeClose() { + if ( + this.$route.path !== '/trials/trials-panel/reading/readingTask' && + this.isUpload + ) { + return window.location.reload() + } this.$emit('update:visible', false) }, }, diff --git a/src/components/uploadDicomAndNonedicom/nonedicomFile.vue b/src/components/uploadDicomAndNonedicom/nonedicomFile.vue index 9b54496c..b57d3bb2 100644 --- a/src/components/uploadDicomAndNonedicom/nonedicomFile.vue +++ b/src/components/uploadDicomAndNonedicom/nonedicomFile.vue @@ -398,6 +398,10 @@ export default { type: String, default: '', }, + isUpload: { + type: Boolean, + default: false, + }, }, data() { return { @@ -617,6 +621,7 @@ export default { let res = await deleteTaskStudy(params) if (res.IsSuccess) { this.getList() + this.$emit('update:isUpload', true) this.$message.success( this.$t('trials:uploadImage:message:delSuccess') ) @@ -774,6 +779,7 @@ export default { this.resetFileDiaolg() } this.getList() + this.$emit('update:isUpload', true) // 刷新父组件列表 this.$emit('getList') this.$message.success(