From 26c8623e400fd8a3793d1cf162bd7ae276dc3d1e Mon Sep 17 00:00:00 2001 From: zhangdahai112 Date: Mon, 21 Nov 2022 19:23:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(UI=E8=87=AA=E5=8A=A8=E5=8C=96):=20=E6=A3=80?= =?UTF-8?q?=E6=9F=A5GRID=E6=8F=90=E7=A4=BA=E5=9B=BD=E9=99=85=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- framework/sdk-parent/frontend/src/i18n/lang/en-US.js | 6 ++++++ framework/sdk-parent/frontend/src/i18n/lang/zh-CN.js | 6 ++++++ framework/sdk-parent/frontend/src/i18n/lang/zh-TW.js | 8 +++++++- .../plan/view/comonents/ui/TestPlanUiScenarioList.vue | 10 +++++----- 4 files changed, 24 insertions(+), 6 deletions(-) diff --git a/framework/sdk-parent/frontend/src/i18n/lang/en-US.js b/framework/sdk-parent/frontend/src/i18n/lang/en-US.js index d93b5c781b..dcde992724 100644 --- a/framework/sdk-parent/frontend/src/i18n/lang/en-US.js +++ b/framework/sdk-parent/frontend/src/i18n/lang/en-US.js @@ -2996,6 +2996,12 @@ const message = { delete_command_lable: "Delete command", command_name_label: "Command name", unplanned_module: "Unplanned module", + check_grid: "Connection failed, please check selenium-grid service status", + check_grid_ip: "Connection failed, please check selenium-grid address information", + view_config: "View configuration information", + config_ip: "The local ip and port information are not detected, please check", + personal_info: "Personal Information", + in_config: "In Settings", }, project_application: { workstation: { diff --git a/framework/sdk-parent/frontend/src/i18n/lang/zh-CN.js b/framework/sdk-parent/frontend/src/i18n/lang/zh-CN.js index afaa628b78..198de94c50 100644 --- a/framework/sdk-parent/frontend/src/i18n/lang/zh-CN.js +++ b/framework/sdk-parent/frontend/src/i18n/lang/zh-CN.js @@ -3008,6 +3008,12 @@ const message = { command_steps_label: "指令步骤", command_step_info: "在右侧添加指令步骤", unplanned_scenario: "未规划场景", + check_grid: "连接失败,请检查 selenium-grid 服务状态", + check_grid_ip: "连接失败,请检查 selenium-grid 地址信息", + view_config: "查看配置信息", + config_ip: "没有检测到本地ip和端口信息,请在", + personal_info: "个人信息", + in_config: "中设置", }, project_application: { workstation: { diff --git a/framework/sdk-parent/frontend/src/i18n/lang/zh-TW.js b/framework/sdk-parent/frontend/src/i18n/lang/zh-TW.js index cb51afb5a3..4fd1250b16 100644 --- a/framework/sdk-parent/frontend/src/i18n/lang/zh-TW.js +++ b/framework/sdk-parent/frontend/src/i18n/lang/zh-TW.js @@ -2986,7 +2986,13 @@ const message = { command_name_label: "指令名稱", command_steps_label: "指令步驟", command_step_info: "在右側添加指令步驟", - unplanned_scenario: "未規劃場景" + unplanned_scenario: "未規劃場景", + check_grid: "連接失敗,請檢查 selenium-grid 服務狀態", + check_grid_ip: "連接失敗,請檢查 selenium-grid 地址信息", + view_config: "查看配置信息", + config_ip: "沒有檢測到本地ip和端口信息,請在", + personal_info: "個人信息", + in_config: "中設置", }, project_application: { workstation: { diff --git a/test-track/frontend/src/business/plan/view/comonents/ui/TestPlanUiScenarioList.vue b/test-track/frontend/src/business/plan/view/comonents/ui/TestPlanUiScenarioList.vue index 2987042221..f902ebb56e 100644 --- a/test-track/frontend/src/business/plan/view/comonents/ui/TestPlanUiScenarioList.vue +++ b/test-track/frontend/src/business/plan/view/comonents/ui/TestPlanUiScenarioList.vue @@ -486,7 +486,7 @@ export default { h( "span", null, - "连接失败,请检查 selenium-grid 服务状态" + this.$t("ui.check_grid") ), h( "p", @@ -498,15 +498,15 @@ export default { }, }, }, - "查看配置信息" - ), + this.$t("ui.view_config") + ), ]) ); validate = false; } else { this.showServerMessageBox( h("p", null, [ - h("span", null, "连接失败,请检查 selenium-grid 地址信息"), + h("span", null, this.$t("ui.check_grid_ip")), h( "p", { @@ -517,7 +517,7 @@ export default { }, }, }, - "查看配置信息" + this.$t("ui.view_config") ), ]) );