feat: 流程详情页打开后,关闭跳回对应的列表页
This commit is contained in:
@ -75,6 +75,8 @@ const { bus, FLOW_PROCESSED } = useEventBus();
|
||||
const tabStore = useMultipleTabStore();
|
||||
const router = useRouter();
|
||||
const currentRoute = router.currentRoute.value;
|
||||
const parentRoutePath = localStorage.getItem('parentRoutePath');
|
||||
localStorage.removeItem('parentRoutePath');
|
||||
const fullPath = currentRoute.fullPath;
|
||||
const rQuery = currentRoute.query;
|
||||
const rParams = currentRoute.params;
|
||||
@ -122,7 +124,7 @@ function openFlowChart() {
|
||||
}
|
||||
|
||||
function close() {
|
||||
tabStore.closeTab(currentRoute, router);
|
||||
tabStore.closeTab(currentRoute, router, parentRoutePath);
|
||||
}
|
||||
|
||||
async function onApproveClick() {
|
||||
|
||||
@ -80,6 +80,8 @@ const { data, approveUserData, initProcessData, notificationSuccess, notificatio
|
||||
const currentRoute = router.currentRoute.value;
|
||||
const rParams = currentRoute.params;
|
||||
const fullPath = currentRoute.fullPath;
|
||||
const parentRoutePath = localStorage.getItem('parentRoutePath');
|
||||
localStorage.removeItem('parentRoutePath');
|
||||
const rSchemaId = rParams.arg1;
|
||||
const rDraftsId = rParams.arg2;
|
||||
const taskId = ref();
|
||||
@ -123,7 +125,7 @@ function openFlowChart() {
|
||||
}
|
||||
|
||||
function close() {
|
||||
tabStore.closeTab(currentRoute, router);
|
||||
tabStore.closeTab(currentRoute, router, parentRoutePath);
|
||||
}
|
||||
|
||||
const props = defineProps({
|
||||
|
||||
@ -41,6 +41,8 @@ const { currentRoute } = router;
|
||||
|
||||
const { formPath } = currentRoute.value.query;
|
||||
const pathArr = formPath.split('/');
|
||||
const parentRoutePath = localStorage.getItem('parentRoutePath');
|
||||
localStorage.removeItem('parentRoutePath');
|
||||
|
||||
const tabStore = useMultipleTabStore();
|
||||
const formProps = ref(null);
|
||||
@ -80,7 +82,7 @@ async function setFormType() {
|
||||
}
|
||||
|
||||
function close() {
|
||||
tabStore.closeTab(currentRoute.value, router);
|
||||
tabStore.closeTab(currentRoute.value, router, parentRoutePath);
|
||||
}
|
||||
|
||||
async function handleSubmit() {
|
||||
|
||||
Reference in New Issue
Block a user