fix(测试计划): 修复测试计划归档切换位更新模块树count

This commit is contained in:
xinxin.wu 2024-08-20 18:16:23 +08:00 committed by Craftsman
parent 78c9ba6fe6
commit a847dac0e2
1 changed files with 7 additions and 1 deletions

View File

@ -915,11 +915,17 @@
// //
async function emitTableParams(isInit = false) { async function emitTableParams(isInit = false) {
const tableParams = await initTableParams(isInit); const tableParams = await initTableParams(isInit);
const filterParams = {
...propsRes.value.filter,
};
if (isArchived.value) {
filterParams.status = ['ARCHIVED'];
}
emit('init', { emit('init', {
...tableParams, ...tableParams,
current: propsRes.value.msPagination?.current, current: propsRes.value.msPagination?.current,
pageSize: propsRes.value.msPagination?.pageSize, pageSize: propsRes.value.msPagination?.pageSize,
filter: propsRes.value.filter, filter: filterParams,
}); });
} }