fix(性能测试): 修复性能测试压力配置国际化问题

This commit is contained in:
CaptainB 2021-12-20 15:26:20 +08:00 committed by shiziyuan9527
parent 8c8c69998e
commit 982385b1a6
5 changed files with 26 additions and 17 deletions

View File

@ -50,13 +50,13 @@
{{ $t('load_test.thread_num') }}{{ threadGroup.threadNumber }}, {{ $t('load_test.thread_num') }}{{ threadGroup.threadNumber }},
{{ $t('load_test.duration') }}: {{ $t('load_test.duration') }}:
<span v-if="threadGroup.durationHours"> <span v-if="threadGroup.durationHours">
{{ threadGroup.durationHours }}{{ $t('schedule.cron.hours') }} {{ threadGroup.durationHours }}{{ $t('load_test.hours') }}
</span> </span>
<span v-if="threadGroup.durationMinutes"> <span v-if="threadGroup.durationMinutes">
{{ threadGroup.durationMinutes }}{{ $t('schedule.cron.minutes') }} {{ threadGroup.durationMinutes }}{{ $t('load_test.minutes') }}
</span> </span>
<span v-if="threadGroup.durationSeconds"> <span v-if="threadGroup.durationSeconds">
{{ threadGroup.durationSeconds }}{{ $t('schedule.cron.seconds') }} {{ threadGroup.durationSeconds }}{{ $t('load_test.seconds') }}
</span> </span>
</el-tag> </el-tag>
<el-tag type="primary" size="mini" v-if="threadGroup.threadType === 'ITERATION'"> <el-tag type="primary" size="mini" v-if="threadGroup.threadType === 'ITERATION'">
@ -106,7 +106,7 @@
@change="calculateTotalChart()" @change="calculateTotalChart()"
size="mini"/> size="mini"/>
</el-form-item> </el-form-item>
<el-form-item :label="$t('schedule.cron.hours')" label-width="40px"/> <el-form-item :label="$t('load_test.hours')" label-width="20px"/>
<el-form-item> <el-form-item>
<el-input-number controls-position="right" <el-input-number controls-position="right"
@ -116,7 +116,7 @@
@change="calculateTotalChart()" @change="calculateTotalChart()"
size="mini"/> size="mini"/>
</el-form-item> </el-form-item>
<el-form-item :label="$t('schedule.cron.minutes')" label-width="40px"/> <el-form-item :label="$t('load_test.minutes')" label-width="20px"/>
<el-form-item> <el-form-item>
<el-input-number controls-position="right" <el-input-number controls-position="right"
@ -126,7 +126,7 @@
@change="calculateTotalChart()" @change="calculateTotalChart()"
size="mini"/> size="mini"/>
</el-form-item> </el-form-item>
<el-form-item :label="$t('schedule.cron.seconds')" label-width="20px"/> <el-form-item :label="$t('load_test.seconds')" label-width="20px"/>
<br> <br>
<el-form-item :label="$t('load_test.rps_limit_enable')"> <el-form-item :label="$t('load_test.rps_limit_enable')">
<el-switch v-model="threadGroup.rpsLimitEnable" @change="calculateTotalChart()"/> <el-switch v-model="threadGroup.rpsLimitEnable" @change="calculateTotalChart()"/>

View File

@ -51,13 +51,13 @@
{{ $t('load_test.thread_num') }}{{ threadGroup.threadNumber }}, {{ $t('load_test.thread_num') }}{{ threadGroup.threadNumber }},
{{ $t('load_test.duration') }}: {{ $t('load_test.duration') }}:
<span v-if="threadGroup.durationHours"> <span v-if="threadGroup.durationHours">
{{ threadGroup.durationHours }}{{ $t('schedule.cron.hours') }} {{ threadGroup.durationHours }}{{ $t('load_test.hours') }}
</span> </span>
<span v-if="threadGroup.durationMinutes"> <span v-if="threadGroup.durationMinutes">
{{ threadGroup.durationMinutes }}{{ $t('schedule.cron.minutes') }} {{ threadGroup.durationMinutes }}{{ $t('load_test.minutes') }}
</span> </span>
<span v-if="threadGroup.durationSeconds"> <span v-if="threadGroup.durationSeconds">
{{ threadGroup.durationSeconds }}{{ $t('schedule.cron.seconds') }} {{ threadGroup.durationSeconds }}{{ $t('load_test.seconds') }}
</span> </span>
</el-tag> </el-tag>
<el-tag type="primary" size="mini" v-if="threadGroup.threadType === 'ITERATION'"> <el-tag type="primary" size="mini" v-if="threadGroup.threadType === 'ITERATION'">
@ -105,7 +105,7 @@
@change="calculateTotalChart()" @change="calculateTotalChart()"
size="mini"/> size="mini"/>
</el-form-item> </el-form-item>
<el-form-item :label="$t('schedule.cron.hours')" label-width="40px"/> <el-form-item :label="$t('load_test.hours')" label-width="20px"/>
<el-form-item> <el-form-item>
<el-input-number controls-position="right" <el-input-number controls-position="right"
:disabled="isReadOnly" :disabled="isReadOnly"
@ -115,7 +115,7 @@
@change="calculateTotalChart()" @change="calculateTotalChart()"
size="mini"/> size="mini"/>
</el-form-item> </el-form-item>
<el-form-item :label="$t('schedule.cron.minutes')" label-width="40px"/> <el-form-item :label="$t('load_test.minutes')" label-width="20px"/>
<el-form-item> <el-form-item>
<el-input-number controls-position="right" <el-input-number controls-position="right"
:disabled="isReadOnly" :disabled="isReadOnly"
@ -125,7 +125,7 @@
@change="calculateTotalChart()" @change="calculateTotalChart()"
size="mini"/> size="mini"/>
</el-form-item> </el-form-item>
<el-form-item :label="$t('schedule.cron.seconds')" label-width="20px"/> <el-form-item :label="$t('load_test.seconds')" label-width="20px"/>
<br> <br>
<el-form-item :label="$t('load_test.rps_limit_enable')"> <el-form-item :label="$t('load_test.rps_limit_enable')">
<el-switch v-model="threadGroup.rpsLimitEnable" @change="calculateTotalChart()"/> <el-switch v-model="threadGroup.rpsLimitEnable" @change="calculateTotalChart()"/>

