| | |
| | | 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 |
| | | } |
| | | }); |
| | | }else { |
| | | proxy?.$modal.msgError('请到模型配置菜单!'); |
| | | 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 |
| | | } |
| | | }); |
| | | } else { |
| | | proxy?.$modal.msgError('请到模型配置菜单!'); |
| | | } |
| | | } |
| | | } |
| | | }; |
| | |
| | | ] |
| | | }, |
| | | { |
| | | path: '/demo/leaveEdit', |
| | | path: '/workflow/leaveEdit', |
| | | component: Layout, |
| | | hidden: true, |
| | | permissions: ['demo:leave:edit'], |
| | |
| | | path: 'index', |
| | | component: () => import('@/views/workflow/leave/leaveEdit.vue'), |
| | | name: 'leaveEdit', |
| | | meta: { title: '请假申请', activeMenu: '/demo/leave', noCache: true } |
| | | meta: { title: '请假申请', activeMenu: '/workflow/leave', noCache: true } |
| | | } |
| | | ] |
| | | } |
| | |
| | | /** 新增按钮操作 */ |
| | | const handleAdd = () => { |
| | | proxy.$tab.closePage(proxy.$route); |
| | | proxy.$router.push(`/demo/leaveEdit/index/add/add`); |
| | | proxy.$router.push(`/workflow/leaveEdit/index/add/add`); |
| | | proxy.$router.push({ |
| | | path: `/demo/leaveEdit/index`, |
| | | path: `/workflow/leaveEdit/index`, |
| | | query: { |
| | | type: 'add' |
| | | } |
| | |
| | | const handleUpdate = (row?: LeaveVO) => { |
| | | proxy.$tab.closePage(proxy.$route); |
| | | proxy.$router.push({ |
| | | path: `/demo/leaveEdit/index`, |
| | | path: `/workflow/leaveEdit/index`, |
| | | query: { |
| | | id: row.id, |
| | | type: 'update' |
| | |
| | | const handleView = (row?: LeaveVO) => { |
| | | proxy.$tab.closePage(proxy.$route); |
| | | proxy.$router.push({ |
| | | path: `/demo/leaveEdit/index`, |
| | | path: `/workflow/leaveEdit/index`, |
| | | query: { |
| | | id: row.id, |
| | | type: 'view' |
| | |
| | | /** 导出按钮操作 */ |
| | | const handleExport = () => { |
| | | proxy?.download( |
| | | 'demo/leave/export', |
| | | 'workflow/leave/export', |
| | | { |
| | | ...queryParams.value |
| | | }, |