diff --git a/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeQuestionFormItem.vue b/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeQuestionFormItem.vue index 05a37668..fd8a36b2 100644 --- a/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeQuestionFormItem.vue +++ b/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeQuestionFormItem.vue @@ -229,13 +229,13 @@ {{this.$t('common:button:upload')}} diff --git a/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeQuestionTableFormItem.vue b/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeQuestionTableFormItem.vue index 6aa5e0df..49aa941b 100644 --- a/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeQuestionTableFormItem.vue +++ b/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeQuestionTableFormItem.vue @@ -167,15 +167,15 @@
@@ -331,6 +331,7 @@ export default { this.fileList.push({ name: '', url: `${url}` }) }) } + console.log('11') } if (this.type === 'edit') return // if (this.question.Type === 'number') { @@ -524,14 +525,17 @@ export default { // this.fileList = [] return true } else { - this.$alert(`必须是 ${this.accept} 格式`) + let msg = this.$t( + "trials:readingUnit:qsList:message:imageFormat" + ).replace("xxx", this.question.FileType) + this.$alert(msg) return false } }, checkFileSuffix(fileName) { var index = fileName.lastIndexOf('.') var suffix = fileName.substring(index + 1, fileName.length) - if (this.accept.toLocaleLowerCase().search(suffix.toLocaleLowerCase()) === -1) { + if (this.question.FileType.toLocaleLowerCase().search(suffix.toLocaleLowerCase()) === -1) { return false } else { return true diff --git a/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeReportPageUpload.vue b/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeReportPageUpload.vue index 0160357c..fd39cfae 100644 --- a/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeReportPageUpload.vue +++ b/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeReportPageUpload.vue @@ -1,15 +1,15 @@