mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-05 21:49:23 +08:00
fix(接口测试): 切换用例或api刷新tab里数据
--bug=1047212 --user=吕梦园 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001047212
This commit is contained in:
parent
26c75fe483
commit
0ce40c4564
@ -96,6 +96,13 @@
|
|||||||
loadList();
|
loadList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
watch(
|
||||||
|
() => props.sourceId,
|
||||||
|
() => {
|
||||||
|
loadHistory();
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
onBeforeMount(() => {
|
onBeforeMount(() => {
|
||||||
loadHistory();
|
loadHistory();
|
||||||
});
|
});
|
||||||
|
@ -119,6 +119,13 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
watch(
|
||||||
|
() => props.sourceId,
|
||||||
|
() => {
|
||||||
|
loadQuoteList();
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
onBeforeMount(() => {
|
onBeforeMount(() => {
|
||||||
loadQuoteList();
|
loadQuoteList();
|
||||||
});
|
});
|
||||||
|
@ -260,6 +260,14 @@
|
|||||||
executeHistoryRef.value?.loadExecuteList();
|
executeHistoryRef.value?.loadExecuteList();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
watch(
|
||||||
|
() => caseDetail.value.id,
|
||||||
|
() => {
|
||||||
|
if (activeKey.value === 'executeHistory') {
|
||||||
|
executeHistoryRef.value?.loadExecuteList(caseDetail.value.id as string);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
const executeRef = ref<InstanceType<typeof executeButton>>();
|
const executeRef = ref<InstanceType<typeof executeButton>>();
|
||||||
const isPriorityLocalExec = computed(() => executeRef.value?.isPriorityLocalExec ?? false);
|
const isPriorityLocalExec = computed(() => executeRef.value?.isPriorityLocalExec ?? false);
|
||||||
|
@ -118,6 +118,13 @@
|
|||||||
loadHistory(value as string[]);
|
loadHistory(value as string[]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
watch(
|
||||||
|
() => props.sourceId,
|
||||||
|
() => {
|
||||||
|
loadHistory();
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
onBeforeMount(() => {
|
onBeforeMount(() => {
|
||||||
if (hasAnyPermission(['PROJECT_API_DEFINITION_CASE:READ', 'PROJECT_API_DEFINITION_CASE:READ+UPDATE'])) {
|
if (hasAnyPermission(['PROJECT_API_DEFINITION_CASE:READ', 'PROJECT_API_DEFINITION_CASE:READ+UPDATE'])) {
|
||||||
loadHistory();
|
loadHistory();
|
||||||
|
@ -123,6 +123,13 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
watch(
|
||||||
|
() => props.sourceId,
|
||||||
|
() => {
|
||||||
|
loadQuoteList();
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
onBeforeMount(() => {
|
onBeforeMount(() => {
|
||||||
loadQuoteList();
|
loadQuoteList();
|
||||||
});
|
});
|
||||||
|
@ -222,11 +222,11 @@
|
|||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
function loadExecuteList() {
|
function loadExecuteList(sourceId?: string) {
|
||||||
setLoadListParams({
|
setLoadListParams({
|
||||||
projectId: appStore.currentProjectId,
|
projectId: appStore.currentProjectId,
|
||||||
keyword: keyword.value,
|
keyword: keyword.value,
|
||||||
id: props.sourceId,
|
id: sourceId ?? props.sourceId,
|
||||||
});
|
});
|
||||||
loadList();
|
loadList();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user