fix(测试用例&测试计划): 测试计划详情和评审详情-点击刷新按钮也刷新上面卡片数据

--bug=1045010 --user=吕梦园
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001045010
This commit is contained in:
teukkk 2024-08-14 14:41:48 +08:00 committed by 刘瑞斌
parent 4a5e7cd742
commit ccdd19d521
4 changed files with 20 additions and 6 deletions

View File

@ -11,7 +11,7 @@
:search-placeholder="t('caseManagement.caseReview.searchPlaceholder')"
@keyword-search="(val, filter) => searchCase(filter)"
@adv-search="searchCase"
@refresh="handleRefreshAndInitModules"
@refresh="handleRefreshAll"
>
<template v-if="showType !== 'list'" #nameRight>
<div v-if="reviewPassRule === 'MULTIPLE'" class="ml-[16px]">
@ -637,7 +637,8 @@
}
}
async function handleRefreshAndInitModules() {
async function handleRefreshAll() {
emit('refresh');
await initModules();
refresh();
}

View File

@ -10,7 +10,7 @@
:search-placeholder="t('common.searchByIdName')"
@keyword-search="loadCaseList()"
@adv-search="loadCaseList()"
@refresh="loadCaseList()"
@refresh="handleRefreshAll"
/>
<a-spin :loading="tableLoading" class="w-full">
<MsBaseTable
@ -439,6 +439,12 @@
});
}
async function handleRefreshAll() {
emit('refresh');
emit('initModules');
loadCaseList();
}
//
const reportVisible = ref(false);
const reportId = ref('');

View File

@ -10,7 +10,7 @@
:search-placeholder="t('common.searchByIdName')"
@keyword-search="loadCaseList()"
@adv-search="loadCaseList()"
@refresh="loadCaseList()"
@refresh="handleRefreshAll"
/>
<a-spin :loading="tableLoading" class="w-full">
<MsBaseTable
@ -414,6 +414,12 @@
}
);
async function handleRefreshAll() {
emit('refresh');
emit('initModules');
loadCaseList();
}
async function getModuleCount() {
const tableParams = await getTableParams(false);
emit('getModuleCount', {

View File

@ -12,7 +12,7 @@
:search-placeholder="t('ms.case.associate.searchPlaceholder')"
@keyword-search="loadCaseList()"
@adv-search="loadCaseList()"
@refresh="handleRefreshAndInitModules()"
@refresh="handleRefreshAll"
>
<template v-if="props.treeType === 'MODULE'" #right>
<a-radio-group
@ -549,7 +549,8 @@
}
}
async function handleRefreshAndInitModules() {
async function handleRefreshAll() {
emit('refresh');
await initModules();
refresh();
}