From 8f7ac70493e3646436d75fb2a313707c6203c8fa Mon Sep 17 00:00:00 2001
From: wangxiaoshuang <825034831@qq.com>
Date: Wed, 2 Jul 2025 15:44:45 +0800
Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E9=98=85=E7=89=87?=
=?UTF-8?q?=E8=A1=A8=E5=8D=95=E7=9B=B8=E5=85=B3=E5=9B=BD=E9=99=85=E5=8C=96?=
=?UTF-8?q?=E6=B7=BB=E5=8A=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/customize/QuestionFormItem.vue | 23 ++++++++++---------
.../components/customize/QuestionList.vue | 10 +++++---
.../customize/QuestionTableFormItem.vue | 12 +++++-----
3 files changed, 25 insertions(+), 20 deletions(-)
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')}}