This commit is contained in:
‘Liammcl’
2024-12-29 01:11:01 +08:00
parent ffb8fdfe83
commit 22b0ec8d5a
18 changed files with 2434 additions and 1158 deletions

View File

@@ -35,13 +35,7 @@ const companyRoutes = [
icon: "file",
roles: ["ADMIN", "OWNER"],
},
{
path: "task",
component: lazy(() => import("@/pages/resource/resourceTask")),
name: "任务管理",
icon: "appstore",
roles: ["OWNER"],
},
{
path: "quotaInfo/:id?", // 添加可选的 id 参数
hidden: true,
@@ -49,6 +43,21 @@ const companyRoutes = [
name: "报价单详情",
icon: "file",
roles: ["ADMIN", "OWNER"],
},
{
path: "task",
component: lazy(() => import("@/pages/company/task")),
name: "任务管理",
icon: "appstore",
roles: ["OWNER"],
},
{
path: "taskInfo/:id?",
hidden:true,
component: lazy(() => import("@/pages/company/task/detail")),
name: "任务管理详情",
icon: "appstore",
roles: ["OWNER"],
},
{
path: "serviceTemplate",
@@ -149,14 +158,14 @@ export const generateRoutes = (role) => {
children: companyRoutes.filter((route) => route.roles.includes(role)),
roles: ["ADMIN", "OWNER"],
},
{
path: "marketing",
component: lazy(() => import("@/pages/marketing")),
name: "行销中心",
icon: "shopping",
children: marketingRoutes.filter((route) => route.roles.includes(role)),
roles: ["ADMIN", "OWNER"],
},
// {
// path: "marketing",
// component: lazy(() => import("@/pages/marketing")),
// name: "行销中心",
// icon: "shopping",
// children: marketingRoutes.filter((route) => route.roles.includes(role)),
// roles: ["ADMIN", "OWNER"],
// },
// {
// path: "role",