|
@@ -8,17 +8,20 @@ import { ReactComponent as PerfomanceIcon } from "@/assets/icons/icon_achievemen
|
|
|
|
|
|
export const DEFAULT_MENU: DageRouteItem[] = [
|
|
export const DEFAULT_MENU: DageRouteItem[] = [
|
|
{
|
|
{
|
|
|
|
+ mapId: 100,
|
|
path: "/assessment",
|
|
path: "/assessment",
|
|
title: "考核设置",
|
|
title: "考核设置",
|
|
icon: <Icon component={AssessmentIcon} />,
|
|
icon: <Icon component={AssessmentIcon} />,
|
|
redirect: "/assessment/index",
|
|
redirect: "/assessment/index",
|
|
children: [
|
|
children: [
|
|
{
|
|
{
|
|
|
|
+ mapId: 110,
|
|
path: "/assessment/index",
|
|
path: "/assessment/index",
|
|
title: "指标设置",
|
|
title: "指标设置",
|
|
Component: React.lazy(() => import("../pages/Assessment/Index")),
|
|
Component: React.lazy(() => import("../pages/Assessment/Index")),
|
|
children: [
|
|
children: [
|
|
{
|
|
{
|
|
|
|
+ mapId: 111,
|
|
hide: true,
|
|
hide: true,
|
|
path: "/assessment/index/create/:type",
|
|
path: "/assessment/index/create/:type",
|
|
title: "新增指标",
|
|
title: "新增指标",
|
|
@@ -27,6 +30,7 @@ export const DEFAULT_MENU: DageRouteItem[] = [
|
|
),
|
|
),
|
|
},
|
|
},
|
|
{
|
|
{
|
|
|
|
+ mapId: 112,
|
|
hide: true,
|
|
hide: true,
|
|
path: "/assessment/index/edit/:type/:id",
|
|
path: "/assessment/index/edit/:type/:id",
|
|
title: "编辑指标",
|
|
title: "编辑指标",
|
|
@@ -37,11 +41,13 @@ export const DEFAULT_MENU: DageRouteItem[] = [
|
|
],
|
|
],
|
|
},
|
|
},
|
|
{
|
|
{
|
|
|
|
+ mapId: 120,
|
|
path: "/assessment/template",
|
|
path: "/assessment/template",
|
|
title: "考核模板",
|
|
title: "考核模板",
|
|
Component: React.lazy(() => import("../pages/Assessment/Template")),
|
|
Component: React.lazy(() => import("../pages/Assessment/Template")),
|
|
children: [
|
|
children: [
|
|
{
|
|
{
|
|
|
|
+ mapId: 121,
|
|
hide: true,
|
|
hide: true,
|
|
path: "/assessment/template/create/:type",
|
|
path: "/assessment/template/create/:type",
|
|
title: "新增模板",
|
|
title: "新增模板",
|
|
@@ -50,6 +56,7 @@ export const DEFAULT_MENU: DageRouteItem[] = [
|
|
),
|
|
),
|
|
},
|
|
},
|
|
{
|
|
{
|
|
|
|
+ mapId: 122,
|
|
hide: true,
|
|
hide: true,
|
|
path: "/assessment/template/edit/:type/:id",
|
|
path: "/assessment/template/edit/:type/:id",
|
|
title: "编辑模板",
|
|
title: "编辑模板",
|
|
@@ -62,17 +69,20 @@ export const DEFAULT_MENU: DageRouteItem[] = [
|
|
],
|
|
],
|
|
},
|
|
},
|
|
{
|
|
{
|
|
|
|
+ mapId: 200,
|
|
path: "/management",
|
|
path: "/management",
|
|
title: "考核管理",
|
|
title: "考核管理",
|
|
icon: <Icon component={ManagementIcon} />,
|
|
icon: <Icon component={ManagementIcon} />,
|
|
redirect: "/management/index",
|
|
redirect: "/management/index",
|
|
children: [
|
|
children: [
|
|
{
|
|
{
|
|
|
|
+ mapId: 210,
|
|
path: "/management/index",
|
|
path: "/management/index",
|
|
title: "考核管理",
|
|
title: "考核管理",
|
|
Component: React.lazy(() => import("../pages/Management/Index")),
|
|
Component: React.lazy(() => import("../pages/Management/Index")),
|
|
children: [
|
|
children: [
|
|
{
|
|
{
|
|
|
|
+ mapId: 211,
|
|
hide: true,
|
|
hide: true,
|
|
path: "/management/index/create/:type",
|
|
path: "/management/index/create/:type",
|
|
title: "新增考核",
|
|
title: "新增考核",
|
|
@@ -81,6 +91,7 @@ export const DEFAULT_MENU: DageRouteItem[] = [
|
|
),
|
|
),
|
|
},
|
|
},
|
|
{
|
|
{
|
|
|
|
+ mapId: 212,
|
|
hide: true,
|
|
hide: true,
|
|
path: "/management/index/edit/:type/:id",
|
|
path: "/management/index/edit/:type/:id",
|
|
title: "编辑考核",
|
|
title: "编辑考核",
|
|
@@ -89,6 +100,7 @@ export const DEFAULT_MENU: DageRouteItem[] = [
|
|
),
|
|
),
|
|
},
|
|
},
|
|
{
|
|
{
|
|
|
|
+ mapId: 213,
|
|
hide: true,
|
|
hide: true,
|
|
path: "/management/index/setting-index/:type/:id",
|
|
path: "/management/index/setting-index/:type/:id",
|
|
title: "设置指标",
|
|
title: "设置指标",
|
|
@@ -97,6 +109,7 @@ export const DEFAULT_MENU: DageRouteItem[] = [
|
|
),
|
|
),
|
|
},
|
|
},
|
|
{
|
|
{
|
|
|
|
+ mapId: 214,
|
|
hide: true,
|
|
hide: true,
|
|
path: "/management/index/setting-role/:type/:id/:status",
|
|
path: "/management/index/setting-role/:type/:id/:status",
|
|
title: "设置角色",
|
|
title: "设置角色",
|
|
@@ -105,6 +118,7 @@ export const DEFAULT_MENU: DageRouteItem[] = [
|
|
),
|
|
),
|
|
},
|
|
},
|
|
{
|
|
{
|
|
|
|
+ mapId: 215,
|
|
hide: true,
|
|
hide: true,
|
|
meta: {
|
|
meta: {
|
|
custom: true,
|
|
custom: true,
|
|
@@ -114,6 +128,7 @@ export const DEFAULT_MENU: DageRouteItem[] = [
|
|
Component: React.lazy(() => import("../pages/AssessmentDetail")),
|
|
Component: React.lazy(() => import("../pages/AssessmentDetail")),
|
|
},
|
|
},
|
|
{
|
|
{
|
|
|
|
+ mapId: 216,
|
|
hide: true,
|
|
hide: true,
|
|
path: "/management/index/detail/:id/index",
|
|
path: "/management/index/detail/:id/index",
|
|
title: "考核指标详情",
|
|
title: "考核指标详情",
|
|
@@ -124,11 +139,13 @@ export const DEFAULT_MENU: DageRouteItem[] = [
|
|
],
|
|
],
|
|
},
|
|
},
|
|
{
|
|
{
|
|
|
|
+ mapId: 220,
|
|
path: "/management/form",
|
|
path: "/management/form",
|
|
title: "考核填报",
|
|
title: "考核填报",
|
|
Component: React.lazy(() => import("../pages/Management/Form")),
|
|
Component: React.lazy(() => import("../pages/Management/Form")),
|
|
children: [
|
|
children: [
|
|
{
|
|
{
|
|
|
|
+ mapId: 221,
|
|
hide: true,
|
|
hide: true,
|
|
meta: {
|
|
meta: {
|
|
custom: true,
|
|
custom: true,
|
|
@@ -138,6 +155,7 @@ export const DEFAULT_MENU: DageRouteItem[] = [
|
|
Component: React.lazy(() => import("../pages/AssessmentDetail")),
|
|
Component: React.lazy(() => import("../pages/AssessmentDetail")),
|
|
},
|
|
},
|
|
{
|
|
{
|
|
|
|
+ mapId: 222,
|
|
hide: true,
|
|
hide: true,
|
|
path: "/management/form/detail/index",
|
|
path: "/management/form/detail/index",
|
|
title: "考核指标详情",
|
|
title: "考核指标详情",
|
|
@@ -148,11 +166,13 @@ export const DEFAULT_MENU: DageRouteItem[] = [
|
|
],
|
|
],
|
|
},
|
|
},
|
|
{
|
|
{
|
|
|
|
+ mapId: 230,
|
|
path: "/management/evaluation",
|
|
path: "/management/evaluation",
|
|
title: "考核评定",
|
|
title: "考核评定",
|
|
Component: React.lazy(() => import("../pages/Management/Evaluation")),
|
|
Component: React.lazy(() => import("../pages/Management/Evaluation")),
|
|
children: [
|
|
children: [
|
|
{
|
|
{
|
|
|
|
+ mapId: 231,
|
|
hide: true,
|
|
hide: true,
|
|
meta: {
|
|
meta: {
|
|
custom: true,
|
|
custom: true,
|
|
@@ -162,6 +182,7 @@ export const DEFAULT_MENU: DageRouteItem[] = [
|
|
Component: React.lazy(() => import("../pages/AssessmentDetail")),
|
|
Component: React.lazy(() => import("../pages/AssessmentDetail")),
|
|
},
|
|
},
|
|
{
|
|
{
|
|
|
|
+ mapId: 232,
|
|
hide: true,
|
|
hide: true,
|
|
path: "/management/evaluation/detail/index",
|
|
path: "/management/evaluation/detail/index",
|
|
title: "考核指标详情",
|
|
title: "考核指标详情",
|
|
@@ -172,6 +193,7 @@ export const DEFAULT_MENU: DageRouteItem[] = [
|
|
],
|
|
],
|
|
},
|
|
},
|
|
{
|
|
{
|
|
|
|
+ mapId: 240,
|
|
path: "/management/files",
|
|
path: "/management/files",
|
|
title: "附件管理",
|
|
title: "附件管理",
|
|
Component: React.lazy(() => import("../pages/Management/Files")),
|
|
Component: React.lazy(() => import("../pages/Management/Files")),
|
|
@@ -179,24 +201,35 @@ export const DEFAULT_MENU: DageRouteItem[] = [
|
|
],
|
|
],
|
|
},
|
|
},
|
|
{
|
|
{
|
|
|
|
+ mapId: 300,
|
|
path: "/perfomance",
|
|
path: "/perfomance",
|
|
title: "绩效分析",
|
|
title: "绩效分析",
|
|
redirect: "/perfomance/report",
|
|
redirect: "/perfomance/report",
|
|
icon: <Icon component={PerfomanceIcon} />,
|
|
icon: <Icon component={PerfomanceIcon} />,
|
|
children: [
|
|
children: [
|
|
{
|
|
{
|
|
|
|
+ mapId: 310,
|
|
path: "/perfomance/report",
|
|
path: "/perfomance/report",
|
|
title: "指标分析",
|
|
title: "指标分析",
|
|
Component: React.lazy(() => import("../pages/Performance/Report")),
|
|
Component: React.lazy(() => import("../pages/Performance/Report")),
|
|
},
|
|
},
|
|
{
|
|
{
|
|
|
|
+ mapId: 320,
|
|
path: "/perfomance/form",
|
|
path: "/perfomance/form",
|
|
title: "考核报告",
|
|
title: "考核报告",
|
|
Component: React.lazy(() => import("../pages/Performance/Form")),
|
|
Component: React.lazy(() => import("../pages/Performance/Form")),
|
|
children: [
|
|
children: [
|
|
{
|
|
{
|
|
hide: true,
|
|
hide: true,
|
|
- path: "/perfomance/form/edit",
|
|
|
|
|
|
+ path: "/perfomance/form/create/:id",
|
|
|
|
+ title: "新增报告",
|
|
|
|
+ Component: React.lazy(
|
|
|
|
+ () => import("../pages/Performance/Form/Edit")
|
|
|
|
+ ),
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ hide: true,
|
|
|
|
+ path: "/perfomance/form/edit/:id",
|
|
title: "编辑报告",
|
|
title: "编辑报告",
|
|
Component: React.lazy(
|
|
Component: React.lazy(
|
|
() => import("../pages/Performance/Form/Edit")
|
|
() => import("../pages/Performance/Form/Edit")
|
|
@@ -220,6 +253,25 @@ export const DEFAULT_ADMIN_MENU: DageRouteItem[] = [
|
|
Component: React.lazy(() => import("../pages/User")),
|
|
Component: React.lazy(() => import("../pages/User")),
|
|
},
|
|
},
|
|
{
|
|
{
|
|
|
|
+ path: "/setting/role",
|
|
|
|
+ title: "角色管理",
|
|
|
|
+ Component: React.lazy(() => import("../pages/User/role")),
|
|
|
|
+ children: [
|
|
|
|
+ {
|
|
|
|
+ hide: true,
|
|
|
|
+ path: "/setting/role/create",
|
|
|
|
+ title: "新增角色",
|
|
|
|
+ Component: React.lazy(() => import("../pages/User/RoleEdit")),
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ hide: true,
|
|
|
|
+ path: "/setting/role/edit/:id",
|
|
|
|
+ title: "编辑角色",
|
|
|
|
+ Component: React.lazy(() => import("../pages/User/RoleEdit")),
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ {
|
|
path: "/setting/log",
|
|
path: "/setting/log",
|
|
title: "操作日志",
|
|
title: "操作日志",
|
|
Component: React.lazy(() => import("../pages/Log")),
|
|
Component: React.lazy(() => import("../pages/Log")),
|