fix(接口测试): 修复多调api/case表格接口的缺陷
This commit is contained in:
parent
283086b461
commit
1a63411395
|
@ -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 }[];
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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)"
|
||||||
|
|
Loading…
Reference in New Issue