fix(接口测试): 修复场景的引用API/CASE参数值缺陷&响应内容吸顶覆盖请求参数tab&调整创建用例抽屉里高度

--bug=1040495 --user=吕梦园
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001040495
This commit is contained in:
teukkk 2024-05-10 14:00:17 +08:00 committed by 刘瑞斌
parent 5f3da6c507
commit edcd8bbbda
6 changed files with 16 additions and 11 deletions

View File

@ -78,6 +78,7 @@
v-model:model-value="inputFiles"
:input-class="props.inputClass"
placeholder=" "
:disabled="props.disabled"
:max-tag-count="1"
:size="props.inputSize"
readonly

View File

@ -8,8 +8,8 @@
<MsIcon type="icon-icon_plugin_outlined" size="48" />
</template>
</a-empty>
<div v-show="!pluginError || isHttpProtocol" class="flex h-full flex-col">
<div v-if="!props.isCase" class="px-[18px] pt-[8px]">
<div v-show="!pluginError || isHttpProtocol" class="request-composition flex h-full flex-col">
<div v-if="!props.isCase" class="mb-[8px] px-[18px] pt-[8px]">
<div class="flex flex-wrap items-baseline justify-between gap-[12px]">
<div class="flex flex-1 flex-wrap items-center gap-[16px]">
<a-select
@ -187,7 +187,7 @@
</div>
</div>
</div>
<div :class="`${!props.isCase ? 'request-tab-and-response' : ''} mt-[8px] flex-1`">
<div :class="`${!props.isCase ? 'request-tab-and-response' : ''} flex-1`">
<MsTab
v-model:active-key="requestVModel.activeTab"
:content-tab-list="contentTabList"
@ -1647,8 +1647,8 @@
.response :deep(.response-head) {
@apply sticky bg-white;
top: 48px; // tab(border-bottom)
z-index: 11;
top: 0;
z-index: 102; // tab
}
.request-tab-pane {
min-height: 400px;
@ -1660,6 +1660,7 @@
.request {
flex: 1;
overflow-x: auto;
border-right: 1px solid var(--color-text-n8);
.ms-scroll-bar();
.request-tab-pane {
min-width: 800px;
@ -1667,7 +1668,6 @@
}
.response {
width: 500px;
border-left: 1px solid var(--color-text-n8);
}
}
}

View File

@ -235,7 +235,7 @@
.response-head {
@apply flex flex-wrap items-center justify-between border-b;
padding: 8px 16px;
padding: 13px 16px;
border-color: var(--color-text-n8);
gap: 8px;
}

View File

@ -398,5 +398,8 @@
overflow-x: hidden;
overflow-y: auto;
.ms-scroll-bar();
:deep(.request-composition) {
height: calc(100% - 74px); // 74: formItem52+22
}
}
</style>

View File

@ -1190,6 +1190,7 @@
);
if (index > -1) {
(requestVModel.value.body[type] as ExecuteRequestFormBody).formValues[index].value = item.value;
(requestVModel.value.body[type] as ExecuteRequestFormBody).formValues[index].files = item.files;
}
});
});
@ -1326,8 +1327,8 @@
.response :deep(.response-head) {
@apply sticky bg-white;
top: 48px; // tab(border-bottom)
z-index: 11;
top: 0;
z-index: 102; // tab
}
.request-tab-pane {
min-height: 400px;

View File

@ -1083,8 +1083,8 @@
.response :deep(.response-head) {
@apply sticky bg-white;
top: 48px; // tab(border-bottom)
z-index: 11;
top: 0;
z-index: 102; // tab
}
.request-tab-pane {
min-height: 400px;