style(接口测试): 转性能测试页面样式优化

--bug=1015665 --user=赵勇 【所有模块】接口case转性能测试弹框显示优化+其他弹框显示位置保持一致。 https://www.tapd.cn/55049933/s/1229067
This commit is contained in:
fit2-zhao 2022-08-22 13:47:11 +08:00 committed by f2c-ci-robot[bot]
parent 701509c4b3
commit 60ac7ec57f
2 changed files with 19 additions and 24 deletions

View File

@ -3,28 +3,21 @@
<el-dialog
:title="$t('api_test.environment.select_environment')"
:visible.sync="dialogVisible"
width="15%"
width="400px"
:destroy-on-close="true"
@close="handleClose"
>
<el-form ref="form">
<el-form-item prop="type">
<el-select v-model="environmentId" value-key="id" class="ms-htt-width"
:placeholder="$t('api_test.definition.request.run_env')"
clearable>
<el-option v-for="(environment, index) in environments" :key="index"
:label="environment.name"
:value="environment.id"/>
<template v-slot:empty>
<div class="empty-environment">
</div>
</template>
</el-select>
</el-form-item>
</el-form>
@close="handleClose">
<el-select v-model="environmentId" value-key="id" class="ms-htt-width"
:placeholder="$t('api_test.definition.request.run_env')"
clearable>
<el-option v-for="(environment, index) in environments" :key="index"
:label="environment.name"
:value="environment.id"/>
<template v-slot:empty>
<div class="empty-environment">
</div>
</template>
</el-select>
<template v-slot:footer>
<!-- <el-button onclick="this.handleClose">{{ $t('commons.cancel') }}</el-button>-->
<el-button type="primary" @click="createPerformance" @keydown.enter.native.prevent>
{{ $t('commons.confirm') }}
</el-button>
@ -103,7 +96,7 @@ export default {
createPerformance() {
this.$get('/api/testcase/findById/' + this.testCase.id, response => {
let testCaseInfo = response.data;
if(testCaseInfo!=null){
if (testCaseInfo != null) {
this.$emit("createPerformance", testCaseInfo, this.environment);
}
});
@ -113,5 +106,7 @@ export default {
</script>
<style scoped>
.ms-htt-width {
width: 100%;
}
</style>

View File

@ -266,8 +266,8 @@
<sync-setting ref="synSetting"></sync-setting>
<span style="color: red">{{ $t('workstation.batch_sync_api_tips') }}</span>
<span slot="footer" class="dialog-footer">
<el-button @click="batchSyncCaseVisible = false"> </el-button>
<el-button type="primary" @click="batchSync()"> </el-button>
<el-button @click="batchSyncCaseVisible = false">{{ $t('commons.cancel') }}</el-button>
<el-button type="primary" @click="batchSync()">{{ $t('commons.confirm') }}</el-button>
</span>
</el-dialog>
</span>