高级设置 i18n

This commit is contained in:
Captain.B 2020-02-28 15:17:58 +08:00
parent 52337f63a2
commit 17679bb9f7
3 changed files with 28 additions and 12 deletions

View File

@ -24,6 +24,7 @@ export default {
'test': 'Test',
'create_time': 'Created Time',
'update_time': 'Updated Time',
'add': 'Add',
},
workspace: {
'create': 'Create Workspace',
@ -85,6 +86,13 @@ export default {
'ramp_up_time_minutes': 'minutes, separate',
'ramp_up_time_times': 'add concurrent users',
'advanced_config_error': 'Advanced configuration verification failed',
'domain_bind': 'Domain bind',
'domain': 'Domain',
'enable': 'Enable',
'ip': 'IP',
'params': 'Parameters',
'param_name': 'Name',
'param_value': 'Value',
},
i18n: {
'home': 'Home',

View File

@ -24,6 +24,7 @@ export default {
'test': '测试',
'create_time': '创建时间',
'update_time': '更新时间',
'add': '添加',
},
workspace: {
'create': '创建工作空间',
@ -85,6 +86,13 @@ export default {
'ramp_up_time_minutes': '分钟内,分',
'ramp_up_time_times': '次增加并发用户',
'advanced_config_error': '高级配置校验失败',
'domain_bind': '域名绑定',
'domain': '域名',
'enable': '是否启用',
'ip': 'IP地址',
'params': '自定义属性',
'param_name': '属性名',
'param_value': '属性值',
},
i18n: {
'home': '首页',

View File

@ -3,17 +3,17 @@
<el-row type="flex" justify="start">
<el-col :span="8">
<h3>域名绑定</h3>
<h3>{{$t('load_test.domain_bind')}}</h3>
</el-col>
<el-col :span="8">
<el-button type="primary" plain @click="add('domains')">添加</el-button>
<el-button type="primary" plain size="mini" @click="add('domains')">{{$t('commons.add')}}</el-button>
</el-col>
</el-row>
<!-- -->
<el-row>
<el-table :data="domains">
<el-table-column
label="域名"
:label="$t('load_test.domain')"
show-overflow-tooltip>
<template slot-scope="{row}">
<template v-if="row.edit">
@ -23,7 +23,7 @@
</template>
</el-table-column>
<el-table-column
label="是否启用"
:label="$t('load_test.enable')"
show-overflow-tooltip>
<template slot-scope="{row}">
<template v-if="row.edit">
@ -38,7 +38,7 @@
</template>
</el-table-column>
<el-table-column
label="IP地址"
:label="$t('load_test.ip')"
show-overflow-tooltip>
<template slot-scope="{row}">
<template v-if="row.edit">
@ -47,7 +47,7 @@
<span v-else>{{ row.ip }}</span>
</template>
</el-table-column>
<el-table-column align="center" label="Actions">
<el-table-column align="center">
<template slot-scope="{row}">
<template v-if="row.edit">
<el-button
@ -89,17 +89,17 @@
<el-row>
<el-col :span="8">
<h3>自定义属性</h3>
<h3>{{$t('load_test.params')}}</h3>
</el-col>
<el-col :span="8">
<el-button type="primary" plain @click="add('params')">添加</el-button>
<el-button type="primary" plain size="mini" @click="add('params')">{{$t('commons.add')}}</el-button>
</el-col>
</el-row>
<!-- -->
<el-row>
<el-table :data="params">
<el-table-column
label="属性名"
:label="$t('load_test.param_name')"
show-overflow-tooltip>
<template slot-scope="{row}">
<template v-if="row.edit">
@ -109,7 +109,7 @@
</template>
</el-table-column>
<el-table-column
label="是否启用"
:label="$t('load_test.enable')"
show-overflow-tooltip>
<template slot-scope="{row}">
<template v-if="row.edit">
@ -124,7 +124,7 @@
</template>
</el-table-column>
<el-table-column
label="属性值"
:label="$t('load_test.param_value')"
show-overflow-tooltip>
<template slot-scope="{row}">
<template v-if="row.edit">
@ -133,7 +133,7 @@
<span v-else>{{ row.value }}</span>
</template>
</el-table-column>
<el-table-column align="center" label="Actions">
<el-table-column align="center">
<template slot-scope="{row}">
<template v-if="row.edit">
<el-button