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:
fit2-zhao 2023-12-19 09:25:58 +08:00 committed by Craftsman
parent 9d6e84cf4d
commit 013e125538
4 changed files with 11 additions and 9 deletions

View File

@ -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>

View File

@ -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;

View File

@ -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 || [];

View File

@ -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;