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

View File

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