From d98c2822d50efe0e6952e402f0dfb16b354ee049 Mon Sep 17 00:00:00 2001
From: gssong <1742057357@qq.com>
Date: 星期六, 01 六月 2024 22:00:22 +0800
Subject: [PATCH] update 调整路由
---
src/views/workflow/leave/index.vue | 10 ++--
src/api/workflow/workflowCommon/index.ts | 48 ++++++++++++------------
src/router/index.ts | 4 +-
3 files changed, 31 insertions(+), 31 deletions(-)
diff --git a/src/api/workflow/workflowCommon/index.ts b/src/api/workflow/workflowCommon/index.ts
index a90216a..63ce318 100644
--- a/src/api/workflow/workflowCommon/index.ts
+++ b/src/api/workflow/workflowCommon/index.ts
@@ -1,29 +1,29 @@
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('璇峰埌妯″瀷閰嶇疆鑿滃崟锛�');
}
-}
\ No newline at end of file
+ }
+};
diff --git a/src/router/index.ts b/src/router/index.ts
index 2343685..b020b4c 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -164,7 +164,7 @@
]
},
{
- path: '/demo/leaveEdit',
+ path: '/workflow/leaveEdit',
component: Layout,
hidden: true,
permissions: ['demo:leave:edit'],
@@ -173,7 +173,7 @@
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 }
}
]
}
diff --git a/src/views/workflow/leave/index.vue b/src/views/workflow/leave/index.vue
index e47768d..56ccb2c 100644
--- a/src/views/workflow/leave/index.vue
+++ b/src/views/workflow/leave/index.vue
@@ -184,9 +184,9 @@
/** 鏂板鎸夐挳鎿嶄綔 */
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'
}
@@ -197,7 +197,7 @@
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'
@@ -209,7 +209,7 @@
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'
@@ -229,7 +229,7 @@
/** 瀵煎嚭鎸夐挳鎿嶄綔 */
const handleExport = () => {
proxy?.download(
- 'demo/leave/export',
+ 'workflow/leave/export',
{
...queryParams.value
},
--
Gitblit v1.9.3