阅片页面上传数据后页面刷新
continuous-integration/drone/push Build is passing Details

uat_us
DESKTOP-6C3NK6N\WXS 2024-09-24 16:28:31 +08:00
parent dc60a1ca4a
commit d30953bb98
3 changed files with 22 additions and 0 deletions

View File

@ -490,6 +490,10 @@ export default {
type: String, type: String,
default: '', default: '',
}, },
isUpload: {
type: Boolean,
default: false,
},
}, },
components: { components: {
'study-view': studyView, 'study-view': studyView,
@ -619,6 +623,7 @@ export default {
let res = await deleteTaskStudy(params) let res = await deleteTaskStudy(params)
if (res.IsSuccess) { if (res.IsSuccess) {
this.getList() this.getList()
this.$emit('update:isUpload', true)
this.$message.success( this.$message.success(
this.$t('trials:uploadImage:message:delSuccess') this.$t('trials:uploadImage:message:delSuccess')
) )
@ -687,6 +692,7 @@ export default {
for (let i = 0; i < checkFiles.length; i++) { for (let i = 0; i < checkFiles.length; i++) {
let item = checkFiles[i] let item = checkFiles[i]
var dicom = await parseDicom(item, 'StudyInstanceUid') var dicom = await parseDicom(item, 'StudyInstanceUid')
if (!dicom.StudyInstanceUid) continue
let has = true, let has = true,
has2 = false, has2 = false,
has3 = false has3 = false
@ -1422,6 +1428,7 @@ export default {
} }
scope.uploadQueues[index].uploadState.record = Record scope.uploadQueues[index].uploadState.record = Record
scope.getList() scope.getList()
scope.$emit('update:isUpload', true)
if ( if (
scope.$route.path !== scope.$route.path !==
'/trials/trials-panel/visit/crc-question' '/trials/trials-panel/visit/crc-question'

View File

@ -19,6 +19,7 @@
:SubjectCode="SubjectCode" :SubjectCode="SubjectCode"
:Criterion="Criterion" :Criterion="Criterion"
:VisitTaskId="VisitTaskId" :VisitTaskId="VisitTaskId"
:isUpload.sync="isUpload"
/> />
</el-tab-pane> </el-tab-pane>
<el-tab-pane <el-tab-pane
@ -31,6 +32,7 @@
:SubjectCode="SubjectCode" :SubjectCode="SubjectCode"
:Criterion="Criterion" :Criterion="Criterion"
:VisitTaskId="VisitTaskId" :VisitTaskId="VisitTaskId"
:isUpload.sync="isUpload"
/> />
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
@ -71,6 +73,7 @@ export default {
return { return {
title: '', title: '',
activeName: 'dicom', activeName: 'dicom',
isUpload: false,
} }
}, },
mounted() { mounted() {
@ -78,6 +81,12 @@ export default {
}, },
methods: { methods: {
beforeClose() { beforeClose() {
if (
this.$route.path !== '/trials/trials-panel/reading/readingTask' &&
this.isUpload
) {
return window.location.reload()
}
this.$emit('update:visible', false) this.$emit('update:visible', false)
}, },
}, },

View File

@ -398,6 +398,10 @@ export default {
type: String, type: String,
default: '', default: '',
}, },
isUpload: {
type: Boolean,
default: false,
},
}, },
data() { data() {
return { return {
@ -617,6 +621,7 @@ export default {
let res = await deleteTaskStudy(params) let res = await deleteTaskStudy(params)
if (res.IsSuccess) { if (res.IsSuccess) {
this.getList() this.getList()
this.$emit('update:isUpload', true)
this.$message.success( this.$message.success(
this.$t('trials:uploadImage:message:delSuccess') this.$t('trials:uploadImage:message:delSuccess')
) )
@ -774,6 +779,7 @@ export default {
this.resetFileDiaolg() this.resetFileDiaolg()
} }
this.getList() this.getList()
this.$emit('update:isUpload', true)
// //
this.$emit('getList') this.$emit('getList')
this.$message.success( this.$message.success(