diff --git a/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionFormItem.vue b/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionFormItem.vue index c0bcbd4d..245140ff 100644 --- a/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionFormItem.vue +++ b/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionFormItem.vue @@ -172,30 +172,30 @@ - 测量 + {{$t('dicom3D:CustomizeQuestionFormItem:button:measure')}} - 绑定 + {{$t('dicom3D:CustomizeQuestionFormItem:button:bind')}} - 查看 + {{$t('dicom3D:CustomizeQuestionFormItem:button:view')}} - 更改 + {{$t('dicom3D:CustomizeQuestionFormItem:button:edit')}} - 移除 + {{$t('dicom3D:CustomizeQuestionFormItem:button:remove')}} - 保存 + {{$t('dicom3D:CustomizeQuestionFormItem:button:save')}} @@ -285,7 +285,6 @@ import QuestionTableFormItem from './QuestionTableFormItem' import BaseModel from '@/components/BaseModel' import PreviewFile from '@/components/PreviewFile/index' import { mapGetters } from 'vuex' -import store from '@/store' export default { name: 'QuestionFormItem', components: { QuestionTableFormItem, BaseModel, PreviewFile }, @@ -596,7 +595,8 @@ export default { } } if (isExistUnSaved) { - this.$alert('存在标记信息未保存!') + //存在标记信息未保存! + this.$alert(this.$t('dicom3D:CustomizeQuestionFormItem:alert:markNoSave')) return } loading = this.$loading({ fullscreen: true }) @@ -688,8 +688,8 @@ export default { } } if (isExistUnSaved) { - // this.$alert('存在标记信息未保存!') - const confirm = await this.$confirm('标记未保存是否确认关闭?', { + // 标记未保存是否确认关闭? + const confirm = await this.$confirm(this.$t("dicom3D:CustomizeQuestionFormItem:confirm:markNoSaveAndclose"), { type: 'warning', distinguishCancelAndClose: true }) @@ -1091,7 +1091,8 @@ export default { } } if (isExistUnSaved) { - const confirm = await this.$confirm('标记未保存是否确认关闭?', { + //标记未保存是否确认关闭? + const confirm = await this.$confirm(this.$t("dicom3D:CustomizeQuestionFormItem:confirm:markNoSaveAndclose"), { type: 'warning', distinguishCancelAndClose: true }) diff --git a/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionList.vue b/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionList.vue index 56311c96..472db64a 100644 --- a/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionList.vue +++ b/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionList.vue @@ -704,8 +704,10 @@ export default { } if (!this.operateQuestionId) return if ([0, 3].includes(currentState)) { + // 该标记不能与问题绑定! if (!annotation.data.label || annotation.markTool !== this.imageTool) { - this.$alert('该标记不能与问题绑定!') + let message = this.$t("dicom3D:CustomizeQuestionList:alert:markNoSaveToQuestion").replace("xxx", this.$t(`dicom3D:mark:${this.imageTool}`)) + this.$alert(message) return } if (currentState === 3) { @@ -714,11 +716,13 @@ export default { && item.RowId !== this.operateRowId && this.operateRowId ) if (conflictIndex > -1) { - this.$alert('该标记已绑定到其他行,不能更改绑定!') + //该标记已绑定到其他行,不能更改绑定! + this.$alert(this.$t("dicom3D:CustomizeQuestionList:alert:markIsbind")) return } } - const message = currentState === 0 ? '是否确认绑定?' : '是否确认更改?' + // 是否确认绑定? 是否确认更改? + const message = currentState === 0 ? this.$t("dicom3D:CustomizeQuestionList:confirm:bindYesOrNo") : this.$t("dicom3D:CustomizeQuestionList:confirm:updateYesOrNo") const result = await this.$confirm(message, { type: 'warning', distinguishCancelAndClose: true diff --git a/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionTableFormItem.vue b/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionTableFormItem.vue index 77df9d66..59b8d015 100644 --- a/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionTableFormItem.vue +++ b/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionTableFormItem.vue @@ -94,31 +94,31 @@ - 测量 + {{$t('dicom3D:CustomizeQuestionFormItem:button:measure')}} - 绑定 + {{$t('dicom3D:CustomizeQuestionFormItem:button:bind')}} - 查看 + {{$t('dicom3D:CustomizeQuestionFormItem:button:view')}} - 更改 + {{$t('dicom3D:CustomizeQuestionFormItem:button:edit')}} - 移除 + {{$t('dicom3D:CustomizeQuestionFormItem:button:remove')}} - 保存 + {{$t('dicom3D:CustomizeQuestionFormItem:button:save')}}