style(接口测试): 转性能测试页面样式优化
--bug=1015665 --user=赵勇 【所有模块】接口case转性能测试弹框显示优化+其他弹框显示位置保持一致。 https://www.tapd.cn/55049933/s/1229067
This commit is contained in:
parent
701509c4b3
commit
60ac7ec57f
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue