From d30953bb98fdfddc27eee7a16ba44fd1986af39a Mon Sep 17 00:00:00 2001 From: "DESKTOP-6C3NK6N\\WXS" <815034831@qq.com> Date: Tue, 24 Sep 2024 16:28:31 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=85=E7=89=87=E9=A1=B5=E9=9D=A2=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E6=95=B0=E6=8D=AE=E5=90=8E=E9=A1=B5=E9=9D=A2=E5=88=B7?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/uploadDicomAndNonedicom/dicomFile.vue | 7 +++++++ src/components/uploadDicomAndNonedicom/index.vue | 9 +++++++++ src/components/uploadDicomAndNonedicom/nonedicomFile.vue | 6 ++++++ 3 files changed, 22 insertions(+) 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(