fix(功能用例): 修复功能回收站批量操作模块刷新问题

This commit is contained in:
xinxin.wu 2024-06-27 10:42:19 +08:00 committed by 刘瑞斌
parent 5d6bcd764d
commit 042991a3be
1 changed files with 14 additions and 12 deletions

View File

@ -649,13 +649,22 @@
initRecycleList();
};
function brashModule() {
resetSelector();
getRecycleModules();
if (activeFolder.value !== 'all') {
activeFolder.value = 'all';
} else {
initRecycleList();
}
}
//
async function handleBatchRecover() {
try {
await restoreCaseList(getBatchParams());
Message.success(t('caseManagement.featureCase.recoveredSuccessfully'));
resetSelector();
initRecycleList();
brashModule();
} catch (error) {
console.log(error);
}
@ -675,10 +684,7 @@
try {
await batchDeleteRecycleCase(getBatchParams());
Message.success(t('common.deleteSuccess'));
resetSelector();
getRecycleModules();
activeFolder.value = 'all';
initRecycleList();
brashModule();
} catch (error) {
console.log(error);
}
@ -715,8 +721,7 @@
try {
await recoverRecycleCase(id);
Message.success(t('caseManagement.featureCase.recoveredSuccessfully'));
resetSelector();
initRecycleList();
brashModule();
} catch (error) {
console.log(error);
}
@ -737,10 +742,7 @@
try {
await deleteRecycleCaseList(record.id);
Message.success(t('common.deleteSuccess'));
resetSelector();
getRecycleModules();
activeFolder.value = 'all';
initRecycleList();
brashModule();
} catch (error) {
console.log(error);
}