From 4cf1d9b429afae5b9629d95cd61dfd27d9c40f83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E7=AB=A5=E5=B4=87?= Date: Mon, 7 Mar 2022 10:55:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=B7=A6=E4=BE=A7=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/managements/components/layouts/config.js | 389 ++++++++++++------- src/managements/components/layouts/index.jsx | 2 +- 2 files changed, 254 insertions(+), 137 deletions(-) diff --git a/src/managements/components/layouts/config.js b/src/managements/components/layouts/config.js index db07a8eca..ab9e8c8ea 100644 --- a/src/managements/components/layouts/config.js +++ b/src/managements/components/layouts/config.js @@ -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: [], + }, ], - }, -] \ No newline at end of file + }, + { + 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: [], + }, + ], + }, +]; diff --git a/src/managements/components/layouts/index.jsx b/src/managements/components/layouts/index.jsx index 3605e0cd8..6046e09db 100644 --- a/src/managements/components/layouts/index.jsx +++ b/src/managements/components/layouts/index.jsx @@ -35,7 +35,7 @@ export default (props) => { item.children.map((it) => { list.push( { - it.urltype == "self" ? {it.name} + it.urltype == "self" ? {it.name} : {it.name} } )