feat:v1
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user