2024-03-31 15:34:54 +08:00
|
|
|
import { RouterJumpVo } from '@/api/workflow/workflowCommon/types';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
routerJump(routerJumpVo: RouterJumpVo,proxy){
|
|
|
|
if (routerJumpVo.wfNodeConfigVo && routerJumpVo.wfNodeConfigVo.formType === 'static' && routerJumpVo.wfNodeConfigVo.wfFormManageVo) {
|
|
|
|
proxy.$tab.closePage(proxy.$route);
|
|
|
|
proxy.$router.push({
|
|
|
|
path: `${routerJumpVo.wfNodeConfigVo.wfFormManageVo.router}`,
|
|
|
|
query: {
|
|
|
|
id: routerJumpVo.businessKey,
|
|
|
|
type: routerJumpVo.type,
|
|
|
|
taskId: routerJumpVo.taskId
|
|
|
|
}
|
|
|
|
});
|
|
|
|
} else if (routerJumpVo.wfNodeConfigVo && routerJumpVo.wfNodeConfigVo.formType === 'dynamic' && routerJumpVo.wfNodeConfigVo.wfFormManageVo) {
|
|
|
|
proxy.$tab.closePage(proxy.$route);
|
|
|
|
proxy.$router.push({
|
|
|
|
path: `${routerJumpVo.wfNodeConfigVo.wfFormManageVo.router}`,
|
|
|
|
query: {
|
|
|
|
id: routerJumpVo.businessKey,
|
|
|
|
type: routerJumpVo.type,
|
|
|
|
taskId: routerJumpVo.taskId
|
|
|
|
}
|
|
|
|
});
|
2024-04-06 11:21:17 +08:00
|
|
|
}else {
|
|
|
|
proxy?.$modal.msgError('请到模型配置菜单!');
|
2024-03-31 15:34:54 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|