forked from Gitlink/forgeplus-react
上传左侧修改
This commit is contained in:
parent
28bb01f3fe
commit
4cf1d9b429
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
/**
|
||||
* 路由配置表
|
||||
* key:必填,唯一标识
|
||||
|
|
@ -6,143 +5,261 @@
|
|||
* location:路由地址
|
||||
* icon:左侧图标
|
||||
* target:打开方式,参考HTML标签的target属性
|
||||
* urltype:路由类别,用于拓展其它项目管理菜单,self为在当前项目下跳转路由,main_web_site_url或其它为匹配setting中对应路参数径
|
||||
* urltype:路由类别,用于拓展其它项目管理菜单,self为在当前项目下跳转路由,main_web_site_url或其它为匹配setting中对应路参数径
|
||||
* children:子元素数组
|
||||
*/
|
||||
|
||||
export default [
|
||||
{
|
||||
"key": "task",
|
||||
"name": "创客空间",
|
||||
"location": "",
|
||||
"icon": "icon-jinggao",
|
||||
"target": "_self",
|
||||
"urltype": "self",
|
||||
"children": [{
|
||||
"key": "basics",
|
||||
"name": "基础数据",
|
||||
"location": "",
|
||||
"menustatus": "Y",
|
||||
"parentKey": 'task',
|
||||
"icon": "",
|
||||
"target": "_self",
|
||||
"urltype": "",
|
||||
"children": [ {
|
||||
"key": "categories",
|
||||
"name": "任务领域",
|
||||
"location": "/admin/categories/list",
|
||||
"menustatus": "Y",
|
||||
"parentKey": 'task',
|
||||
"icon": "",
|
||||
"target": "_self",
|
||||
"urltype": "main_web_site_url",
|
||||
"children": [],
|
||||
},{
|
||||
"key": "industries",
|
||||
"name": "行业信息",
|
||||
"location": "/managements/industries/list",
|
||||
"menustatus": "Y",
|
||||
"parentKey": 'task',
|
||||
"icon": "",
|
||||
"target": "_self",
|
||||
"urltype": "main_web_site_url",
|
||||
"children": [],
|
||||
},{
|
||||
"key": "placements",
|
||||
"name": "职位信息",
|
||||
"location": "/managements/placements/list",
|
||||
"menustatus": "Y",
|
||||
"parentKey": 'task',
|
||||
"icon": "",
|
||||
"target": "_self",
|
||||
"urltype": "main_web_site_url",
|
||||
"children": [],
|
||||
}],
|
||||
},
|
||||
{
|
||||
"key": "commission",
|
||||
"name": "代办事项",
|
||||
"location": "",
|
||||
"menustatus": "Y",
|
||||
"parentKey": 'task',
|
||||
"icon": "",
|
||||
"target": "_self",
|
||||
"urltype": "",
|
||||
"children": [{
|
||||
"key": "categories",
|
||||
"name": "延期任务处理",
|
||||
"location": "/managements/task/delayManage",
|
||||
"menustatus": "Y",
|
||||
"parentKey": 'task',
|
||||
"icon": "",
|
||||
"target": "_self",
|
||||
"urltype": "self",
|
||||
"children": [],
|
||||
},{
|
||||
"key": "industries",
|
||||
"name": "支付报酬凭证上传",
|
||||
"location": "/managements/task/payProof",
|
||||
"menustatus": "Y",
|
||||
"parentKey": 'task',
|
||||
"icon": "",
|
||||
"target": "_self",
|
||||
"urltype": "self",
|
||||
"children": [],
|
||||
}],
|
||||
},
|
||||
{
|
||||
"key": "placements",
|
||||
"name": "创客任务列表",
|
||||
"location": "/managements/task/taskAdmin",
|
||||
"menustatus": "Y",
|
||||
"parentKey": 'task',
|
||||
"icon": "",
|
||||
"target": "",
|
||||
"urltype": "self",
|
||||
"children": [],
|
||||
}
|
||||
export default [
|
||||
{
|
||||
key: "task",
|
||||
name: "创客空间",
|
||||
location: "",
|
||||
icon: "icon-jinggao",
|
||||
target: "_self",
|
||||
urltype: "self",
|
||||
children: [
|
||||
{
|
||||
key: "basics",
|
||||
name: "基础数据",
|
||||
location: "",
|
||||
menustatus: "Y",
|
||||
parentKey: "task",
|
||||
icon: "",
|
||||
target: "_self",
|
||||
urltype: "",
|
||||
children: [
|
||||
{
|
||||
key: "categories",
|
||||
name: "任务领域",
|
||||
location: "/admin/categories/list",
|
||||
menustatus: "Y",
|
||||
parentKey: "task",
|
||||
icon: "",
|
||||
target: "_self",
|
||||
urltype: "main_web_site_url",
|
||||
children: [],
|
||||
},
|
||||
{
|
||||
key: "industries",
|
||||
name: "行业信息",
|
||||
location: "/managements/industries/list",
|
||||
menustatus: "Y",
|
||||
parentKey: "task",
|
||||
icon: "",
|
||||
target: "_self",
|
||||
urltype: "main_web_site_url",
|
||||
children: [],
|
||||
},
|
||||
{
|
||||
key: "placements",
|
||||
name: "职位信息",
|
||||
location: "/managements/placements/list",
|
||||
menustatus: "Y",
|
||||
parentKey: "task",
|
||||
icon: "",
|
||||
target: "_self",
|
||||
urltype: "main_web_site_url",
|
||||
children: [],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
"key": "competition",
|
||||
"name": "竞赛活动",
|
||||
"location": "",
|
||||
"icon": "icon-ioon",
|
||||
"target": "_self",
|
||||
"urltype": "self",
|
||||
"children": [{
|
||||
"key": "competitionList",
|
||||
"name": "竞赛列表",
|
||||
"location": "/managements/competition/list",
|
||||
"menustatus": "Y",
|
||||
"parentKey": 'task',
|
||||
"icon": "",
|
||||
"target": "",
|
||||
"urltype": "self",
|
||||
"children": [],
|
||||
},
|
||||
{
|
||||
"key": "competitionRegion",
|
||||
"name": "赛区配置",
|
||||
"location": "/admin/competitions/region_zone_edit",
|
||||
"menustatus": "Y",
|
||||
"parentKey": 'task',
|
||||
"icon": "",
|
||||
"target": "_blank",
|
||||
"urltype": "main_web_site_url",
|
||||
"children": [],
|
||||
},
|
||||
{
|
||||
"key": "competitionExpert",
|
||||
"name": "竞赛评审列表",
|
||||
"location": "/managements/expert/competition",
|
||||
"menustatus": "Y",
|
||||
"parentKey": 'task',
|
||||
"icon": "",
|
||||
"target": "",
|
||||
"urltype": "self",
|
||||
"children": [],
|
||||
}
|
||||
},
|
||||
{
|
||||
key: "commission",
|
||||
name: "代办事项",
|
||||
location: "",
|
||||
menustatus: "Y",
|
||||
parentKey: "task",
|
||||
icon: "",
|
||||
target: "_self",
|
||||
urltype: "",
|
||||
children: [
|
||||
{
|
||||
key: "categories",
|
||||
name: "延期任务处理",
|
||||
location: "/managements/task/delayManage",
|
||||
menustatus: "Y",
|
||||
parentKey: "task",
|
||||
icon: "",
|
||||
target: "_self",
|
||||
urltype: "self",
|
||||
children: [],
|
||||
},
|
||||
{
|
||||
key: "industries",
|
||||
name: "支付报酬凭证上传",
|
||||
location: "/managements/task/payProof",
|
||||
menustatus: "Y",
|
||||
parentKey: "task",
|
||||
icon: "",
|
||||
target: "_self",
|
||||
urltype: "self",
|
||||
children: [],
|
||||
},
|
||||
],
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
key: "placements",
|
||||
name: "创客任务列表",
|
||||
location: "/managements/task/taskAdmin",
|
||||
menustatus: "Y",
|
||||
parentKey: "task",
|
||||
icon: "",
|
||||
target: "",
|
||||
urltype: "self",
|
||||
children: [],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
key: "competition",
|
||||
name: "竞赛活动",
|
||||
location: "",
|
||||
icon: "icon-ioon",
|
||||
target: "_self",
|
||||
urltype: "self",
|
||||
children: [
|
||||
{
|
||||
key: "competitionList",
|
||||
name: "竞赛列表",
|
||||
location: "/managements/competition/list",
|
||||
menustatus: "Y",
|
||||
parentKey: "task",
|
||||
icon: "",
|
||||
target: "",
|
||||
urltype: "self",
|
||||
children: [],
|
||||
},
|
||||
{
|
||||
key: "competitionRegion",
|
||||
name: "赛区配置",
|
||||
location: "/admin/competitions/region_zone_edit",
|
||||
menustatus: "Y",
|
||||
parentKey: "task",
|
||||
icon: "",
|
||||
target: "_blank",
|
||||
urltype: "main_web_site_url",
|
||||
children: [],
|
||||
},
|
||||
{
|
||||
key: "competitionExpert",
|
||||
name: "竞赛评审列表",
|
||||
location: "/managements/expert/competition",
|
||||
menustatus: "Y",
|
||||
parentKey: "task",
|
||||
icon: "",
|
||||
target: "",
|
||||
urltype: "self",
|
||||
children: [],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
key: "check",
|
||||
name: "审批",
|
||||
location: "",
|
||||
icon: "icon-ioon",
|
||||
target: "_self",
|
||||
urltype: "self",
|
||||
children: [
|
||||
{
|
||||
key: "checkEnterprise",
|
||||
name: "企业认证",
|
||||
location: "/managements/enterprise_authentication",
|
||||
menustatus: "Y",
|
||||
parentKey: "check",
|
||||
icon: "",
|
||||
target: "_blank",
|
||||
urltype: "main_web_site_url",
|
||||
children: [],
|
||||
},
|
||||
{
|
||||
key: "taskManage1",
|
||||
name: "统筹任务发布审批",
|
||||
location: "/managements/task/taskManage/1",
|
||||
menustatus: "Y",
|
||||
parentKey: "check",
|
||||
icon: "",
|
||||
target: "",
|
||||
urltype: "self",
|
||||
children: [],
|
||||
},
|
||||
{
|
||||
key: "taskManage0",
|
||||
name: "自主任务发布审批",
|
||||
location: "/managements/task/taskManage/0",
|
||||
menustatus: "Y",
|
||||
parentKey: "check",
|
||||
icon: "",
|
||||
target: "",
|
||||
urltype: "self",
|
||||
children: [],
|
||||
},
|
||||
{
|
||||
key: "paperManage",
|
||||
name: "成果/评论审批",
|
||||
location: "/managements/task/paperManage",
|
||||
menustatus: "Y",
|
||||
parentKey: "check",
|
||||
icon: "",
|
||||
target: "",
|
||||
urltype: "self",
|
||||
children: [],
|
||||
},
|
||||
{
|
||||
key: "paperComplain",
|
||||
name: "成果上传申诉审批",
|
||||
location: "/managements/task/paperComplain",
|
||||
menustatus: "Y",
|
||||
parentKey: "check",
|
||||
icon: "",
|
||||
target: "",
|
||||
urltype: "self",
|
||||
children: [],
|
||||
},
|
||||
{
|
||||
key: "publicityComplain",
|
||||
name: "公示期成果申诉审批",
|
||||
location: "/managements/task/publicityComplain",
|
||||
menustatus: "Y",
|
||||
parentKey: "check",
|
||||
icon: "",
|
||||
target: "",
|
||||
urltype: "self",
|
||||
children: [],
|
||||
},
|
||||
{
|
||||
key: "agreementManage",
|
||||
name: "协议审批",
|
||||
location: "/managements/task/agreementManage",
|
||||
menustatus: "Y",
|
||||
parentKey: "check",
|
||||
icon: "",
|
||||
target: "",
|
||||
urltype: "self",
|
||||
children: [],
|
||||
},
|
||||
{
|
||||
key: "report_result_tasks",
|
||||
name: "成果举报申诉",
|
||||
location: "/admin/tasks/report_result_tasks",
|
||||
menustatus: "Y",
|
||||
parentKey: "check",
|
||||
icon: "",
|
||||
target: "_blank",
|
||||
urltype: "main_web_site_url",
|
||||
children: [],
|
||||
},
|
||||
{
|
||||
key: "proofManage",
|
||||
name: "评选佐证材料",
|
||||
location: "/managements/task/proofManage",
|
||||
menustatus: "Y",
|
||||
parentKey: "check",
|
||||
icon: "",
|
||||
target: "",
|
||||
urltype: "self",
|
||||
children: [],
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ export default (props) => {
|
|||
item.children.map((it) => {
|
||||
list.push(<Menu.Item key={it.key} >
|
||||
{
|
||||
it.urltype == "self" ? <Link target={item.target} to={it.location}>{it.name}</Link>
|
||||
it.urltype == "self" ? <Link target={it.target} to={it.location}>{it.name}</Link>
|
||||
: <a target={it.target} href={`${setting[it.urltype] + it.location}`}>{it.name}</a>
|
||||
}
|
||||
</Menu.Item>)
|
||||
|
|
|
|||
Loading…
Reference in New Issue