View File

@ -904,23 +904,23 @@ export default {
delete_file_confirm: 'Confirm delete file:', delete_file_confirm: 'Confirm delete file:',
file_size_limit: "The number of files exceeds the limit", file_size_limit: "The number of files exceeds the limit",
delete_file: "The file already exists, please delete the file with the same name first!", delete_file: "The file already exists, please delete the file with the same name first!",
thread_num: 'Concurrent users:', thread_num: 'VUs:',
input_thread_num: 'Please enter the number of threads', input_thread_num: 'Please enter the number of threads',
duration: 'Duration time', duration: 'Duration time',
granularity: 'Aggregation time (seconds)', granularity: 'Aggregation time (seconds)',
input_duration: 'Please enter a duration', input_duration: 'Please enter a duration',
rps_limit: 'RPS Limit', rps_limit: 'RPS Limit',
rps_limit_enable: 'RPS Value', rps_limit_enable: 'RPS Value',
resource_strategy: 'Allocation Strategy', resource_strategy: 'Strategy',
run_mode: 'Run Mode', run_mode: 'Run Mode',
input_rps_limit: 'Please enter a limit', input_rps_limit: 'Please enter a limit',
ramp_up_time_within: 'In', ramp_up_time_within: 'In',
ramp_up_time_minutes: 'seconds, separate', ramp_up_time_minutes: 'seconds, separate',
ramp_up_time_seconds: 'seconds add concurrent users', ramp_up_time_seconds: 'seconds add VUs',
iterate_num: 'Iterations', iterate_num: 'Iterations',
by_iteration: 'By iterations', by_iteration: 'By iterations',
by_duration: 'By duration', by_duration: 'By duration',
ramp_up_time_times: 'add concurrent users', ramp_up_time_times: 'add VUs',
advanced_config_error: 'Advanced configuration verification failed', advanced_config_error: 'Advanced configuration verification failed',
domain_bind: 'Domain bind', domain_bind: 'Domain bind',
domain: 'Domain', domain: 'Domain',
@ -970,7 +970,7 @@ export default {
project_file_update_type_error: 'Updated file types must be consistent', project_file_update_type_error: 'Updated file types must be consistent',
csv_has_header: 'Contains Title', csv_has_header: 'Contains Title',
csv_split: 'CSV Split', csv_split: 'CSV Split',
on_sample_error: 'After a Sampler error', on_sample_error: 'Sampler error',
continue: 'Continue', continue: 'Continue',
startnextloop: 'Start the next loop', startnextloop: 'Start the next loop',
stopthread: 'Stop thread', stopthread: 'Stop thread',
@ -995,6 +995,9 @@ export default {
add_monitor: 'Add Monitor', add_monitor: 'Add Monitor',
monitor_item: 'Monitor', monitor_item: 'Monitor',
monitor_host: 'Target host', monitor_host: 'Target host',
seconds: "S",
minutes: "M",
hours: "H",
}, },
api_test: { api_test: {
is_continue: "Is continue", is_continue: "Is continue",

View File

@ -1001,6 +1001,9 @@ export default {
add_monitor: '添加监控', add_monitor: '添加监控',
monitor_item: '监控项', monitor_item: '监控项',
monitor_host: '监控配置', monitor_host: '监控配置',
seconds: "秒",
minutes: "分",
hours: "时",
}, },
api_test: { api_test: {
is_continue: "是否继续", is_continue: "是否继续",

View File

@ -1001,6 +1001,9 @@ export default {
add_monitor: '添加監控', add_monitor: '添加監控',
monitor_item: '監控項', monitor_item: '監控項',
monitor_host: '監控配置', monitor_host: '監控配置',
seconds: "秒",
minutes: "分",
hours: "時",
}, },
api_test: { api_test: {
is_continue: "是否繼續", is_continue: "是否繼續",