refactor(性能测试): 修改编辑资源池页面显示样式
This commit is contained in:
parent
8b8b95631a
commit
70bf87ed33
|
@ -2,7 +2,8 @@
|
|||
<div>
|
||||
<el-card class="table-card" v-loading="result.loading">
|
||||
<template v-slot:header>
|
||||
<ms-table-header :create-permission="['SYSTEM_TEST_POOL:READ+CREATE']" :condition.sync="condition" @search="search" @create="create"
|
||||
<ms-table-header :create-permission="['SYSTEM_TEST_POOL:READ+CREATE']" :condition.sync="condition"
|
||||
@search="search" @create="create"
|
||||
:create-tip="$t('test_resource_pool.create_resource_pool')"
|
||||
:title="$t('commons.test_resource_pool')"/>
|
||||
</template>
|
||||
|
@ -55,10 +56,12 @@
|
|||
:close-on-click-modal="false"
|
||||
:title="form.id ? $t('test_resource_pool.update_resource_pool') : $t('test_resource_pool.create_resource_pool')"
|
||||
:visible.sync="dialogVisible" width="80%"
|
||||
top="5%"
|
||||
@closed="closeFunc"
|
||||
:destroy-on-close="true"
|
||||
v-loading="result.loading"
|
||||
>
|
||||
<div style="height: 60vh;overflow: auto;">
|
||||
<el-form :model="form" label-position="right" label-width="140px" size="small" :rules="rule"
|
||||
ref="testResourcePoolForm">
|
||||
<el-form-item :label="$t('commons.name')" prop="name">
|
||||
|
@ -74,7 +77,8 @@
|
|||
<el-input v-model="form.heap" placeholder="-Xms1g -Xmx1g -XX:MaxMetaspaceSize=256m"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="JMeter GC_ALGO" prop="GC_ALGO">
|
||||
<el-input v-model="form.gcAlgo" placeholder="-XX:+UseG1GC -XX:MaxGCPauseMillis=100 -XX:G1ReservePercent=20"/>
|
||||
<el-input v-model="form.gcAlgo"
|
||||
placeholder="-XX:+UseG1GC -XX:MaxGCPauseMillis=100 -XX:G1ReservePercent=20"/>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('test_resource_pool.type')" prop="type">
|
||||
<el-select v-model="form.type" :placeholder="$t('test_resource_pool.select_pool_type')"
|
||||
|
@ -172,6 +176,7 @@
|
|||
</div>
|
||||
|
||||
</el-form>
|
||||
</div>
|
||||
<template v-slot:footer>
|
||||
<ms-dialog-footer
|
||||
v-if="form.id"
|
||||
|
@ -441,7 +446,7 @@ export default {
|
|||
} else {
|
||||
this.updatePoolStatus(row);
|
||||
}
|
||||
})
|
||||
});
|
||||
}
|
||||
},
|
||||
checkHaveTestUsePool(row) {
|
||||
|
@ -449,7 +454,7 @@ export default {
|
|||
this.$get('/testresourcepool/check/use/' + row.id, result => {
|
||||
this.updatePool = result.data;
|
||||
resolve();
|
||||
})
|
||||
});
|
||||
});
|
||||
},
|
||||
updatePoolStatus(row) {
|
||||
|
|
Loading…
Reference in New Issue