diff --git a/src/views/trials/trials-panel/reading/dicoms3D/components/ReadPage.vue b/src/views/trials/trials-panel/reading/dicoms3D/components/ReadPage.vue index aa4af4ac..3142a20d 100644 --- a/src/views/trials/trials-panel/reading/dicoms3D/components/ReadPage.vue +++ b/src/views/trials/trials-panel/reading/dicoms3D/components/ReadPage.vue @@ -1363,10 +1363,12 @@ export default { const isCriticalSequence = this.visitTaskList[taskIndex].StudyList[studyIndex].IsCriticalSequence const keyImages = this.visitTaskList[taskIndex].KeyImages const series = this.visitTaskList[taskIndex].StudyList[studyIndex].SeriesList[seriesIndex] - let file = series.find(item => item.ImageId === imageId) - if (file) { - getNetWorkSpeed() - setNetWorkSpeedSizeAll(percentComplete, detail.total, imageId) + if (series && series.length > 0) { + let file = series.find(item => item.ImageId === imageId) + if (file) { + getNetWorkSpeed() + setNetWorkSpeedSizeAll(percentComplete, detail.total, imageId) + } } if (percentComplete === 100) { workSpeedclose() @@ -2941,11 +2943,16 @@ export default { try { const that = this // 请输入标记名称 - const { value } = await this.$prompt(this.$t('trials:noneDicom:message:msg1'), '', { + let message = this.$t('trials:noneDicom:message:msg1') + if (isShowCancelButton) { + message = `

${this.$t('trials:noneDicom:message:msg1')}

${this.$t('trials:noneDicom:message:saveTip')}

` + } + const { value } = await this.$prompt( message, '', { showClose: false, cancelButtonText: isShowCancelButton ? this.$t('trials:reading:button:temporarySave') : this.$t('common:button:cancel'), confirmButtonText: isShowCancelButton ? this.$t('trials:reading:button:enduringSave') : this.$t('trials:reading:button:relevancy'), // showCancelButton: isShowCancelButton, + dangerouslyUseHTMLString: isShowCancelButton, showCancelButton: true, closeOnClickModal: false, closeOnPressEscape: false, @@ -2965,7 +2972,8 @@ export default { } }) return value - } catch { + } catch(err) { + console.log(err) return null } },