update 调整路由
parent
58e6fdef78
commit
d98c2822d5
@ -1,29 +1,29 @@
|
|||||||
import { RouterJumpVo } from '@/api/workflow/workflowCommon/types';
|
import { RouterJumpVo } from '@/api/workflow/workflowCommon/types';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
routerJump(routerJumpVo: RouterJumpVo,proxy){
|
routerJump(routerJumpVo: RouterJumpVo, proxy) {
|
||||||
if (routerJumpVo.wfNodeConfigVo && routerJumpVo.wfNodeConfigVo.formType === 'static' && routerJumpVo.wfNodeConfigVo.wfFormManageVo) {
|
if (routerJumpVo.wfNodeConfigVo && routerJumpVo.wfNodeConfigVo.formType === 'static' && routerJumpVo.wfNodeConfigVo.wfFormManageVo) {
|
||||||
proxy.$tab.closePage(proxy.$route);
|
proxy.$tab.closePage(proxy.$route);
|
||||||
proxy.$router.push({
|
proxy.$router.push({
|
||||||
path: `${routerJumpVo.wfNodeConfigVo.wfFormManageVo.router}`,
|
path: `${routerJumpVo.wfNodeConfigVo.wfFormManageVo.router}`,
|
||||||
query: {
|
query: {
|
||||||
id: routerJumpVo.businessKey,
|
id: routerJumpVo.businessKey,
|
||||||
type: routerJumpVo.type,
|
type: routerJumpVo.type,
|
||||||
taskId: routerJumpVo.taskId
|
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
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}else {
|
|
||||||
proxy?.$modal.msgError('请到模型配置菜单!');
|
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
} 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
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
proxy?.$modal.msgError('请到模型配置菜单!');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue