feat: Run the report module to change internationalization (#943)

Co-authored-by: 冯建军 <fengjj@data4truth.com>
pull/948/head
PleasePerfunctory 2 years ago committed by GitHub
parent 4445dd149d
commit b288b1f2ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -16,16 +16,28 @@ export default {
edit: 'Edit',
delete: 'Delete',
cancel: 'Cancel',
confirm: 'Confirm'
confirm: 'Confirm',
threadPool: 'Thread Pool',
},
// 运行报表
report: {
tenant: 'Tenant',
item: 'Item',
poolInstance: 'Pool Instance',
user: 'User',
role: 'Role',
tenants: 'Tenants',
createTime: 'Create Time',
updateTime: 'Update Time'
},
// 线程池
threadPool: {
tenant: 'Tenant',
project: 'Project',
threadPool: 'Thread Pool',
}
}

@ -16,13 +16,25 @@ export default {
edit: '编辑',
delete: '删除',
cancel: '取消',
confirm: '确认'
confirm: '确认',
threadPool: '线程池',
},
// 运行报表
report: {
tenant: '租户',
item: '项目',
poolInstance: '线程池实例',
user: '登录用户',
role: '用户角色',
tenants: '所属租户',
createTime: '创建时间',
updateTime: '修改时间'
},
// 线程池
threadPool: {
tenant: '租户',
project: '项目',
threadPool: '线程池',
}
}

@ -7,7 +7,7 @@
</div>
<div class="card-panel-description">
<div class="card-panel-text">
Tenant
{{ $t('report.tenant') }}
</div>
<count-to :start-val="0" :end-val="successCount" :duration="2600" class="card-panel-num" />
</div>
@ -20,7 +20,7 @@
</div>
<div class="card-panel-description">
<div class="card-panel-text">
Item
{{ $t('report.item') }}
</div>
<count-to :start-val="0" :end-val="failCount" :duration="3000" class="card-panel-num" />
</div>
@ -33,7 +33,7 @@
</div>
<div class="card-panel-description">
<div class="card-panel-text">
Thread Pool
{{ $t('common.threadPool') }}
</div>
<count-to :start-val="0" :end-val="runningCount" :duration="3200" class="card-panel-num" />
</div>
@ -46,7 +46,7 @@
</div>
<div class="card-panel-description">
<div class="card-panel-text">
Pool Instance
{{ $t('report.poolInstance') }}
</div>
<count-to :start-val="0" :end-val="runningCountInstance" :duration="3200" class="card-panel-num" />
</div>

@ -18,19 +18,19 @@
<el-col :xs="24" :sm="24" :lg="8">
<div class="chart-wrapper">
<el-form label-position="left">
<el-form-item label="登录用户" label-width="120px">
<el-form-item :label="$t('report.user')" label-width="120px">
<span>{{ temp.userName }}</span>
</el-form-item>
<el-form-item label="用户角色" label-width="120px">
<el-form-item :label="$t('report.role')" label-width="120px">
<span>{{ temp.role }}</span>
</el-form-item>
<el-form-item label="所属租户" label-width="120px">
<el-form-item :label="$t('report.tenants')" label-width="120px">
<span></span>
</el-form-item>
<el-form-item label="创建时间" label-width="120px">
<el-form-item :label="$t('report.createTime')" label-width="120px">
<span> {{ temp.gmtCreate }}</span>
</el-form-item>
<el-form-item label="修改时间" label-width="120px">
<el-form-item :label="$t('report.updateTime')" label-width="120px">
<span>{{ temp.gmtModified }}</span>
</el-form-item>
</el-form>

@ -33,7 +33,7 @@
</el-select>
<el-select
v-model="listQuery.tpId"
:placeholder="$t('threadPool.threadPool')"
:placeholder="$t('common.threadPool')"
style="width: 220px"
filterable
class="filter-item"

Loading…
Cancel
Save