import Vue from 'vue'; import Router from 'vue-router'; /* 解决vue项目路由出现message: "Navigating to current location (XXX) is not allowed"的问题 */ const routerPush = Router.prototype.push; Router.prototype.push = function push (location) { return routerPush.call(this, location).catch(error => error); }; Vue.use(Router); function routerObj (path, com, name, title, to = '', child) { let opt = { path: path, name: name, meta: { title: title, to: to } }; if (process.env.NODE_ENV === 'development') { opt.component = resolve => require(['../views/' + com], resolve); } else { opt.component = () => import(/* webpackChunkName: "lib" */ '../views/' + com); } if (child !== undefined && child.length > 0) { opt.children = child; } return opt; } const router = new Router({ routes: [ // { // path: '/', // redirect: { // name: "comMember" // } // }, routerObj('/index', 'index/index.vue', 'index', '首页', '99'), routerObj('/statisticalDashboard', 'statisticalDashboard/index.vue', 'index', '统计看板', '99'), routerObj('/login', 'login/login.vue', 'login', '登录', ''), routerObj('/silence', 'login/silence.vue', 'silence', '登录', ''), routerObj('/pwd', 'user/pwd.vue', 'pwd', '修改密码', '2'), // --------------- 居民活动 11 // 随手拍 1100 // routerObj('/act_clap', 'activity/clap/index.vue', 'actClap', '治理信息管理', ''), // routerObj('/act_clap_detail/:id', 'activity/clap/detail.vue', 'actClapDetail', '治理信息详情', ''), // 随手拍 1100 routerObj('/act_clap', 'activity/clap/index.vue', 'actClap', '随手拍管理', ''), routerObj('/act_clap_detail/:id', 'activity/clap/detail.vue', 'actClapDetail', '随手拍详情', ''), // 网格治理 1100 routerObj('/act_gridegovernance', 'activity/GrideGovernance/index.vue', 'actClap', '治理信息管理', ''), routerObj('/act_gridegovernance_detail/:id', 'activity/GrideGovernance/detail.vue', 'actClapDetail', '治理信息详情', ''), //需求清单 routerObj('/man_demandList', 'manage/demandList/index.vue', 'mandemandList', '需求清单', ''), routerObj('/man_demandList_detail/:id', 'manage/demandList/detail.vue', 'mandemandListDetail', '需求清单详情', ''), routerObj('/man_demandList_comment/:id', 'manage/demandList/comment.vue', 'mandemandListrComment', '评论详情', ''), // 心愿管理 1110 routerObj('/act_wish', 'activity/wish/index.vue', 'actWish', '心愿管理', ''), routerObj('/act_wish_detail/:id', 'activity/wish/detail.vue', 'actWishDetail', '心愿详情', ''), // 居民活动 1120 routerObj('/act_act', 'activity/activity/index.vue', 'actAct', '居民活动', ''), routerObj('/act_act_detail/:id', 'activity/activity/detail.vue', 'actActDetail', '居民活动详情', ''), routerObj('/act_act_add', 'activity/activity/add.vue', 'actActAdd', '新增', ''), routerObj('/act_act_edit/:id', 'activity/activity/edit.vue', 'actActEdit', '编辑', ''), routerObj('/act_act_list/:id', 'activity/activity/list.vue', 'actActList', '居民活动报名名单', ''), routerObj('/checkRecord/:id', 'activity/activity/checkRecord', 'checkRecord', '签到记录', ''), routerObj('/evaluateRecord/:id', 'activity/activity/evaluateRecord.vue', 'evaluateRecord', '评价记录', ''), //志愿者活动 1210 routerObj('/act_volunteer', 'activity/volunteer/index.vue', 'actAct', '志愿者活动', ''), routerObj('/act_volunteer_detail/:id', 'activity/volunteer/detail.vue', 'actActDetail', '志愿者活动详情', ''), routerObj('/act_volunteer_add', 'activity/volunteer/add.vue', 'actActAdd', '新增', ''), routerObj('/act_volunteer_edit/:id', 'activity/volunteer/edit.vue', 'actActEdit', '编辑', ''), routerObj('/act_volunteer_list/:id', 'activity/volunteer/list.vue', 'actActList', '志愿者活动报名名单', ''), routerObj('/checkvolunteer', 'activity/volunteer/checkRecord', 'checkRecord', '签到记录', ''), routerObj('/evaluatevolunteer/:id', 'activity/volunteer/evaluateRecord.vue', 'evaluateRecord', '评价记录', ''), // 社区动态 1130man_face routerObj('/act_status', 'activity/status/index.vue', 'actStatus', '社区动态', ''), routerObj('/act_status_add', 'activity/status/add.vue', 'actStatusAdd', '新增', ''), routerObj('/act_status_edit', 'activity/status/edit.vue', 'actStatusEdit', '编辑', ''), routerObj('/classification_Settings', 'activity/status/classificationSettings.vue', 'classificationSettings', '分类设置', ''), // 金汇智慧党建 1130man_face routerObj('/jh_status', 'activity/smartParty/index.vue', 'actStatus', '智慧党建', ''), routerObj('/jh_status_add', 'activity/smartParty/add.vue', 'actStatusAdd', '新增', ''), routerObj('/jh_status_edit', 'activity/smartParty/edit.vue', 'actStatusEdit', '编辑', ''), routerObj('/jh_classification_Settings', 'activity/smartParty/classificationSettings.vue', 'classificationSettings', '分类设置', ''), // 基务公开 routerObj('/affairsPublic', 'activity/status/affairsPublic.vue', 'affairsPublic', '基务公开', ''), routerObj('/affairsPublicSearch', 'activity/status/affairsPublicSearch.vue', 'affairsPublicSearch', '基务公开查询', ''), routerObj('/affairsPublicSearchDetail', 'activity/status/affairsPublicSearchDetail.vue', 'affairsPublicSearchDetail', '基务公开查询详情', ''), routerObj('/situation', 'activity/status/situation.vue', 'situation', '疫情资讯', ''), // 一起议 1140 routerObj('/act_talk', 'activity/talk/index.vue', 'actTalk', '议事投票', ''), routerObj('/add_talk', 'activity/talk/add.vue', 'actTalk', '议事投票', ''), routerObj('/add_talk_statistics', 'activity/talk/statistics.vue', 'statistics', '查看投票', ''), routerObj('/act_talk_detail/:id?/:type?', 'activity/talk/detail.vue', 'actTalkDetail', '议事详情', ''), routerObj('/act_talk_comment/:id', 'activity/talk/comment.vue', 'actTalkComment', '评论列表', ''), // 物业动态 routerObj('/propertyDynamic', 'activity/property/dynamic.vue', 'propertyDynamic', '物业宣传', ''), routerObj('/addDynamic', 'activity/property/addDynamic.vue', 'addDynamic', '物业宣传', ''), // 问卷调查 routerObj('/act_quest', "activity/quest/index.vue", 'actQuest', '问卷调查', '1150'), routerObj('/act_quest_add/:id?/:info?', "activity/quest/add.vue", 'actQuestAdd', '新增问卷调查', ''), routerObj('/act_quest_edit/:id', "activity/quest/edit.vue", 'actQuestEdit', '编辑问卷调查', ''), routerObj('/act_quest_detail/:id', "activity/quest/detail.vue", 'actQuestDetail', '问卷调查详情', ''), routerObj('/act_quest_count/:id', "activity/quest/count.vue", 'actQuestCount', '问卷调查调研数据', ''), routerObj('/act_quest_statistics', "activity/quest/statistics.vue", 'statisticsDetail', '查看统计', ''), routerObj('/act_quest_details', "activity/quest/details.vue", 'details', '查看统计详情', ''), routerObj('/act_quest_counts/:userId&:questId', "activity/quest/count_detail.vue", 'actQuestCounts', '问卷调查调研详情', ''), routerObj('/act_topic', "activity/topic/index.vue", 'actTopic', '话题管理', ''), //群团组织管理 routerObj('/act_Cluster', "activity/groupOrganization/index.vue", 'actTopic', '群团组织管理', ''), routerObj('/act_Cluster1', "activity/groupOrganization/index1.vue", 'actTopic1', '群团组织成员管理', ''), routerObj('/act_addOrg', "activity/groupOrganization/addOrg.vue", 'actaddOrg', '新增/编辑组织', ''), routerObj('/act_addOrg1', "activity/groupOrganization/add.vue", 'actaddOrg1', '新增/编辑组织成员', ''), //预约登记 routerObj('/act_management', "activity/reservation/management.vue", 'management', '预约登记管理', ''), routerObj('/act_addregister/:id?/:copy?', "activity/reservation/addregister.vue", 'management', '新增登记', ''), routerObj('/act_detailed/:id', "activity/reservation/detailed.vue", 'detailed', '预约明细', ''), routerObj('/quarantine', "activity/reservation/quarantine.vue", 'quarantine', '统计列表', ''), routerObj('/act_registrationDetails/:id', "activity/reservation/registrationDetails.vue", 'registrationDetails', '登记明细', ''), routerObj('/act_registrationStatistics/:id?', "activity/reservation/registrationStatistics.vue", 'registrationStatistics', '登记统计汇总', ''), routerObj('/act_appointmentStatistics/:id?', "activity/reservation/appointmentStatistics.vue", 'appointmentStatistics', '预约统计汇总', ''), routerObj('/act_registerviewDetails/:id?', "activity/reservation/registerviewDetails.vue", 'registerviewDetails', '登记明细查看详情', ''), routerObj('/act_appointviewDetails/:id?', "activity/reservation/appointviewDetails.vue", 'appointviewDetails', '预约明细查看详情', ''), routerObj('/act_handle', "activity/reservation/handle.vue", 'handle', '预约处理', ''), // 双争双评统计 routerObj('/doubleStatistic', 'doubleStatistic/index.vue', 'doubleStatistic', '双争双评统计', ''), // --------------- 社区党建引领 10 routerObj('/addUnit', 'communist/unit/addUnit.vue', 'addUnit', '新增报到单位', ''), routerObj('/unitManage', 'communist/unit/unitManage.vue', 'unitManage', '报到单位管理', ''), routerObj('/unitStatistics', 'communist/unit/unitStatistics.vue', 'unitStatistics', '报到单位总计数据', ''), routerObj('/statisticsDetails', 'communist/unit/statisticsDetails.vue', 'statisticsDetails', '报到单位统计详情', ''), routerObj('/addUnitProject', 'communist/unit/addProject.vue', 'unitInformation', '新增报到单位项目', ''), routerObj('/unitProjectList', 'communist/unit/projectList.vue', 'unitInformation', '报到单位项目列表', ''), // 党员管理 1000 routerObj('/com_member', 'communist/member/index.vue', 'comMember', '党员报到', ''), routerObj('/menberStatistics', 'communist/member/menberStatistics.vue', 'menberStatistics', '报到党员总计数据', ''), routerObj('/menberDetails', 'communist/member/menberDetails.vue', 'menberDetails', '报到党员统计详情', ''), routerObj('/addMember', 'communist/member/addMember.vue', 'addMember', '报到党员新增/编辑', ''), routerObj('/com_member_detail/:id', 'communist/member/information.vue', 'comMemberInformation', '报到党员详情', ''), //党支部管理 routerObj('/com_branch', 'communist/branch/index.vue', 'comBranch', '党支部管理', ''), routerObj('/com_branch_add', 'communist/branch/add.vue', 'comBranchAdd', '党支部管理', ''), //committee 社区党委 // routerObj('/com_committee', 'communist/committee/index.vue', 'comCommittee', '党委管理', ''), //报到单位管理 routerObj('/com_report', 'communist/report/index.vue', 'comReport', '党组织报到管理', ''), //党组织数据统计 routerObj('/com_Statistics', 'communist/Statistics/index.vue', 'comStatistics', '党组织数据统计', ''), //留言板 routerObj('/com_message', 'communist/MessageBoard/index.vue', 'comMessage', '居民留言板', ''), routerObj('/com_message_detail/:id', 'communist/MessageBoard/detail.vue', 'comMessageDetail', '留言详情', ''), // 社区党委管理 1010 // routerObj('/com_party', 'communist/party/index.vue', 'comParty', '社区党委管理', ''), routerObj('/com_party', 'communist/committee/index.vue', 'comParty', '社区党委管理', ''), // 党建动态 1020 routerObj('/com_dynamic', 'communist/dynamic/index.vue', 'comDynamic', '党建动态', ''), routerObj('/com_dynamic_add', 'communist/dynamic/add.vue', 'comDynamicAdd', '新增党建动态', ''), routerObj('/com_dynamic_edit/:id', 'communist/dynamic/edit.vue', 'comDynamicEdit', '编辑党建动态', ''), routerObj('/com_dynamic_detail/:id', 'communist/dynamic/detail.vue', 'comDynamicDetail', '党建动态详情', ''), // 政策文件 1030 routerObj('/com_policy', 'communist/policy/index.vue', 'comPolicy', '政策文件', ''), routerObj('/com_policy_add', 'communist/policy/add.vue', 'comPolicyAdd', '新增', ''), routerObj('/com_policy_edit/:id', 'communist/policy/edit.vue', 'comPolicyEdit', '编辑', ''), routerObj('/com_policy_detail/:id', 'communist/policy/detail.vue', 'comPolicyDetail', '详情', ''), // 党员活动 1040 routerObj('/serveActivityManage', 'communist/serveAct/serveActivityManage.vue', 'serveActivityManage', '党员志愿服务活动', ''), routerObj('/serveActivityAdd', 'communist/serveAct/add.vue', 'serveActivityAdd', '党员志愿服务活动', ''), routerObj('/com_activity', 'communist/activity/index.vue', 'comActivity', '社区活动', ''), routerObj('/com_activity_add', 'communist/activity/add.vue', 'comActivityAdd', '新增活动', ''), routerObj('/com_activity_edit/:id', 'communist/activity/edit.vue', 'comActivityEdit', '编辑活动', ''), routerObj('/com_activity_detail/:id', 'communist/activity/detail.vue', 'comActivityDetail', '活动详情', ''), routerObj('/com_activity_list/:id', 'communist/activity/list.vue', 'comActivityList', '活动报名名单', ''), routerObj('/com_checkRecord/:id', 'communist/activity/checkRecord', 'com_checkRecord', '签到记录', ''), routerObj('/activityStatistics', 'communist/activity/activityStatistics', 'activityStatistics', '党员活动统计', ''), // 服务团队 1050 routerObj('/com_service', 'communist/service/index.vue', 'comService', '社区工作人员管理', ''), routerObj('/com_authentication', 'communist/authentication/index.vue', 'comAuthentication', '党员认证', ''), // 网格化管理 13 routerObj('/grid', 'grid/grid/index.vue', 'grid', '网格管理', ''), routerObj('/grid_add', 'grid/grid/add.vue', 'gridAdd', '新增网格', ''), routerObj('/grid_member', 'grid/member/index.vue', 'gridMember', '网格员管理', ''), routerObj('/grid_check', 'grid/assessment/index.vue', 'gridAssessment', '考核管理', ''), routerObj('/grid_patrol', 'grid/patrol/index.vue', 'gridPatrol', '巡逻记录', ''), routerObj('/gridMemberManage', 'property/gridMemberManage.vue', 'gridMemberManage', '网格员管理', ''), // 社区管理 15 routerObj('/man_face', 'manage/face/index.vue', 'manFace', '人脸采集', ''), routerObj('/man_population', 'manage/population/index.vue', 'manPopulation', '小程序用户管理', ''), routerObj('/man_populations/:id', 'manage/population/detail.vue', 'manPopulations', '人口详情', ''), routerObj('/man_income', 'manage/population/income.vue', 'income', '收入明细', ''), routerObj('/man_expenditure', 'manage/population/expenditure.vue', 'expenditure', '支出明细', ''), routerObj('/man_vol_exam', 'manage/volunteer/examine.vue', 'manVolExam', '志愿者审核', ''), routerObj('/man_vol', 'manage/volunteer/index.vue', 'manVol', '志愿者管理', ''), routerObj('/man_bui_village', 'manage/build/village.vue', 'manBuiVillage', '小区管理', ''), routerObj('/man_bui_villages/:id', 'manage/build/village_detail.vue', 'manBuiVillages', '小区房屋管理', ''), routerObj('/man_bui_other', 'manage/build/other.vue', 'manBuiOther', '其他建筑管理', ''), routerObj('/man_bui_other_add', 'manage/build/other_add.vue', 'manBuiOtherAdd', '新增其他建筑', ''), routerObj('/man_bui_other_edit/:id', 'manage/build/other_edit.vue', 'manBuiOtherEdit', '编辑其他建筑', ''), routerObj('/man_veh', 'manage/vehicle/index.vue', 'manVeh', '车辆管理', ''), routerObj('/man_user', 'manage/user/index.vue', 'manUser', '居民信息管理', ''), routerObj('/highOdlPeople', 'manage/user/highOdlPeople.vue', 'highOdlPeople', '高龄老人', ''), routerObj('/man_user_detail/:id', 'manage/user/detail.vue', 'manUserDetail', '用户详情', ''), routerObj('/man_user_edit/', 'manage/user/edit.vue', 'manUserEdit', '编辑', ''), routerObj('/man_spec', 'manage/special/index.vue', 'manSpec', '特殊人群管理', ''), routerObj('/man_spec_tag', 'manage/special/tag.vue', 'manSpecTag', '人员标签', ''), routerObj('/man_assets', 'manage/assets/index.vue', 'manAssets', '社区资产管理', ''), routerObj('/man_assets_edit', 'manage/assets/edit.vue', 'manAssetsEdit', '新增/编辑社区资产', ''), routerObj('/man_company', 'manage/Company/index.vue', 'manCompany', '实有单位', ''), routerObj('/man_company_edit', 'manage/Company/edit.vue', 'manCompanyEdit', '新增/编辑单位', ''), routerObj('/man_house', 'manage/house/index.vue', 'manHouse', '小区管理', ''), routerObj('/man_house_detail', 'manage/house/detail.vue', 'manHouseDetail', '小区详情', ''), routerObj('/man_house_edit', 'manage/house/edit.vue', 'manHouseEdit', '新增/编辑', ''), routerObj('/man_quarters', 'manage/quarters/index.vue', 'manQuarters', '房屋信息管理', ''), routerObj('/man_quarters_edit', 'manage/quarters/edit.vue', 'manQuartersEdit', '房屋信息编辑', ''), routerObj('/man_quarters_detail', 'manage/quarters/details.vue', 'manQuartersDetail', '房屋信息详情', ''), routerObj('/man_demand_list', 'manage/demandList/demand.vue', 'man_demand_list', '需求清单', ''), routerObj('/demand_dcl_list', 'manage/demandList/demand_2.vue', 'demand_ycl_list', '待处理需求', ''), routerObj('/demand_ycl_list', 'manage/demandList/demand_3.vue', 'man_demand_3', '已处理需求', ''), routerObj('/man_neighbor', 'manage/neighbor/index.vue', 'man_neighbor', '问题清单', ''), routerObj('/man_neighbor_2', 'manage/neighbor/man_neighbor_2.vue', 'man_neighbor_2', '待处理问题', ''), routerObj('/man_neighbor_3', 'manage/neighbor/man_neighbor_3.vue', 'man_neighbor_3', '已处理问题', ''), routerObj('/add_neighbor', 'manage/neighbor/add.vue', 'add_neighbor', '新增清单', ''), routerObj('/man_neighbor_detail/:id', 'manage/neighbor/detail.vue', 'manNeighborDetail', '清单详情', ''), routerObj('/man_neighbor_comment/:id', 'manage/neighbor/comment.vue', 'manNeighborComment', '评论详情', ''), routerObj('/helpDetails', 'manage/neighbor/helpDetails.vue', 'helpDetails', '求助', ''), routerObj('/man_fourleaders', 'manage/fourleaders/index.vue', 'manFourleaders', '四长四员', ''), // 物业公司 routerObj('/company', 'manage/property/company.vue', 'company', '红色物业', ''), routerObj('/addCompany', 'manage/property/addCompany.vue', 'addCompany', '红色物业新增/编辑', ''), routerObj('/workPeople', 'manage/property/workPeople.vue', 'workPeople', '工作人员', ''), routerObj('/propertyRepair', 'manage/property/propertyRepair.vue', 'propertyRepair', '报事报修', ''), routerObj('/repairDetails', 'manage/property/repairDetails.vue', 'repairDetails', '报事报修详情', ''), routerObj('/propertyIntroduce', 'manage/property/propertyIntroduce.vue', 'propertyIntroduce', '公司简介', ''), routerObj('/communityActivity', 'manage/property/activity/communityActivity.vue', 'communityActivity', '社区活动', ''), routerObj('/communityStatus', 'manage/property/status/communityStatus.vue', 'communityStatus', '社区动态', ''), routerObj('/community_status_add', 'manage/property/status/add.vue', 'community_status_add', '新增', ''), routerObj('/community_status_edit', 'manage/property/status/edit.vue', 'community_status_edit', '编辑', ''), routerObj('/community_classification_Settings', 'manage/property/status/classificationSettings.vue', 'community_classification_Settings', '分类设置', ''), routerObj('/volunteerTeam', 'manage/property/volunteer/volunteerTeam.vue', 'volunteerTeam', '志愿者队伍', ''), routerObj('/proceedings_talk', 'manage/property/proceedings/index.vue', 'proceedings_talk', '群众议事', ''), routerObj('/add_proceedings', 'manage/property/proceedings/add.vue', 'add_proceedings', '群众议事', ''), routerObj('/add_proceedings_statistics', 'manage/property/proceedings/statistics.vue', 'add_proceedings_statistics', '查看投票', ''), routerObj('/act_proceedings_detail/:id?/:type?', 'manage/property/proceedings/detail.vue', 'act_proceedings_detail', '议事详情', ''), routerObj('/act_proceedings_comment/:id', 'manage/property/proceedings/comment.vue', 'act_proceedings_comment', '评论列表', ''), routerObj('/committeeManage', 'manage/property/committeeManage.vue', 'committeeManage', '议事委员会', ''), routerObj('/communityTeam', 'manage/property/service/communityTeam.vue', 'communityTeam', '党员先锋', ''), routerObj('/volunteerManage', 'manage/property/volunteer/volunteerManage.vue', 'volunteerManage', '志愿者管理', ''), routerObj('/feedbackManage', 'manage/property/feedbackManage.vue', 'feedbackManage', '投诉建议', ''), routerObj('/replyManage', 'manage/property/replyManage.vue', 'replyManage', '问题留言', ''), routerObj('/propertyNotice', 'manage/property/notice/notice.vue', 'notice', '通知公告', ''), routerObj('/propertyNoticeClass', 'manage/property/notice/noticeClass.vue', 'noticeClass', '通知类型管理', ''), routerObj('/deviceManage', 'manage/warning/deviceManage.vue', 'deviceManage', '设备管理', ''), routerObj('/addDevice', 'manage/warning/addDevice.vue', 'addDevice', '设备管理', ''), routerObj('/deviceDetails', 'manage/warning/deviceDetails.vue', 'deviceDetails', '设备详情', ''), routerObj('/seekHelp', 'manage/warning/seekHelp.vue', 'seekHelp', '一键求助', ''), routerObj('/addSeekHelp', 'manage/warning/addSeekHelp.vue', 'addSeekHelp', '一键求助新增/编辑', ''), routerObj('/warningRecord', 'manage/warning/warningRecord.vue', 'warningRecord', '报警记录', ''), routerObj('/recordDetails', 'manage/warning/recordDetails.vue', 'recordDetails', '报警记录详情', ''), routerObj('/earlyWarning', 'manage/warning/earlyWarning.vue', 'earlyWarning', '异常预警配置', ''), routerObj('/social', 'manage/social/index.vue', 'social', '社会组织管理', ''), routerObj('/social_add', 'manage/social/add.vue', 'social_add', '社会组织新增/编辑', ''), routerObj('/social_details', 'manage/social/details.vue', 'social_details', '社会组织详情', ''), routerObj('/committee', 'manage/committee/index.vue', 'committee', '业主委员会管理', ''), routerObj('/committee_add', 'manage/committee/add.vue', 'committee_add', '业主委员会管理', ''), routerObj('/committee_details', 'manage/committee/details.vue', 'committee_details', '业主委员会详情', ''), routerObj('/notice', 'manage/notice/notice.vue', 'notice', '通知公告', ''), routerObj('/noticeClass', 'manage/notice/noticeClass.vue', 'noticeClass', '通知类型管理', ''), routerObj('/deathManage', 'manage/death/death.vue', 'death', '死亡管理', ''), routerObj('/man_volRank', 'manage/volunteer/volunteerRank.vue', 'manVolRank', '志愿者队伍', ''), routerObj('/man_volType', 'manage/volunteer/serverType.vue', 'manVolType', '服务类型管理', ''), routerObj('/man_skillAdmin', 'manage/volunteer/skillAdmin.vue', 'manSkillAdmin', '技能管理', ''), routerObj('/registrationManage', 'community/registrationManage.vue', 'registrationManage', '社区报备管理', ''), routerObj('/registrationDetails', 'community/registrationDetails.vue', 'registrationDetails', '社区报备详情', ''), routerObj('/editRegistrationInfo', 'community/editRegistrationInfo.vue', 'editRegistrationInfo', '社区报备编辑', ''), routerObj('/dangerPersonManage', 'community/dangerPersonManage.vue', 'dangerPersonManage', '风险人员管理', ''), routerObj('/notAddressPersonManage', 'community/notAddressPersonManage.vue', 'notAddressPersonManage', '未填地址人员管理', ''), routerObj('/workingManage', 'community/workingManage.vue', 'workingManage', '防疫工作人员管理', ''), routerObj('/recordManage', 'community/recordManage.vue', 'recordManage', '记录管理', ''), //社区运营 routerObj('/cor_con', 'communityRun/Convenient/index.vue', 'corCon', '便民服务列表', ''), routerObj('/cor_bus', 'communityRun/business/index.vue', 'corBus', '便民服务商家', ''), routerObj('/cor_bus_edit', 'communityRun/business/edit.vue', 'corBusEdit', '添加/编辑商家', ''), routerObj('/cor_class', 'communityRun/classification', 'corClass', '便民服务分类', ''), routerObj('/cor_ren', 'communityRun/Renting/index.vue', 'corren', '房屋租售', ''), routerObj('/cor_edit', 'communityRun/Renting/edit.vue', 'corEdit', '编辑/新增房屋', ''), routerObj('/cor_exam', 'communityRun/Renting/examine.vue', 'corExam', '房屋审核', ''), routerObj('/cor_clap', 'communityRun/clap/index.vue', 'corClap', '随手拍活动', ''), routerObj('/cor_merchant', 'communityRun/merchantClassification/index.vue', 'merchant', '便民商家分类', ''), routerObj('/cor_IntegralDetails', 'communityRun/integral/IntegralDetails.vue', 'merchant', '积分明细', ''), routerObj('/cor_IntegralSetting', 'communityRun/integral/IntegralSetting.vue', 'merchant', '积分设置', ''), //办事指南 routerObj('/jh_work', 'communityRun/work/index.vue', 'jh_work', '办事指南', '1812'), routerObj('/jh_work_classification/:id?', 'communityRun/work/classification.vue', 'jh_work_classification', '办事指南分类管理', '1812'), routerObj('/jh_work_add', 'communityRun/work/add.vue', 'jh_work_add', '添加办事指南', '1812'), routerObj('/jh_work_edit/:id', 'communityRun/work/edit.vue', 'jh_work_edit', '编辑办事指南', '1812'), routerObj('/jh_work_applyList', 'communityRun/work/applyList.vue', 'jh_work_applyList', '办事指南审核', '1812'), routerObj('/jh_work_applyListDetail/:id', 'communityRun/work/applyListDetail.vue', 'jh_work_applyListDetail', '办事指南审核详情', '1812'), //空间 routerObj('/space_management', 'communityRun/spaceManage/index.vue', 'space_management', '公共空间管理', '1812'), routerObj('/space_classification/:id?', 'communityRun/spaceManage/classification.vue', 'space_classification', '公共空间分类管理', '1812'), routerObj('/space_add', 'communityRun/spaceManage/add.vue', 'space_add', '添加公共空间', '1812'), routerObj('/space_edit/:id', 'communityRun/spaceManage/edit.vue', 'space_edit', '编辑公共空间', '1812'), routerObj('/space_apply', 'communityRun/spaceManage/applyList.vue', 'space_apply', '公共空间申请', '1892'), //智能生活体验文章 routerObj('/article_management', 'communityRun/smartLife/article/index.vue', 'article_management', '文章管理', '1812'), routerObj('/article_add/:id?', 'communityRun/smartLife/article/add.vue', 'article_add', '文章管理添加', '1812'), routerObj('/article_edit/:id', 'communityRun/smartLife/article/edit.vue', 'article_edit', '文章管理编辑', '1812'), //金汇家园 routerObj('/jh_home_management', 'communityRun/smartLife/jh_home/index.vue', 'jh_home_management', '金汇家园', '1812'), routerObj('/jh_hom_add', 'communityRun/smartLife/jh_home/add.vue', 'jh_hom_add', '金汇家园添加', '1812'), routerObj('/jh_hom_edit/:id', 'communityRun/smartLife/jh_home/edit.vue', 'jh_hom_edit', '金汇家园编辑', '1812'), //慈善公益 routerObj('/jh_charity_management', 'communityRun/smartLife/charity/index.vue', 'jh_charity_management', '慈善公益', ''), routerObj('/jh_charity_add/:id?', 'communityRun/smartLife/charity/add.vue', 'jh_charity_add', '慈善公益添加', ''), routerObj('/jh_charity_edit/:id', 'communityRun/smartLife/charity/edit.vue', 'jh_charity_edit', '慈善公益编辑', ''), //生活服务 routerObj('/jh_store_management', 'communityRun/storeManage/index.vue', 'corWork', '便民服务管理', '1812'), routerObj('/jh_store_classification/:id?', 'communityRun/storeManage/classification.vue', 'classification', '便民服务分类管理', '1812'), routerObj('/jh_store_add', 'communityRun/storeManage/add.vue', 'corWorkAdd', '添加便民服务', '1812'), routerObj('/jh_store_edit/:id', 'communityRun/storeManage/edit.vue', 'corWorkEdit', '编辑便民服务', '1812'), routerObj('/jh_store_apply', 'communityRun/storeManage/applyList.vue', 'corWorkapply', '便民服务申请', '1892'), routerObj('/jh_store_Detail/:id', 'communityRun/storeManage/detail.vue', 'corWorkapply', '便民服务申请详情', '1892'), //金汇微心愿 routerObj('/wish_jh', 'communityRun/wish_jh/index.vue', 'corWork', '微心愿', '9800'), routerObj('/wish_jh_classification/:id?', 'communityRun/wish_jh/classification.vue', 'classification', '微心愿分类管理', '980010'), // 爱心积分商城 routerObj('/jh_lovePointsStore', 'communityRun/lovePointsStore/index.vue', 'actLovePointsStore', '商品管理', '6040'), routerObj('/jh_lovePointsStoreAdd', 'communityRun/lovePointsStore/add.vue', 'actLovePointsStoreAdd', '新增', '604000'), routerObj('/jh_lovePointsStoreEdit', 'communityRun/lovePointsStore/edit.vue', 'actLovePointsStoreEdit', '编辑', '604010'), // 兑换订单 routerObj('/jh_communityExchangeOrder', 'communityRun/exchangeOrder/index.vue', 'actCommunityExchangeOrder', '订单管理', '6050'), // 爱心积分商城 routerObj('/hc_lovePointsStore', 'communityRun/lovePointsStoreHuacheng/index.vue', 'actLovePointsStore', '商品管理', '6040'), routerObj('/hc_lovePointsStoreAdd', 'communityRun/lovePointsStoreHuacheng/add.vue', 'actLovePointsStoreAdd', '新增', '604000'), routerObj('/hc_lovePointsStoreEdit', 'communityRun/lovePointsStoreHuacheng/edit.vue', 'actLovePointsStoreEdit', '编辑', '604010'), // 爱心积分商城 routerObj('/hc_Store', 'communityRun/lovePointsStoreHuacheng/store/index.vue', 'hc_Store', '兑换商家', '6040'), routerObj('/hc_StoreAdd', 'communityRun/lovePointsStoreHuacheng/store/add.vue', 'hc_StoreAdd', '新增', '604000'), routerObj('/hc_StoreEdit', 'communityRun/lovePointsStoreHuacheng/store/edit.vue', 'hc_StoreEdit', '编辑', '604010'), // 兑换订单 routerObj('/hc_communityExchangeOrder', 'communityRun/exchangeOrderHuacheng/index.vue', 'actCommunityExchangeOrder', '订单管理', '6050'), // 体验活动 1040 routerObj('/jh_activity', 'communityRun/smartLife/activity/index.vue', 'comActivity', '活动管理', ''), routerObj('/jh_activity_add', 'communityRun/smartLife/activity/add.vue', 'comActivityAdd', '新增活动', ''), routerObj('/jh_activity_edit/:id', 'communityRun/smartLife/activity/edit.vue', 'comActivityEdit', '编辑活动', ''), routerObj('/jh_activity_detail/:id', 'communityRun/smartLife/activity/detail.vue', 'comActivityDetail', '活动详情', ''), routerObj('/jh_activity_feedback/:id', 'communityRun/smartLife/activity/evaluateRecord.vue', 'evaluateRecord', '反馈记录', ''), // 事件管理 1100 // routerObj('/act_gridegovernance', 'activity/GrideGovernance/index.vue', 'actClap', '治理信息管理', ''), // routerObj('/act_gridegovernance_detail/:id', 'activity/GrideGovernance/detail.vue', 'actClapDetail', '治理信息详情', ''), routerObj('/jh_grid', 'grid_jh/grid/index.vue', 'grid', '网格管理', ''), routerObj('/jh_grid_add', 'grid_jh/grid/add.vue', 'gridAdd', '新增网格', ''), routerObj('/jh_grid_member', 'grid_jh/member/index.vue', 'gridMember', '网格员管理', ''), routerObj('/jh_gridegovernance', 'grid_jh/GrideGovernance/index.vue', 'actClap', '事件管理', ''), routerObj('/jh_gridegovernance_detail/:id', 'grid_jh/GrideGovernance/detail.vue', 'actClapDetail', '事件管理详情', ''), // 养老手环 routerObj('/jh_OldManWristband', 'oldman/index.vue', 'oldmanUserList', '用户列表', ''), routerObj('/jh_OldManWristband_Detail', 'oldman/indexDetail', 'oldmanUserListDetail', '用户列表详情', ''), // routerObj('/jh_OldManWristband_DeviceList', 'oldman/deviceList.vue', 'deviceList', '设备列表', ''), routerObj('/jh_OldManWristband_DeviceWorning', 'oldman/deviceWorning.vue', 'deviceWorning', '设备预警', ''), routerObj('/jh_OldManWristband_DeviceWorning_detail', 'oldman/indexDetail_Device.vue', 'deviceWorning', '设备预警详情', ''), // 组织共建 1040 routerObj('/orgCommunityBuild_index', 'communist/orgCommunityBuild/index.vue', 'orgCommunityBuild_index', '组织共建', ''), routerObj('/orgCommunityBuild_add', 'communist/orgCommunityBuild/add.vue', 'orgCommunityBuild_add', '新增', ''), routerObj('/orgCommunityBuild_edit/:id', 'communist/orgCommunityBuild/edit.vue', 'orgCommunityBuild_edit', '编辑', ''), routerObj('/cor_service', 'communityRun/serviceClassification/index.vue', 'service', '服务分类', ''), routerObj('/cor_clap_see', 'communityRun/clap/see.vue', 'corClapSee', '随手拍活动详情', ''), // ---- 高龄认证管理 ---- routerObj('/advancedList', 'communityAffairs/advancedAge/advancedList.vue', 'advancedList', '高龄老人列表', ''), routerObj('/advancedRecord', 'communityAffairs/advancedAge/advancedRecord.vue', 'advancedList', '高龄老人记录', ''), routerObj('/advancedSta', 'communityAffairs/advancedAge/advancedSta.vue', 'advancedSta', '高龄老人统计', ''), // ---- 养老认证管理 ---- routerObj('/raiseList', 'communityAffairs/raiseOld/raiseList.vue', 'raiseList', '养老人员列表', ''), routerObj('/raiseRecord', 'communityAffairs/raiseOld/raiseRecord.vue', 'raiseRecord', '养老人员记录', ''), routerObj('/raiseSta', 'communityAffairs/raiseOld/raiseSta.vue', 'raiseSta', '养老人员统计', ''), //财务管理 routerObj('/finance_del', 'finance/detail.vue', 'financeDel', '奖励台账', ''), routerObj('/finance_rec', 'finance/record.vue', 'financeRec', '结算记录', ''), // routerObj('/finance_sum', 'finance/sum.vue', 'financeSum', '收益结算', ''), // 社区政务 // --- 高龄认证 routerObj('/affairs_old_certification', 'communityAffairs/oldCertification/authentication.vue', 'affairsCertification', '高龄认证管理', ''), routerObj('/affairs_old_aged', 'communityAffairs/oldCertification/pensionCertification.vue', 'pensionCertification', '养老认证管理', ''), // routerObj('/affairs_old_report', 'communityAffairs/oldCertification/report.vue', 'affairsReport', '生存认证报表', ''), // routerObj('/affairs_old_record', 'communityAffairs/oldCertification/record.vue', 'affairsRecord', '生存认证记录', ''), routerObj('/affairs_old_certificationStatistics/:id?', 'communityAffairs/oldCertification/certificationStatistics.vue', 'certificationStatistics', '认证统计', ''), routerObj('/aff_act', 'communityAffairs/activity/index.vue', 'affAct', '登记活动', ''), routerObj('/aff_vac', 'communityAffairs/vaccines/index.vue', 'affVac', '疫苗登记', ''), routerObj('/aff_ino', 'communityAffairs/inoculation/index.vue', 'affIno', '接种信息管理', ''), // 系统管理 17 routerObj('/sys_user', 'system/user/index.vue', 'sysUser', '系统用户管理', ''), routerObj('/sys_role', 'system/role/index.vue', 'sysRole', '系统权限管理', ''), routerObj('/sys_role_add', 'system/role/add.vue', 'sysRoleAdd', '新增角色', ''), routerObj('/sys_role_edit/:id&:name', 'system/role/edit.vue', 'sysRoleEdit', '编辑角色', ''), routerObj('/sys_config', 'system/config/index.vue', 'sysConfig', '系统配置信息', ''), routerObj('/pc_config', 'system/config/cof.vue', 'pcConfig', '本地配置', ''), routerObj('/sys_log', 'system/log/index.vue', 'sysLog', '操作日志信息', ''), routerObj('/sys_menu', 'system/menu/index.vue', 'sysMenu', '菜单管理', ''), routerObj('/sys_ag', 'system/agreement/index.vue', 'sysAg', '协议列表', ''), routerObj('/sys_ag_edit', 'system/agreement/edit.vue', 'sysAgEdit', '协议编辑', ''), // 安全 routerObj('/sa', 'safety/index.vue', 'sa', '安全工作', ''), // routerObj('/sa_ins', 'safety/inspection/index.vue', 'saIns', '安全巡查', ''), routerObj('/sa_ins_record', 'safety/inspection/record.vue', 'saInsRec', '巡查记录', ''), routerObj('/sa_ins_records/:id', 'safety/inspection/record_detail.vue', 'saInsRecD', '查看', ''), routerObj('/sa_ins_record_add', 'safety/inspection/record_add.vue', 'saInsRecA', '新增', ''), routerObj('/sa_ins_work_edit/:id?/:type?', 'safety/inspection/work_edit.vue', 'saInsEdit', '编辑', ''), routerObj('/sa_ins_work', 'safety/inspection/work.vue', 'saInsWor', '安全工作记录', ''), routerObj('/sa_ins_works/:id', 'safety/inspection/work_detail.vue', 'saInsWorD', '查看', ''), routerObj('/sa_ins_report', 'safety/inspection/report.vue', 'saInsRep', '安全隐患报告', ''), routerObj('/sa_ins_reports/:id', 'safety/inspection/report_detail.vue', 'saInsRepD', '查看', ''), routerObj('/sa_ins_duty', 'safety/inspection/duty.vue', 'saInsDut', '值班表', ''), routerObj('/sa_ins_duty_add/:id?', 'safety/inspection/duty_box.vue', 'saInsDutA', '添加', ''), routerObj('/form_index', 'form/index.vue', 'formIndex', '表单', ''), // routerObj('/sa_ins_duty_edit/:id', 'safety/inspection/duty_edit.vue', 'saInsDutE', '编辑', ''), // 爱心义仓 routerObj('/presentManage', 'store/presentManage.vue', 'presentManage', '物品捐赠管理', ''), routerObj('/presentRecord', 'store/presentRecord.vue', 'presentRecord', '领用记录', ''), routerObj('/useManage', 'store/useManage.vue', 'useManage', '物品领用管理', ''), routerObj('/baseSetting', 'store/baseSetting.vue', 'baseSetting', '义仓基础设置', ''), // 三社 routerObj('/projectManage', 'three/project/projectManage', 'projectManage', '项目管理', ''), routerObj('/addProject', 'three/project/addProject', 'addProject', '新增/编辑项目', ''), routerObj('/addPropagate', 'three/project/addPropagate', 'addPropagate', '新增/编辑宣传管理项目', ''), routerObj('/projectDetails', 'three/project/details', 'projectDetails', '项目详情', ''), routerObj('/categories', 'three/project/categories', 'categories', '项目分类管理', ''), routerObj('/organizeManage', 'three/organize/organizeManage', 'organizeManage', '社会组织管理', ''), routerObj('/addOrganize', 'three/organize/addOrganize', 'addOrganize', '新增社会组织', ''), routerObj('/serveType', 'three/organize/serveType', 'serveType', '服务类型管理', ''), routerObj('/person', 'three/organize/person', 'person', '社会组织人员管理', ''), routerObj('/worker', 'three/organize/worker', 'worker', '社工管理', ''), routerObj('/information', 'three/information', 'information', '基础信息管理', ''), // 房屋租售 routerObj('/rentManage', 'house/rent/rentManage.vue', 'rentManage', '出租房源管理', ''), routerObj('/addRent', 'house/rent/addRent.vue', 'addRent', '出租房源管理', ''), routerObj('/rentDetails', 'house/rent/rentDetails.vue', 'rentDetails', '房屋详情', ''), //五微服务 routerObj('/fiveservice', 'wuwei/service.vue', 'fiveservice', '微服务', ''), routerObj('/forum', 'wuwei/forum.vue', 'forum', '微讲堂', ''), routerObj('/addForum', 'wuwei/addForum.vue', 'addForum', '新增/编辑', ''), routerObj('/team', 'wuwei/team.vue', 'team', '微团队', ''), routerObj('/adjust', 'wuwei/adjust.vue', 'adjust', '微调解', ''), routerObj('/adjustDetails', 'wuwei/adjustDetails.vue', 'adjustDetails', '查看', ''), routerObj('/control', 'wuwei/control.vue', 'control', '微防控', ''), routerObj('/drawList', 'draw/drawList.vue', 'drawList', '抽奖活动', ''), routerObj('/addDraw', 'draw/addDraw.vue', 'addDraw', '抽奖活动操作', ''), routerObj('/drawDetals', 'draw/drawDetals.vue', 'drawDetals', '抽奖活动详情', ''), routerObj('/awardList', 'draw/awardList.vue', 'awardList', '获奖名单', ''), // 纠纷调解 routerObj('/eventType', 'sanShuoHall/eventType/eventType.vue', 'eventType', '事件类型管理', '2610'), routerObj('/industryCenter', 'sanShuoHall/industryCenter/industryCenter.vue', 'industryCenter', '行业分中心管理', '2620'), routerObj('/expertManage', 'sanShuoHall/expert/expert.vue', 'expertManage', '纠纷专家库', '2630'), routerObj('/hallManage', 'sanShuoHall/hallManage/hallManage.vue', 'hallManage', '纠纷调解', '2640'), routerObj('/hallDetails', 'sanShuoHall/hallManage/hallDetails.vue', 'hallDetails', '详情', '2640'), // 物业管理端 //社区宣传 routerObj('/communityPromotion', 'communityPromotion/index.vue', 'communityPromotion', '社区宣传', '2700'), // routerObj('/*', '404/404.vue', 'error', '访问错误') ] }); // 路由拦截,如果没有登录 则返回登录页面 router.beforeEach((to, from, next) => { let token = demo.$session.get('token') || ''; if (to.path === '/login') { next(); } else { if (token) { next(); } else { next('/login'); } } }); export default router;