阅片页面上传数据后页面刷新
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,
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'

View File

@ -19,6 +19,7 @@
:SubjectCode="SubjectCode"
:Criterion="Criterion"
:VisitTaskId="VisitTaskId"
:isUpload.sync="isUpload"
/>
</el-tab-pane>
<el-tab-pane
@ -31,6 +32,7 @@
:SubjectCode="SubjectCode"
:Criterion="Criterion"
:VisitTaskId="VisitTaskId"
:isUpload.sync="isUpload"
/>
</el-tab-pane>
</el-tabs>
@ -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)
},
},

View File

@ -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(