style(性能测试): 修改创建测试时的按钮大小

This commit is contained in:
Captain.B 2021-07-05 18:04:56 +08:00 committed by 刘瑞斌
parent 8d615c9e14
commit b32c31e12e
1 changed files with 9 additions and 7 deletions

View File

@ -6,24 +6,26 @@
<el-col :span="10"> <el-col :span="10">
<el-input :disabled="isReadOnly" :placeholder="$t('load_test.input_name')" v-model="test.name" <el-input :disabled="isReadOnly" :placeholder="$t('load_test.input_name')" v-model="test.name"
class="input-with-select" class="input-with-select"
size="small"
maxlength="30" show-word-limit maxlength="30" show-word-limit
> >
<template slot="prepend">{{ $t('load_test.name') }}</template> <template slot="prepend">{{ $t('load_test.name') }}</template>
</el-input> </el-input>
</el-col> </el-col>
<el-col :span="12" :offset="2"> <el-col :span="12" :offset="2">
<el-link type="primary" style="margin-right: 20px" @click="openHis" v-if="test.id"> <el-link type="primary" size="small" style="margin-right: 20px" @click="openHis" v-if="test.id">
{{ $t('operating_log.change_history') }} {{ $t('operating_log.change_history') }}
</el-link> </el-link>
<el-button :disabled="isReadOnly" type="primary" plain @click="save" <el-button :disabled="isReadOnly" type="primary" size="small" plain @click="save"
v-permission="['PROJECT_PERFORMANCE_TEST:READ+EDIT']" v-permission="['PROJECT_PERFORMANCE_TEST:READ+EDIT']"
>{{ $t('commons.save') }} >{{ $t('commons.save') }}
</el-button> </el-button>
<el-button :disabled="isReadOnly" type="primary" plain @click="saveAndRun" <el-button :disabled="isReadOnly" size="small" type="primary" plain @click="saveAndRun"
v-permission="['PROJECT_PERFORMANCE_TEST:READ+RUN']"> v-permission="['PROJECT_PERFORMANCE_TEST:READ+RUN']">
{{ $t('load_test.save_and_run') }} {{ $t('load_test.save_and_run') }}
</el-button> </el-button>
<el-button :disabled="isReadOnly" type="warning" plain @click="cancel">{{ $t('commons.cancel') }} <el-button :disabled="isReadOnly" size="small" type="warning" plain @click="cancel">
{{ $t('commons.cancel') }}
</el-button> </el-button>
<ms-schedule-config :schedule="test.schedule" :save="saveCronExpression" @scheduleChange="saveSchedule" <ms-schedule-config :schedule="test.schedule" :save="saveCronExpression" @scheduleChange="saveSchedule"
@ -171,11 +173,11 @@ export default {
} }
this.active = '1'; this.active = '1';
this.$store.commit("clearTest"); this.$store.commit("clearTest");
}else { } else {
let scenarioJmxs = this.$store.state.scenarioJmxs; let scenarioJmxs = this.$store.state.scenarioJmxs;
if(scenarioJmxs && scenarioJmxs.name){ if (scenarioJmxs && scenarioJmxs.name) {
this.$set(this.test, "name", scenarioJmxs.name); this.$set(this.test, "name", scenarioJmxs.name);
if(scenarioJmxs.jmxs){ if (scenarioJmxs.jmxs) {
scenarioJmxs.jmxs.forEach(item => { scenarioJmxs.jmxs.forEach(item => {
if (item.scenarioId) { if (item.scenarioId) {
this.$refs.basicConfig.importScenario(item.scenarioId); this.$refs.basicConfig.importScenario(item.scenarioId);