Complete the text translation of the 'Thread Pool Monitor' page (#1138)

pull/1140/head
Svamei 1 year ago committed by GitHub
parent cf6880aca0
commit 37930e140a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -40,7 +40,8 @@ export default {
createTime: 'Create Time', createTime: 'Create Time',
updateTime: 'Update Time', updateTime: 'Update Time',
hint: 'Warning', hint: 'Warning',
info: 'Info' info: 'Info',
stack: 'Stack'
}, },
// 运行报表 // 运行报表
@ -125,5 +126,12 @@ export default {
allowCoreThreadTimeOut: 'Allow Core Thread Time Out', allowCoreThreadTimeOut: 'Allow Core Thread Time Out',
changeAll: 'Change All', changeAll: 'Change All',
stackRequestFail: 'The current thread pool has no stack information' stackRequestFail: 'The current thread pool has no stack information'
},
//线程池监控
threadPoolMonitor: {
ipPort: 'IP : Port',
ipPortRequired: 'IP : Port(Required)',
noResultsYet: 'No results yet'
} }
} }

@ -40,7 +40,8 @@ export default {
createTime: '创建时间', createTime: '创建时间',
updateTime: '修改时间', updateTime: '修改时间',
hint: '提示', hint: '提示',
info: '详情' info: '详情',
stack: '堆栈'
}, },
// 运行报表 // 运行报表
@ -126,5 +127,12 @@ export default {
allowCoreThreadTimeOut: '线程超时', allowCoreThreadTimeOut: '线程超时',
changeAll: '全部修改', changeAll: '全部修改',
stackRequestFail: '当前线程池暂无堆栈信息' stackRequestFail: '当前线程池暂无堆栈信息'
},
//线程池监控
threadPoolMonitor: {
ipPort: 'IP : Port',
ipPortRequired: 'IP : Port必填',
noResultsYet: '暂无结果'
} }
} }

@ -3,7 +3,7 @@
<div class="filter-container"> <div class="filter-container">
<el-select <el-select
v-model="listQuery.tenantId" v-model="listQuery.tenantId"
placeholder="租户(必填)" :placeholder="$t('tenantManage.tenantRequired')"
style="width: 220px" style="width: 220px"
filterable filterable
class="filter-item" class="filter-item"
@ -18,7 +18,7 @@
</el-select> </el-select>
<el-select <el-select
v-model="listQuery.itemId" v-model="listQuery.itemId"
placeholder="项目(必填)" :placeholder="$t('projectManage.itemRequired')"
style="width: 220px" style="width: 220px"
filterable filterable
class="filter-item" class="filter-item"
@ -33,7 +33,7 @@
</el-select> </el-select>
<el-select <el-select
v-model="listQuery.tpId" v-model="listQuery.tpId"
placeholder="线程池(必填)" :placeholder="$t('threadPool.threadPoolRequired')"
style="width: 220px" style="width: 220px"
filterable filterable
class="filter-item" class="filter-item"
@ -48,7 +48,7 @@
</el-select> </el-select>
<el-select <el-select
v-model="listQuery.identify" v-model="listQuery.identify"
placeholder="IP : Port必填" :placeholder="$t('threadPoolMonitor.ipPortRequired')"
style="width: 220px" style="width: 220px"
filterable filterable
class="filter-item" class="filter-item"
@ -69,7 +69,7 @@
icon="el-icon-search" icon="el-icon-search"
@click="fetchData" @click="fetchData"
> >
搜索 {{ $t('common.query') }}
</el-button> </el-button>
<el-button <el-button
v-waves v-waves
@ -79,10 +79,10 @@
icon="el-icon-refresh" icon="el-icon-refresh"
@click="refreshData" @click="refreshData"
> >
重置 {{ $t('common.reset') }}
</el-button> </el-button>
</div> </div>
<el-empty v-if="!temp.coreSize" description="暂无结果" /> <el-empty v-if="!temp.coreSize" :description="$t('threadPoolMonitor.noResultsYet')" />
<section v-else> <section v-else>
<!-- <el-card shadow="hover"> <!-- <el-card shadow="hover">
<el-descriptions :column="3" border> <el-descriptions :column="3" border>
@ -267,19 +267,19 @@ export default {
methods: { methods: {
fetchData() { fetchData() {
if (!this.listQuery.tenantId) { if (!this.listQuery.tenantId) {
this.$message.warning('租户不允许为空'); this.$message.warning(this.$t('message.emptyWarning', { name: this.$t('tenantManage.tenant') }));
return; return;
} }
if (!this.listQuery.itemId) { if (!this.listQuery.itemId) {
this.$message.warning('项目不允许为空'); this.$message.warning(this.$t('message.emptyWarning', { name: this.$t('projectManage.item') }));
return; return;
} }
if (!this.listQuery.tpId) { if (!this.listQuery.tpId) {
this.$message.warning('线程池不允许为空'); this.$message.warning(this.$t('message.emptyWarning', { name: this.$t('threadPool.threadPool') }));
return; return;
} }
if (!this.listQuery.identify) { if (!this.listQuery.identify) {
this.$message.warning('IP : PORT 不允许为空'); this.$message.warning(this.$t('message.emptyWarning', { name: this.$t('threadPoolMonitor.ipPort') }));
return; return;
} }

Loading…
Cancel
Save