阅片页面上传数据后页面刷新
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
dc60a1ca4a
commit
d30953bb98
|
@ -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'
|
||||||
|
|
|
@ -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)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue