高级设置 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', 'test': 'Test',
'create_time': 'Created Time', 'create_time': 'Created Time',
'update_time': 'Updated Time', 'update_time': 'Updated Time',
'add': 'Add',
}, },
workspace: { workspace: {
'create': 'Create Workspace', 'create': 'Create Workspace',
@ -85,6 +86,13 @@ export default {
'ramp_up_time_minutes': 'minutes, separate', 'ramp_up_time_minutes': 'minutes, separate',
'ramp_up_time_times': 'add concurrent users', 'ramp_up_time_times': 'add concurrent users',
'advanced_config_error': 'Advanced configuration verification failed', '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: { i18n: {
'home': 'Home', 'home': 'Home',

View File

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

View File

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