From 0b8e26e77bd630cbcd13aa270adf48ada87b5f13 Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Tue, 7 Apr 2020 18:34:29 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E6=BA=90=E6=B1=A0=E5=9B=BD=E9=99=85?= =?UTF-8?q?=E5=8C=960.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../settings/system/TestResourcePool.vue | 105 +++++++++--------- frontend/src/i18n/en-US.js | 9 ++ frontend/src/i18n/zh-CN.js | 9 ++ 3 files changed, 73 insertions(+), 50 deletions(-) diff --git a/frontend/src/business/components/settings/system/TestResourcePool.vue b/frontend/src/business/components/settings/system/TestResourcePool.vue index 58c962492a..3e6a0e5f97 100644 --- a/frontend/src/business/components/settings/system/TestResourcePool.vue +++ b/frontend/src/business/components/settings/system/TestResourcePool.vue @@ -5,26 +5,27 @@ - - - + + + - + - + - + @@ -71,20 +72,22 @@ - - + - + - - + + Kubernetes - 独立节点 + Single Docker
@@ -103,7 +106,7 @@
- +
@@ -120,7 +123,7 @@
- +
@@ -143,25 +146,27 @@
- - + - + - - + + Kubernetes - 独立节点 + Single Docker
@@ -177,7 +182,8 @@
- +
@@ -194,7 +200,8 @@
- +
@@ -216,7 +223,7 @@
@@ -238,8 +245,8 @@ infoList: [], updateVisible: false, btnTips: "添加资源池", - btnTipsAdd: "添加", - btnTipsDel: "删除", + btnTipsAdd: this.$t("commons.add"), + btnTipsDel: this.$t("commons.delete"), queryPath: "testresourcepool/list", condition: "", items: [], @@ -381,16 +388,15 @@ if (vri.validate) { this.testLoading = true; this.convertSubmitResources(); - this.$post("/testresourcepool/add", this.form) - .then(() => { - this.$message({ - type: 'success', - message: '添加成功!' - }, - this.createVisible = false, - this.initTableData()); - this.testLoading = false; - }); + this.$post("/testresourcepool/add", this.form, () => { + this.$message({ + type: 'success', + message: '添加成功!' + }, + this.createVisible = false, + this.initTableData()); + this.testLoading = false; + }); } else { this.$message({ type: 'warning', @@ -424,17 +430,16 @@ let vri = this.validateResourceInfo(); if (vri.validate) { this.convertSubmitResources(); - this.$post("/testresourcepool/update", this.form) - .then(() => { - this.$message({ - type: 'success', - message: this.$t('commons.modify_success') - }, - this.updateVisible = false, - this.initTableData(), - self.loading = false); - this.testLoading = false; - }); + this.$post("/testresourcepool/update", this.form, () => { + this.$message({ + type: 'success', + message: this.$t('commons.modify_success') + }, + this.updateVisible = false, + this.initTableData(), + self.loading = false); + this.testLoading = false; + }); } else { this.$message({ type: 'warning', diff --git a/frontend/src/i18n/en-US.js b/frontend/src/i18n/en-US.js index 0515b8c679..e7c180d671 100644 --- a/frontend/src/i18n/en-US.js +++ b/frontend/src/i18n/en-US.js @@ -237,6 +237,15 @@ export default { 'select_execute_result': 'Select execute result', 'save': 'Save' }, + 'test_resource_pool': { + 'type': 'type', + 'enable_disable': 'Enable / disable', + 'search_by_name': 'Search by name', + 'create_resource_pool': 'Create resource pool', + 'update_resource_pool': 'Create resource pool', + 'select_pool_type': 'Select resource type', + 'max_threads': 'Maximum concurrent number', + }, i18n: { 'home': 'Home' } diff --git a/frontend/src/i18n/zh-CN.js b/frontend/src/i18n/zh-CN.js index 7024e8e939..0ca53d003e 100644 --- a/frontend/src/i18n/zh-CN.js +++ b/frontend/src/i18n/zh-CN.js @@ -239,6 +239,15 @@ export default { 'save': '保 存' }, + 'test_resource_pool': { + 'type': '类型', + 'enable_disable': '启用/禁用', + 'search_by_name': '根据名称搜索', + 'create_resource_pool': '创建资源池', + 'update_resource_pool': '创建资源池', + 'select_pool_type': '选择资源类型', + 'max_threads': '最大并发数', + }, i18n: { 'home': '首页' }