fix(接口测试): 修复多调api/case表格接口的缺陷

This commit is contained in:
teukkk 2024-05-09 13:23:23 +08:00 committed by Craftsman
parent 283086b461
commit 1a63411395
3 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,6 @@
<template> <template>
<div class="flex flex-1 flex-col overflow-hidden"> <div class="flex flex-1 flex-col overflow-hidden">
<div v-if="activeApiTab.id === 'all'" class="flex-1 pt-[8px]"> <div v-if="activeApiTab.id === 'all' && currentTab === 'api'" class="flex-1 pt-[8px]">
<apiTable <apiTable
:active-module="props.activeModule" :active-module="props.activeModule"
:offspring-ids="props.offspringIds" :offspring-ids="props.offspringIds"
@ -175,6 +175,7 @@
offspringIds: string[]; offspringIds: string[];
moduleTree: ModuleTreeNode[]; // moduleTree: ModuleTreeNode[]; //
protocol: string; protocol: string;
currentTab: string;
memberOptions: { label: string; value: string }[]; memberOptions: { label: string; value: string }[];
}>(); }>();

View File

@ -1,6 +1,6 @@
<template> <template>
<div class="flex flex-1 flex-col overflow-hidden"> <div class="flex flex-1 flex-col overflow-hidden">
<div v-if="activeApiTab.id === 'all'" class="flex-1 overflow-hidden"> <div v-if="activeApiTab.id === 'all' && currentTab === 'case'" class="flex-1 overflow-hidden">
<caseTable <caseTable
ref="caseTableRef" ref="caseTableRef"
:offspring-ids="props.offspringIds" :offspring-ids="props.offspringIds"
@ -48,6 +48,7 @@
offspringIds: string[]; offspringIds: string[];
moduleTree: ModuleTreeNode[]; // moduleTree: ModuleTreeNode[]; //
memberOptions: { label: string; value: string }[]; memberOptions: { label: string; value: string }[];
currentTab: string;
}>(); }>();
const emit = defineEmits<{ const emit = defineEmits<{
(e: 'deleteCase', id: string): void; (e: 'deleteCase', id: string): void;

View File

@ -43,6 +43,7 @@
:offspring-ids="props.offspringIds" :offspring-ids="props.offspringIds"
:protocol="props.protocol" :protocol="props.protocol"
:module-tree="props.moduleTree" :module-tree="props.moduleTree"
:current-tab="currentTab"
:member-options="memberOptions" :member-options="memberOptions"
@import="emit('import')" @import="emit('import')"
@delete-api="(id) => handleDeleteApiFromModuleTree(id)" @delete-api="(id) => handleDeleteApiFromModuleTree(id)"
@ -55,6 +56,7 @@
:active-module="props.activeModule" :active-module="props.activeModule"
:protocol="props.protocol" :protocol="props.protocol"
:module-tree="props.moduleTree" :module-tree="props.moduleTree"
:current-tab="currentTab"
:offspring-ids="props.offspringIds" :offspring-ids="props.offspringIds"
:member-options="memberOptions" :member-options="memberOptions"
@delete-case="(id) => handleDeleteApiFromModuleTree(id)" @delete-case="(id) => handleDeleteApiFromModuleTree(id)"