From 9034c355cecdd1ddc2c8d4f5d409f3614b477b0c Mon Sep 17 00:00:00 2001 From: WangXu10 Date: Tue, 25 Jul 2023 11:31:12 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E9=A1=B9=E7=9B=AE=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F=E5=90=8D?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1027650 --user=王旭 【项目设置】github#25456,【项目设置】-项目环境:创建环境通用配置类型选择CSV、计数器、随机数高级设置必填项字段“变量名”不输入内容提示信息与字段名称“变量名”不一致。 https://www.tapd.cn/55049933/s/1396955 --- .../src/components/environment/commons/variable/EditCounter.vue | 2 +- .../src/components/environment/commons/variable/EditCsv.vue | 2 +- .../src/components/environment/commons/variable/EditRandom.vue | 2 +- framework/sdk-parent/frontend/src/i18n/lang/track/en-US.js | 1 + framework/sdk-parent/frontend/src/i18n/lang/track/zh-CN.js | 1 + framework/sdk-parent/frontend/src/i18n/lang/track/zh-TW.js | 1 + 6 files changed, 6 insertions(+), 3 deletions(-) diff --git a/framework/sdk-parent/frontend/src/components/environment/commons/variable/EditCounter.vue b/framework/sdk-parent/frontend/src/components/environment/commons/variable/EditCounter.vue index 3d756979c1..4697efc8ca 100644 --- a/framework/sdk-parent/frontend/src/components/environment/commons/variable/EditCounter.vue +++ b/framework/sdk-parent/frontend/src/components/environment/commons/variable/EditCounter.vue @@ -81,7 +81,7 @@ export default { name: [ { required: true, - message: this.$t("test_track.case.input_name"), + message: this.$t("test_track.variable_name"), trigger: "blur", }, ], diff --git a/framework/sdk-parent/frontend/src/components/environment/commons/variable/EditCsv.vue b/framework/sdk-parent/frontend/src/components/environment/commons/variable/EditCsv.vue index 3159a433af..f35481cdec 100644 --- a/framework/sdk-parent/frontend/src/components/environment/commons/variable/EditCsv.vue +++ b/framework/sdk-parent/frontend/src/components/environment/commons/variable/EditCsv.vue @@ -102,7 +102,7 @@ export default { showMessage: false, rules: { name: [ - {required: true, message: this.$t('test_track.case.input_name'), trigger: 'blur'}, + {required: true, message: this.$t('test_track.variable_name'), trigger: 'blur'}, ], }, } diff --git a/framework/sdk-parent/frontend/src/components/environment/commons/variable/EditRandom.vue b/framework/sdk-parent/frontend/src/components/environment/commons/variable/EditRandom.vue index 3bf900a0ec..a3405376c5 100644 --- a/framework/sdk-parent/frontend/src/components/environment/commons/variable/EditRandom.vue +++ b/framework/sdk-parent/frontend/src/components/environment/commons/variable/EditRandom.vue @@ -42,7 +42,7 @@ export default { return { rules: { name: [ - {required: true, message: this.$t('test_track.case.input_name'), trigger: 'blur'}, + {required: true, message: this.$t('test_track.variable_name'), trigger: 'blur'}, ], }, } diff --git a/framework/sdk-parent/frontend/src/i18n/lang/track/en-US.js b/framework/sdk-parent/frontend/src/i18n/lang/track/en-US.js index 87163d7f8e..f643ce3bba 100644 --- a/framework/sdk-parent/frontend/src/i18n/lang/track/en-US.js +++ b/framework/sdk-parent/frontend/src/i18n/lang/track/en-US.js @@ -35,6 +35,7 @@ export default { report_statistics: "Report Statistics", sort: "Sort", other_test_name: "Other Test Name", + variable_name: "Please enter a variable name", demand: { id: "Demand ID", name: "Demand Name", diff --git a/framework/sdk-parent/frontend/src/i18n/lang/track/zh-CN.js b/framework/sdk-parent/frontend/src/i18n/lang/track/zh-CN.js index 76cb7db9dc..a1a69ebd45 100644 --- a/framework/sdk-parent/frontend/src/i18n/lang/track/zh-CN.js +++ b/framework/sdk-parent/frontend/src/i18n/lang/track/zh-CN.js @@ -36,6 +36,7 @@ export default { sort: "种类", automatic_status_update: "自动状态更新", other_test_name: "其他用例名称", + variable_name: "请输入变量名", case: { list: "列表", minder: "脑图", diff --git a/framework/sdk-parent/frontend/src/i18n/lang/track/zh-TW.js b/framework/sdk-parent/frontend/src/i18n/lang/track/zh-TW.js index b51ab9995c..8e738c8968 100644 --- a/framework/sdk-parent/frontend/src/i18n/lang/track/zh-TW.js +++ b/framework/sdk-parent/frontend/src/i18n/lang/track/zh-TW.js @@ -36,6 +36,7 @@ export default { sort: "種類", automatic_status_update: "自動狀態更新", other_test_name: "其他用例名稱", + variable_name: "請輸入變量名稱", case: { list: "列錶", minder: "腦圖",