diff --git a/frontend/src/business/components/track/case/components/BatchEdit.vue b/frontend/src/business/components/track/case/components/BatchEdit.vue index 2b8f98a0bb..0da61dc57b 100644 --- a/frontend/src/business/components/track/case/components/BatchEdit.vue +++ b/frontend/src/business/components/track/case/components/BatchEdit.vue @@ -14,7 +14,7 @@ - +
@@ -47,7 +47,9 @@ valueArr: Object, dialogTitle: { type: String, - default: "批量操作" + default() { + return this.$t('test_track.case.batch_operate') + } } }, data() { @@ -56,8 +58,8 @@ form: {}, size: 0, rules: { - type: {required: true, message: "请选择属性", trigger: ['blur','change']}, - value: {required: true, message: "请选择属性对应的值", trigger: ['blur','change']} + type: {required: true, message: this.$t('test_track.case.please_select_attr'), trigger: ['blur','change']}, + value: {required: true, message: this.$t('test_track.case.please_select_attr_value'), trigger: ['blur','change']} }, options: [], filterable: false, diff --git a/frontend/src/business/components/track/case/components/BatchMove.vue b/frontend/src/business/components/track/case/components/BatchMove.vue index b0eabe8e5c..2072a7aea6 100644 --- a/frontend/src/business/components/track/case/components/BatchMove.vue +++ b/frontend/src/business/components/track/case/components/BatchMove.vue @@ -1,6 +1,6 @@ @@ -193,18 +193,18 @@ showMore: false, buttons: [ { - name: '批量编辑用例', handleClick: this.handleBatchEdit + name: this.$t('test_track.case.batch_edit_case'), handleClick: this.handleBatchEdit }, { - name: '批量移动用例', handleClick: this.handleBatchMove + name: this.$t('test_track.case.batch_move_case'), handleClick: this.handleBatchMove }, { - name: '批量删除用例', handleClick: this.handleDeleteBatch + name: this.$t('test_track.case.batch_delete_case'), handleClick: this.handleDeleteBatch } ], typeArr: [ - {id: 'priority', name: '用例等级'}, - {id: 'type', name: '类型'}, - {id: 'method', name: '测试方式'}, - {id: 'maintainer', name: '维护人'}, + {id: 'priority', name: this.$t('test_track.case.priority')}, + {id: 'type', name: this.$t('test_track.case.type')}, + {id: 'method', name: this.$t('test_track.case.method')}, + {id: 'maintainer', name: this.$t('test_track.case.maintainer')}, ], valueArr: { priority: [ diff --git a/frontend/src/business/components/track/plan/view/comonents/TestPlanTestCaseEdit.vue b/frontend/src/business/components/track/plan/view/comonents/TestPlanTestCaseEdit.vue index 5db9e6c630..3fb1aab590 100644 --- a/frontend/src/business/components/track/plan/view/comonents/TestPlanTestCaseEdit.vue +++ b/frontend/src/business/components/track/plan/view/comonents/TestPlanTestCaseEdit.vue @@ -181,7 +181,7 @@ :active-text="$t('test_track.plan_view.submit_issues')"> @@ -192,7 +192,7 @@ - - - - - - + + + + + +