fix(测试用例&测试计划): 测试计划详情和评审详情-点击刷新按钮也刷新上面卡片数据
--bug=1045010 --user=吕梦园 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001045010
This commit is contained in:
parent
4a5e7cd742
commit
ccdd19d521
|
@ -11,7 +11,7 @@
|
||||||
:search-placeholder="t('caseManagement.caseReview.searchPlaceholder')"
|
:search-placeholder="t('caseManagement.caseReview.searchPlaceholder')"
|
||||||
@keyword-search="(val, filter) => searchCase(filter)"
|
@keyword-search="(val, filter) => searchCase(filter)"
|
||||||
@adv-search="searchCase"
|
@adv-search="searchCase"
|
||||||
@refresh="handleRefreshAndInitModules"
|
@refresh="handleRefreshAll"
|
||||||
>
|
>
|
||||||
<template v-if="showType !== 'list'" #nameRight>
|
<template v-if="showType !== 'list'" #nameRight>
|
||||||
<div v-if="reviewPassRule === 'MULTIPLE'" class="ml-[16px]">
|
<div v-if="reviewPassRule === 'MULTIPLE'" class="ml-[16px]">
|
||||||
|
@ -637,7 +637,8 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function handleRefreshAndInitModules() {
|
async function handleRefreshAll() {
|
||||||
|
emit('refresh');
|
||||||
await initModules();
|
await initModules();
|
||||||
refresh();
|
refresh();
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
:search-placeholder="t('common.searchByIdName')"
|
:search-placeholder="t('common.searchByIdName')"
|
||||||
@keyword-search="loadCaseList()"
|
@keyword-search="loadCaseList()"
|
||||||
@adv-search="loadCaseList()"
|
@adv-search="loadCaseList()"
|
||||||
@refresh="loadCaseList()"
|
@refresh="handleRefreshAll"
|
||||||
/>
|
/>
|
||||||
<a-spin :loading="tableLoading" class="w-full">
|
<a-spin :loading="tableLoading" class="w-full">
|
||||||
<MsBaseTable
|
<MsBaseTable
|
||||||
|
@ -439,6 +439,12 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async function handleRefreshAll() {
|
||||||
|
emit('refresh');
|
||||||
|
emit('initModules');
|
||||||
|
loadCaseList();
|
||||||
|
}
|
||||||
|
|
||||||
// 显示执行报告
|
// 显示执行报告
|
||||||
const reportVisible = ref(false);
|
const reportVisible = ref(false);
|
||||||
const reportId = ref('');
|
const reportId = ref('');
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
:search-placeholder="t('common.searchByIdName')"
|
:search-placeholder="t('common.searchByIdName')"
|
||||||
@keyword-search="loadCaseList()"
|
@keyword-search="loadCaseList()"
|
||||||
@adv-search="loadCaseList()"
|
@adv-search="loadCaseList()"
|
||||||
@refresh="loadCaseList()"
|
@refresh="handleRefreshAll"
|
||||||
/>
|
/>
|
||||||
<a-spin :loading="tableLoading" class="w-full">
|
<a-spin :loading="tableLoading" class="w-full">
|
||||||
<MsBaseTable
|
<MsBaseTable
|
||||||
|
@ -414,6 +414,12 @@
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
async function handleRefreshAll() {
|
||||||
|
emit('refresh');
|
||||||
|
emit('initModules');
|
||||||
|
loadCaseList();
|
||||||
|
}
|
||||||
|
|
||||||
async function getModuleCount() {
|
async function getModuleCount() {
|
||||||
const tableParams = await getTableParams(false);
|
const tableParams = await getTableParams(false);
|
||||||
emit('getModuleCount', {
|
emit('getModuleCount', {
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
:search-placeholder="t('ms.case.associate.searchPlaceholder')"
|
:search-placeholder="t('ms.case.associate.searchPlaceholder')"
|
||||||
@keyword-search="loadCaseList()"
|
@keyword-search="loadCaseList()"
|
||||||
@adv-search="loadCaseList()"
|
@adv-search="loadCaseList()"
|
||||||
@refresh="handleRefreshAndInitModules()"
|
@refresh="handleRefreshAll"
|
||||||
>
|
>
|
||||||
<template v-if="props.treeType === 'MODULE'" #right>
|
<template v-if="props.treeType === 'MODULE'" #right>
|
||||||
<a-radio-group
|
<a-radio-group
|
||||||
|
@ -549,7 +549,8 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function handleRefreshAndInitModules() {
|
async function handleRefreshAll() {
|
||||||
|
emit('refresh');
|
||||||
await initModules();
|
await initModules();
|
||||||
refresh();
|
refresh();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue