chore: 审批完成后刷新当前页

This commit is contained in:
dap
2024-12-17 15:08:31 +08:00
parent 2e3d385747
commit 7d9ddd4698
5 changed files with 22 additions and 6 deletions

View File

@@ -5,6 +5,7 @@ import type { TaskInfo } from '#/api/workflow/task/model';
import { computed, onMounted, ref } from 'vue';
import { Page } from '@vben/common-ui';
import { useTabs } from '@vben/hooks';
import { Empty, InputSearch } from 'ant-design-vue';
import { debounce } from 'lodash-es';
@@ -78,6 +79,8 @@ async function handleCardClick(item: TaskInfo) {
const resp = await flowInfo(businessId);
currentInstance.value = resp;
}
const { refreshTab } = useTabs();
</script>
<template>
@@ -116,7 +119,7 @@ async function handleCardClick(item: TaskInfo) {
</div>
</div>
</div>
<ApprovalPanel :task="currentTask" type="approve" />
<ApprovalPanel :task="currentTask" type="approve" @reload="refreshTab" />
</div>
</Page>
</template>