From de7a965b7bd59722fb0b6ef69b03b5820c81f416 Mon Sep 17 00:00:00 2001
From: Svamei <41992090+Svamei@users.noreply.github.com>
Date: Thu, 30 Mar 2023 15:15:28 +0800
Subject: [PATCH] Complete the text translation of the 'Framework Thread Pool'
module (#1140)
---
hippo4j-ui/src/locale/lang/en.js | 10 +++-
hippo4j-ui/src/locale/lang/zh.js | 10 +++-
.../hippo4j/other/alibaba-dubbo/index.vue | 56 +++++++++----------
.../src/views/hippo4j/other/dubbo/index.vue | 56 +++++++++----------
.../src/views/hippo4j/other/hystrix/index.vue | 56 +++++++++----------
.../hippo4j/other/rabbitmq-stream/index.vue | 56 +++++++++----------
.../views/hippo4j/other/rabbitmq/index.vue | 56 +++++++++----------
.../hippo4j/other/rocketmq-stream/index.vue | 56 +++++++++----------
.../views/hippo4j/other/rocketmq/index.vue | 56 +++++++++----------
9 files changed, 214 insertions(+), 198 deletions(-)
diff --git a/hippo4j-ui/src/locale/lang/en.js b/hippo4j-ui/src/locale/lang/en.js
index 76be45d2..201983ad 100644
--- a/hippo4j-ui/src/locale/lang/en.js
+++ b/hippo4j-ui/src/locale/lang/en.js
@@ -18,7 +18,8 @@ export default {
selectMessage: 'Please select a {target}',
NoDeletionPermissionTip: 'Contact the administrator to delete it',
emptyWarning: "The '{name}' cannot be empty",
- queryFailure: 'The query fails. Please refresh the page'
+ queryFailure: 'The query fails. Please refresh the page',
+ updateFailure:'Failed to modify thread pool'
},
// 公共
@@ -133,5 +134,12 @@ export default {
ipPort: 'IP : Port',
ipPortRequired: 'IP : Port(Required)',
noResultsYet: 'No results yet'
+ },
+
+ //框架线程池
+ frameworkThreadPool : {
+ threadPoolIDRequired: 'ThreadPool ID(Required)',
+ threadPoolID: 'ThreadPool ID',
+ threadPoolType: 'ThreadPool Type'
}
}
diff --git a/hippo4j-ui/src/locale/lang/zh.js b/hippo4j-ui/src/locale/lang/zh.js
index c35c7ebd..a8b08e83 100644
--- a/hippo4j-ui/src/locale/lang/zh.js
+++ b/hippo4j-ui/src/locale/lang/zh.js
@@ -18,7 +18,8 @@ export default {
selectMessage: '请选择{target}',
NoDeletionPermissionTip: '请联系管理员删除',
emptyWarning: "{name}不允许为空",
- queryFailure: '查询失败,请尝试刷新页面'
+ queryFailure: '查询失败,请尝试刷新页面',
+ updateFailure:'修改线程池失败'
},
// 公共
@@ -134,5 +135,12 @@ export default {
ipPort: 'IP : Port',
ipPortRequired: 'IP : Port(必填)',
noResultsYet: '暂无结果'
+ },
+
+ //框架线程池
+ frameworkThreadPool : {
+ threadPoolIDRequired: '线程池标识(必填)',
+ threadPoolID: '线程池标识',
+ threadPoolType: '线程池类型'
}
}
diff --git a/hippo4j-ui/src/views/hippo4j/other/alibaba-dubbo/index.vue b/hippo4j-ui/src/views/hippo4j/other/alibaba-dubbo/index.vue
index da1e1761..6ce9c7ad 100755
--- a/hippo4j-ui/src/views/hippo4j/other/alibaba-dubbo/index.vue
+++ b/hippo4j-ui/src/views/hippo4j/other/alibaba-dubbo/index.vue
@@ -3,7 +3,7 @@
- 搜索
+ {{ $t('common.query') }}
- 重置
+ {{ $t('common.reset') }}
-
+
{{ scope.$index + 1 }}
-
+
{{ scope.row.identify }}
-
+
{{ scope.row.active }}
-
+
{{ scope.row.threadPoolKey }}
-
+
{{ scope.row.coreSize }}
-
+
{{ scope.row.maximumSize }}
@@ -110,7 +110,7 @@
{{ scope.row.queueCapacity }}
-->
-
+
- 编辑
+ {{ $t('common.edit') }}
@@ -134,7 +134,7 @@
label-position="left"
label-width="110px"
>
-
+
-
+
-
+
@@ -283,19 +283,19 @@ export default {
},
fetchData() {
if (!this.listQuery.mark) {
- this.$message.warning('线程池类型不允许为空');
+ this.$message.warning(this.$t('message.emptyWarning', { name: this. $t('frameworkThreadPool.threadPoolType') }));
return;
}
if (!this.listQuery.tenantId) {
- this.$message.warning('租户不允许为空');
+ this.$message.warning(this.$t('message.emptyWarning', { name: this.$t('tenantManage.tenant') }));
return;
}
if (!this.listQuery.itemId) {
- this.$message.warning('项目不允许为空');
+ this.$message.warning(this.$t('message.emptyWarning', { name: this.$t('projectManage.item') }));
return;
}
if (!this.listQuery.threadPoolKey) {
- this.$message.warning('线程池标识不允许为空');
+ this.$message.warning(this.$t('message.emptyWarning', { name: this. $t('frameworkThreadPool.threadPoolID') }));
return;
}
this.listLoading = true;
@@ -333,7 +333,7 @@ export default {
if (valid) {
if (parseInt(this.temp.maximumSize) < parseInt(this.temp.coreSize)) {
this.$message({
- message: '最大线程必须大于等于核心线程',
+ message: this.$t('threadPool.threadsNumErrorTip'),
type: 'warning',
});
return;
@@ -385,13 +385,13 @@ export default {
})
.catch((error) => {
console.log(error);
- this.$message.error('修改线程池失败');
+ this.$message.error(this.$t('message.updateFailure'));
});
},
openDelConfirm(name) {
- return this.$confirm(`此操作将删除 ${name}, 是否继续?`, '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
+ return this.$confirm(this.$t('message.deleteMessage', { name }), this.$t('common.hint'), {
+ confirmButtonText: this.$t('common.ok'),
+ cancelButtonText: this.$t('common.cancel'),
type: 'warning',
});
},
@@ -497,7 +497,7 @@ export default {
})
.catch((error) => {
console.log(error);
- this.$message.error('查询失败,请尝试刷新页面');
+ this.$message.error(this.$t('message.queryFailure'));
});
},
},
diff --git a/hippo4j-ui/src/views/hippo4j/other/dubbo/index.vue b/hippo4j-ui/src/views/hippo4j/other/dubbo/index.vue
index 530275f6..ad3847f0 100755
--- a/hippo4j-ui/src/views/hippo4j/other/dubbo/index.vue
+++ b/hippo4j-ui/src/views/hippo4j/other/dubbo/index.vue
@@ -3,7 +3,7 @@
- 搜索
+ {{ $t('common.query') }}
- 重置
+ {{ $t('common.reset') }}
-
+
{{ scope.$index + 1 }}
-
+
{{ scope.row.identify }}
-
+
{{ scope.row.active }}
-
+
{{ scope.row.threadPoolKey }}
-
+
{{ scope.row.coreSize }}
-
+
{{ scope.row.maximumSize }}
@@ -110,7 +110,7 @@
{{ scope.row.queueCapacity }}
-->
-
+
- 编辑
+ {{ $t('common.edit') }}
@@ -134,7 +134,7 @@
label-position="left"
label-width="110px"
>
-
+
-
+
-
+
@@ -283,19 +283,19 @@ export default {
},
fetchData() {
if (!this.listQuery.mark) {
- this.$message.warning('线程池类型不允许为空');
+ this.$message.warning(this.$t('message.emptyWarning', { name: this. $t('frameworkThreadPool.threadPoolType') }));
return;
}
if (!this.listQuery.tenantId) {
- this.$message.warning('租户不允许为空');
+ this.$message.warning(this.$t('message.emptyWarning', { name: this.$t('tenantManage.tenant') }));
return;
}
if (!this.listQuery.itemId) {
- this.$message.warning('项目不允许为空');
+ this.$message.warning(this.$t('message.emptyWarning', { name: this.$t('projectManage.item') }));
return;
}
if (!this.listQuery.threadPoolKey) {
- this.$message.warning('线程池标识不允许为空');
+ this.$message.warning(this.$t('message.emptyWarning', { name: this. $t('frameworkThreadPool.threadPoolID') }));
return;
}
this.listLoading = true;
@@ -333,7 +333,7 @@ export default {
if (valid) {
if (parseInt(this.temp.maximumSize) < parseInt(this.temp.coreSize)) {
this.$message({
- message: '最大线程必须大于等于核心线程',
+ message: this.$t('threadPool.threadsNumErrorTip'),
type: 'warning',
});
return;
@@ -385,13 +385,13 @@ export default {
})
.catch((error) => {
console.log(error);
- this.$message.error('修改线程池失败');
+ this.$message.error(this.$t('message.updateFailure'));
});
},
openDelConfirm(name) {
- return this.$confirm(`此操作将删除 ${name}, 是否继续?`, '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
+ return this.$confirm(this.$t('message.deleteMessage', { name }), this.$t('common.hint'), {
+ confirmButtonText: this.$t('common.ok'),
+ cancelButtonText: this.$t('common.cancel'),
type: 'warning',
});
},
@@ -497,7 +497,7 @@ export default {
})
.catch((error) => {
console.log(error);
- this.$message.error('查询失败,请尝试刷新页面');
+ this.$message.error(this.$t('message.queryFailure'));
});
},
},
diff --git a/hippo4j-ui/src/views/hippo4j/other/hystrix/index.vue b/hippo4j-ui/src/views/hippo4j/other/hystrix/index.vue
index 1162ed67..79dc1f2d 100755
--- a/hippo4j-ui/src/views/hippo4j/other/hystrix/index.vue
+++ b/hippo4j-ui/src/views/hippo4j/other/hystrix/index.vue
@@ -3,7 +3,7 @@
- 搜索
+ {{ $t('common.query') }}
- 重置
+ {{ $t('common.reset') }}
-
+
{{ scope.$index + 1 }}
-
+
{{ scope.row.identify }}
-
+
{{ scope.row.active }}
-
+
{{ scope.row.threadPoolKey }}
-
+
{{ scope.row.coreSize }}
-
+
{{ scope.row.maximumSize }}
@@ -110,7 +110,7 @@
{{ scope.row.queueCapacity }}
-->
-
+
- 编辑
+ {{ $t('common.edit') }}
@@ -134,7 +134,7 @@
label-position="left"
label-width="110px"
>
-
+
-
+
-
+
@@ -283,19 +283,19 @@ export default {
},
fetchData() {
if (!this.listQuery.mark) {
- this.$message.warning('线程池类型不允许为空');
+ this.$message.warning(this.$t('message.emptyWarning', { name: this. $t('frameworkThreadPool.threadPoolType') }));
return;
}
if (!this.listQuery.tenantId) {
- this.$message.warning('租户不允许为空');
+ this.$message.warning(this.$t('message.emptyWarning', { name: this.$t('tenantManage.tenant') }));
return;
}
if (!this.listQuery.itemId) {
- this.$message.warning('项目不允许为空');
+ this.$message.warning(this.$t('message.emptyWarning', { name: this.$t('projectManage.item') }));
return;
}
if (!this.listQuery.threadPoolKey) {
- this.$message.warning('线程池标识不允许为空');
+ this.$message.warning(this.$t('message.emptyWarning', { name: this. $t('frameworkThreadPool.threadPoolID') }));
return;
}
this.listLoading = true;
@@ -333,7 +333,7 @@ export default {
if (valid) {
if (parseInt(this.temp.maximumSize) < parseInt(this.temp.coreSize)) {
this.$message({
- message: '最大线程必须大于等于核心线程',
+ message: this.$t('threadPool.threadsNumErrorTip'),
type: 'warning',
});
return;
@@ -385,13 +385,13 @@ export default {
})
.catch((error) => {
console.log(error);
- this.$message.error('修改线程池失败');
+ this.$message.error(this.$t('message.updateFailure'));
});
},
openDelConfirm(name) {
- return this.$confirm(`此操作将删除 ${name}, 是否继续?`, '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
+ return this.$confirm(this.$t('message.deleteMessage', { name }), this.$t('common.hint'), {
+ confirmButtonText: this.$t('common.ok'),
+ cancelButtonText: this.$t('common.cancel'),
type: 'warning',
});
},
@@ -497,7 +497,7 @@ export default {
})
.catch((error) => {
console.log(error);
- this.$message.error('查询失败,请尝试刷新页面');
+ this.$message.error(this.$t('message.queryFailure'));
});
},
},
diff --git a/hippo4j-ui/src/views/hippo4j/other/rabbitmq-stream/index.vue b/hippo4j-ui/src/views/hippo4j/other/rabbitmq-stream/index.vue
index b2c4918c..14b72fc9 100755
--- a/hippo4j-ui/src/views/hippo4j/other/rabbitmq-stream/index.vue
+++ b/hippo4j-ui/src/views/hippo4j/other/rabbitmq-stream/index.vue
@@ -3,7 +3,7 @@
- 搜索
+ {{ $t('common.query') }}
- 重置
+ {{ $t('common.reset') }}
-
+
{{ scope.$index + 1 }}
-
+
{{ scope.row.identify }}
-
+
{{ scope.row.active }}
-
+
{{ scope.row.threadPoolKey }}
-
+
{{ scope.row.coreSize }}
-
+
{{ scope.row.maximumSize }}
@@ -110,7 +110,7 @@
{{ scope.row.queueCapacity }}
-->
-
+
- 编辑
+ {{ $t('common.edit') }}
@@ -133,7 +133,7 @@
label-position="left"
label-width="110px"
>
-
+
-
+
-
+
@@ -282,19 +282,19 @@ export default {
},
fetchData() {
if (!this.listQuery.mark) {
- this.$message.warning('线程池类型不允许为空');
+ this.$message.warning(this.$t('message.emptyWarning', { name: this. $t('frameworkThreadPool.threadPoolType') }));
return;
}
if (!this.listQuery.tenantId) {
- this.$message.warning('租户不允许为空');
+ this.$message.warning(this.$t('message.emptyWarning', { name: this.$t('tenantManage.tenant') }));
return;
}
if (!this.listQuery.itemId) {
- this.$message.warning('项目不允许为空');
+ this.$message.warning(this.$t('message.emptyWarning', { name: this.$t('projectManage.item') }));
return;
}
if (!this.listQuery.threadPoolKey) {
- this.$message.warning('线程池标识不允许为空');
+ this.$message.warning(this.$t('message.emptyWarning', { name: this. $t('frameworkThreadPool.threadPoolID') }));
return;
}
this.listLoading = true;
@@ -332,7 +332,7 @@ export default {
if (valid) {
if (parseInt(this.temp.maximumSize) < parseInt(this.temp.coreSize)) {
this.$message({
- message: '最大线程必须大于等于核心线程',
+ message: this.$t('threadPool.threadsNumErrorTip'),
type: 'warning',
});
return;
@@ -384,13 +384,13 @@ export default {
})
.catch((error) => {
console.log(error);
- this.$message.error('修改线程池失败');
+ this.$message.error(this.$t('message.updateFailure'));
});
},
openDelConfirm(name) {
- return this.$confirm(`此操作将删除 ${name}, 是否继续?`, '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
+ return this.$confirm(this.$t('message.deleteMessage', { name }), this.$t('common.hint'), {
+ confirmButtonText: this.$t('common.ok'),
+ cancelButtonText: this.$t('common.cancel'),
type: 'warning',
});
},
@@ -496,7 +496,7 @@ export default {
})
.catch((error) => {
console.log(error);
- this.$message.error('查询失败,请尝试刷新页面');
+ this.$message.error(this.$t('message.queryFailure'));
});
},
},
diff --git a/hippo4j-ui/src/views/hippo4j/other/rabbitmq/index.vue b/hippo4j-ui/src/views/hippo4j/other/rabbitmq/index.vue
index 9dabd398..adf993e9 100755
--- a/hippo4j-ui/src/views/hippo4j/other/rabbitmq/index.vue
+++ b/hippo4j-ui/src/views/hippo4j/other/rabbitmq/index.vue
@@ -3,7 +3,7 @@
- 搜索
+ {{ $t('common.query') }}
- 重置
+ {{ $t('common.reset') }}
-
+
{{ scope.$index + 1 }}
-
+
{{ scope.row.identify }}
-
+
{{ scope.row.active }}
-
+
{{ scope.row.threadPoolKey }}
-
+
{{ scope.row.coreSize }}
-
+
{{ scope.row.maximumSize }}
@@ -110,7 +110,7 @@
{{ scope.row.queueCapacity }}
-->
-
+
- 编辑
+ {{ $t('common.edit') }}
@@ -134,7 +134,7 @@
label-position="left"
label-width="110px"
>
-
+
-
+
-
+
@@ -283,19 +283,19 @@ export default {
},
fetchData() {
if (!this.listQuery.mark) {
- this.$message.warning('线程池类型不允许为空');
+ this.$message.warning(this.$t('message.emptyWarning', { name: this. $t('frameworkThreadPool.threadPoolType') }));
return;
}
if (!this.listQuery.tenantId) {
- this.$message.warning('租户不允许为空');
+ this.$message.warning(this.$t('message.emptyWarning', { name: this.$t('tenantManage.tenant') }));
return;
}
if (!this.listQuery.itemId) {
- this.$message.warning('项目不允许为空');
+ this.$message.warning(this.$t('message.emptyWarning', { name: this.$t('projectManage.item') }));
return;
}
if (!this.listQuery.threadPoolKey) {
- this.$message.warning('线程池标识不允许为空');
+ this.$message.warning(this.$t('message.emptyWarning', { name: this. $t('frameworkThreadPool.threadPoolID') }));
return;
}
this.listLoading = true;
@@ -333,7 +333,7 @@ export default {
if (valid) {
if (parseInt(this.temp.maximumSize) < parseInt(this.temp.coreSize)) {
this.$message({
- message: '最大线程必须大于等于核心线程',
+ message: this.$t('threadPool.threadsNumErrorTip'),
type: 'warning',
});
return;
@@ -381,13 +381,13 @@ export default {
})
.catch((error) => {
console.log(error);
- this.$message.error('修改线程池失败');
+ this.$message.error(this.$t('message.updateFailure'));
});
},
openDelConfirm(name) {
- return this.$confirm(`此操作将删除 ${name}, 是否继续?`, '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
+ return this.$confirm(this.$t('message.deleteMessage', { name }), this.$t('common.hint'), {
+ confirmButtonText: this.$t('common.ok'),
+ cancelButtonText: this.$t('common.cancel'),
type: 'warning',
});
},
@@ -493,7 +493,7 @@ export default {
})
.catch((error) => {
console.log(error);
- this.$message.error('查询失败,请尝试刷新页面');
+ this.$message.error(this.$t('message.queryFailure'));
});
},
},
diff --git a/hippo4j-ui/src/views/hippo4j/other/rocketmq-stream/index.vue b/hippo4j-ui/src/views/hippo4j/other/rocketmq-stream/index.vue
index f64b9c78..5bea453b 100755
--- a/hippo4j-ui/src/views/hippo4j/other/rocketmq-stream/index.vue
+++ b/hippo4j-ui/src/views/hippo4j/other/rocketmq-stream/index.vue
@@ -3,7 +3,7 @@
- 搜索
+ {{ $t('common.query') }}
- 重置
+ {{ $t('common.reset') }}
-
+
{{ scope.$index + 1 }}
-
+
{{ scope.row.identify }}
-
+
{{ scope.row.active }}
-
+
{{ scope.row.threadPoolKey }}
-
+
{{ scope.row.coreSize }}
-
+
{{ scope.row.maximumSize }}
@@ -110,7 +110,7 @@
{{ scope.row.queueCapacity }}
-->
-
+
- 编辑
+ {{ $t('common.edit') }}
@@ -133,7 +133,7 @@
label-position="left"
label-width="110px"
>
-
+
-
+
-
+
@@ -282,19 +282,19 @@ export default {
},
fetchData() {
if (!this.listQuery.mark) {
- this.$message.warning('线程池类型不允许为空');
+ this.$message.warning(this.$t('message.emptyWarning', { name: this. $t('frameworkThreadPool.threadPoolType') }));
return;
}
if (!this.listQuery.tenantId) {
- this.$message.warning('租户不允许为空');
+ this.$message.warning(this.$t('message.emptyWarning', { name: this.$t('tenantManage.tenant') }));
return;
}
if (!this.listQuery.itemId) {
- this.$message.warning('项目不允许为空');
+ this.$message.warning(this.$t('message.emptyWarning', { name: this.$t('projectManage.item') }));
return;
}
if (!this.listQuery.threadPoolKey) {
- this.$message.warning('线程池标识不允许为空');
+ this.$message.warning(this.$t('message.emptyWarning', { name: this. $t('frameworkThreadPool.threadPoolID') }));
return;
}
this.listLoading = true;
@@ -332,7 +332,7 @@ export default {
if (valid) {
if (parseInt(this.temp.maximumSize) < parseInt(this.temp.coreSize)) {
this.$message({
- message: '最大线程必须大于等于核心线程',
+ message: this.$t('threadPool.threadsNumErrorTip'),
type: 'warning',
});
return;
@@ -384,13 +384,13 @@ export default {
})
.catch((error) => {
console.log(error);
- this.$message.error('修改线程池失败');
+ this.$message.error(this.$t('message.updateFailure'));
});
},
openDelConfirm(name) {
- return this.$confirm(`此操作将删除 ${name}, 是否继续?`, '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
+ return this.$confirm(this.$t('message.deleteMessage', { name }), this.$t('common.hint'), {
+ confirmButtonText: this.$t('common.ok'),
+ cancelButtonText: this.$t('common.cancel'),
type: 'warning',
});
},
@@ -496,7 +496,7 @@ export default {
})
.catch((error) => {
console.log(error);
- this.$message.error('查询失败,请尝试刷新页面');
+ this.$message.error(this.$t('message.queryFailure'));
});
},
},
diff --git a/hippo4j-ui/src/views/hippo4j/other/rocketmq/index.vue b/hippo4j-ui/src/views/hippo4j/other/rocketmq/index.vue
index 17c4fb9a..a37fd516 100755
--- a/hippo4j-ui/src/views/hippo4j/other/rocketmq/index.vue
+++ b/hippo4j-ui/src/views/hippo4j/other/rocketmq/index.vue
@@ -3,7 +3,7 @@
- 搜索
+ {{ $t('common.query') }}
- 重置
+ {{ $t('common.reset') }}
-
+
{{ scope.$index + 1 }}
-
+
{{ scope.row.identify }}
-
+
{{ scope.row.active }}
-
+
{{ scope.row.threadPoolKey }}
-
+
{{ scope.row.coreSize }}
-
+
{{ scope.row.maximumSize }}
@@ -110,7 +110,7 @@
{{ scope.row.queueCapacity }}
-->
-
+
- 编辑
+ {{ $t('common.edit') }}
@@ -134,7 +134,7 @@
label-position="left"
label-width="110px"
>
-
+
-
+
-
+
@@ -283,19 +283,19 @@ export default {
},
fetchData() {
if (!this.listQuery.mark) {
- this.$message.warning('线程池类型不允许为空');
+ this.$message.warning(this.$t('message.emptyWarning', { name: this. $t('frameworkThreadPool.threadPoolType') }));
return;
}
if (!this.listQuery.tenantId) {
- this.$message.warning('租户不允许为空');
+ this.$message.warning(this.$t('message.emptyWarning', { name: this.$t('tenantManage.tenant') }));
return;
}
if (!this.listQuery.itemId) {
- this.$message.warning('项目不允许为空');
+ this.$message.warning(this.$t('message.emptyWarning', { name: this.$t('projectManage.item') }));
return;
}
if (!this.listQuery.threadPoolKey) {
- this.$message.warning('线程池标识不允许为空');
+ this.$message.warning(this.$t('message.emptyWarning', { name: this. $t('frameworkThreadPool.threadPoolID') }));
return;
}
this.listLoading = true;
@@ -333,7 +333,7 @@ export default {
if (valid) {
if (parseInt(this.temp.maximumSize) < parseInt(this.temp.coreSize)) {
this.$message({
- message: '最大线程必须大于等于核心线程',
+ message: this.$t('threadPool.threadsNumErrorTip'),
type: 'warning',
});
return;
@@ -385,13 +385,13 @@ export default {
})
.catch((error) => {
console.log(error);
- this.$message.error('修改线程池失败');
+ this.$message.error(this.$t('message.updateFailure'));
});
},
openDelConfirm(name) {
- return this.$confirm(`此操作将删除 ${name}, 是否继续?`, '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
+ return this.$confirm(this.$t('message.deleteMessage', { name }), this.$t('common.hint'), {
+ confirmButtonText: this.$t('common.ok'),
+ cancelButtonText: this.$t('common.cancel'),
type: 'warning',
});
},
@@ -497,7 +497,7 @@ export default {
})
.catch((error) => {
console.log(error);
- this.$message.error('查询失败,请尝试刷新页面');
+ this.$message.error(this.$t('message.queryFailure'));
});
},
},