style(接口测试): 自定义脚本相关样式调整
--bug=1033660 --user=赵勇 【接口测试】case编辑页面-标签输入框和脚本区域重叠 https://www.tapd.cn/55049933/s/1445202 Signed-off-by: fit2-zhao <yong.zhao@fit2cloud.com>
This commit is contained in:
parent
9d6e84cf4d
commit
013e125538
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<el-card style="margin-top: 5px" @click.native="selectTestCase(apiCase, $event)" v-loading="saveLoading">
|
||||
<el-container>
|
||||
<el-header style="margin-bottom: 20px">
|
||||
<el-header style="margin-bottom: 20px; height: 65px">
|
||||
<div @click="active(apiCase)" v-if="type !== 'detail'" ref="elementHeader" class="case-header">
|
||||
<div v-loading="loading && !(apiCase.active || type === 'detail')">
|
||||
<span @click.stop>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<div>
|
||||
<el-row type="flex">
|
||||
<el-col :span="codeSpan" class="script-content">
|
||||
<el-col :span="codeSpan">
|
||||
<ms-code-edit
|
||||
v-if="isCodeEditAlive"
|
||||
:mode="codeEditModeMap[jsr223Processor.scriptLanguage]"
|
||||
|
@ -317,12 +317,6 @@ export default {
|
|||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.script-content {
|
||||
/*height: calc(100vh - 570px);*/
|
||||
height: 185px;
|
||||
min-height: 170px;
|
||||
}
|
||||
|
||||
.script-index {
|
||||
padding: 0 20px;
|
||||
width: 230px;
|
||||
|
|
|
@ -57,7 +57,15 @@ export default {
|
|||
},
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.openMenus();
|
||||
},
|
||||
methods: {
|
||||
openMenus() {
|
||||
this.menus.forEach((menu) => {
|
||||
this.$set(menu, 'open', true);
|
||||
});
|
||||
},
|
||||
apiSave(data, env) {
|
||||
// data:选中的多个接口定义或多个接口用例; env: 关联页面选中的环境
|
||||
let condition = env.config.httpConfig.conditions || [];
|
||||
|
|
|
@ -914,7 +914,7 @@ export class JSR223Processor extends BaseConfig {
|
|||
constructor(options) {
|
||||
super();
|
||||
this.resourceId = uuid();
|
||||
this.active = false;
|
||||
this.active = true;
|
||||
this.type = 'JSR223Processor';
|
||||
this.label = '';
|
||||
this.script = undefined;
|
||||
|
|
Loading…
Reference in New Issue