From 153328daccd7ab7a89d84b87e041de36609adcab Mon Sep 17 00:00:00 2001 From: hezhidong <1531792767@qq.com> Date: Mon, 22 Apr 2024 17:57:12 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E5=88=86=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/admin.js | 1183 +++++++++++----------- src/views/login/index.vue | 117 +-- src/views/rolePermissions/index copy.vue | 264 ----- 3 files changed, 634 insertions(+), 930 deletions(-) delete mode 100644 src/views/rolePermissions/index copy.vue diff --git a/public/admin.js b/public/admin.js index 02724e0..c538f00 100644 --- a/public/admin.js +++ b/public/admin.js @@ -1,667 +1,642 @@ -export default { - "code": 0, - "data": [ +export default { + code: 0, + data: [ { - "path": "/home", - "name": "home", - "component": "home", - "meta": { - "title": "message.router.home", - "isLink": "", - "isHide": false, - "isKeepAlive": true, - "isAffix": true, - "isIframe": false, - "roles": ["admin", "common"], - "icon": "iconfont icon-shouye" - } - }, - { - "path": "/rolePermissions", - "name": "rolePermissions", - "component": "rolePermissions", - "meta": { - "title": "message.router.rolePermissions", - "isLink": "", - "isHide": false, - "isKeepAlive": true, - "isAffix": false, - "isIframe": false, - "roles": ["admin", "common"], - "icon": "el-icon-user" - } - }, - - { - "path": "/MeetingRoomReservation", - "name": "MeetingRoomReservation", - "component": "layout/routerView/parent", - "redirect": "/MeetingRoomReservation/CreateMeetingRoom", - "meta": { - "title": "message.router.MeetingRoomReservation", - "isLink": "", - "isHide": false, - "isKeepAlive": true, - "isAffix": false, - "isIframe": false, - "roles": ["admin", "common"], - "icon": "el-icon-data-line" + path: '/home', + name: 'home', + component: 'home', + meta: { + title: 'message.router.home', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: true, + isIframe: false, + roles: ['admin', 'common'], + icon: 'iconfont icon-shouye', }, - "children": [ - { - "path": "/MeetingRoomReservation/CreateMeetingRoom", - "name": "CreateMeetingRoom", - "component": "MeetingRoomReservation/CreateMeetingRoom", - "meta": { - "title": "message.router.CreateMeetingRoom", - "isLink": "", - "isHide": false, - "isKeepAlive": true, - "isAffix": false, - "isIframe": false, - "roles": ["admin", "common"], - "icon": "el-icon-data-board" - } - }, - { - "path": "/MeetingRoomReservation/CreateFunctionRoom", - "name": "CreateFunctionRoom", - "component": "MeetingRoomReservation/CreateFunctionRoom", - "meta": { - "title": "message.router.CreateFunctionRoom", - "isLink": "", - "isHide": false, - "isKeepAlive": true, - "isAffix": false, - "isIframe": false, - "roles": ["admin", "common"], - "icon": "el-icon-data-analysis" - } - }, - - ] }, { - "path": "/CampusCalendar", - "name": "CampusCalendar", - "component": "CampusCalendar", - "meta": { - "title": "message.router.CampusCalendar", - "isLink": "", - "isHide": false, - "isKeepAlive": true, - "isAffix": false, - "isIframe": false, - "roles": ["admin", "common"], - "icon": "el-icon-notebook-1" - } - }, - - { - "path": "/PrincipalsMailbox", - "name": "PrincipalsMailbox", - "component": "layout/routerView/parent", - "redirect": "/PrincipalsMailbox/LetterList", - "meta": { - "title": "message.router.PrincipalsMailbox", - "isLink": "", - "isHide": false, - "isKeepAlive": true, - "isAffix": false, - "isIframe": false, - "roles": ["admin", "common"], - "icon": "el-icon-message" + path: '/rolePermissions', + name: 'rolePermissions', + component: 'rolePermissions', + meta: { + title: 'message.router.rolePermissions', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'common'], + icon: 'el-icon-user', }, - "children": [ - { - "path": "/PrincipalsMailbox/LetterList", - "name": "LetterList", - "component": "PrincipalsMailbox/LetterList", - "meta": { - "title": "message.router.LetterList", - "isLink": "", - "isHide": false, - "isKeepAlive": true, - "isAffix": false, - "isIframe": false, - "roles": ["admin", "common"], - "icon": "el-icon-files" - } - }, - { - "path": "/PrincipalsMailbox/ResponsiblePersonManagement", - "name": "ResponsiblePersonManagement", - "component": "PrincipalsMailbox/ResponsiblePersonManagement", - "meta": { - "title": "message.router.ResponsiblePersonManagement", - "isLink": "", - "isHide": false, - "isKeepAlive": true, - "isAffix": false, - "isIframe": false, - "roles": ["admin", "common"], - "icon": "el-icon-user" - } - }, - ] }, { - "path": "/StudentSafetyAttendance", - "name": "StudentSafetyAttendance", - "component": "layout/routerView/parent", - "redirect": "/StudentSafetyAttendance/AttendanceForm", - "meta": { - "title": "message.router.StudentSafetyAttendance", - "isLink": "", - "isHide": false, - "isKeepAlive": true, - "isAffix": false, - "isIframe": false, - "roles": ["admin", "common"], - "icon": "el-icon-star-off" + path: '/MeetingRoomReservation', + name: 'MeetingRoomReservation', + component: 'layout/routerView/parent', + redirect: '/MeetingRoomReservation/CreateMeetingRoom', + meta: { + title: 'message.router.MeetingRoomReservation', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'common'], + icon: 'el-icon-data-line', }, - "children": [ + children: [ { - "path": "/StudentSafetyAttendance/AttendanceForm", - "name": "AttendanceForm", - "component": "StudentSafetyAttendance/AttendanceForm", - "meta": { - "title": "message.router.AttendanceForm", - "isLink": "", - "isHide": false, - "isKeepAlive": true, - "isAffix": false, - "isIframe": false, - "roles": ["admin", "common"], - "icon": "el-icon-tickets" - } + path: '/MeetingRoomReservation/CreateMeetingRoom', + name: 'CreateMeetingRoom', + component: 'MeetingRoomReservation/CreateMeetingRoom', + meta: { + title: 'message.router.CreateMeetingRoom', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'common'], + icon: 'el-icon-data-board', + }, }, { - "path": "/StudentSafetyAttendance/SetAttendanceRules", - "name": "SetAttendanceRules", - "component": "StudentSafetyAttendance/SetAttendanceRules", - "meta": { - "title": "message.router.SetAttendanceRules", - "isLink": "", - "isHide": false, - "isKeepAlive": true, - "isAffix": false, - "isIframe": false, - "roles": ["admin", "common"], - "icon": "el-icon-thumb" - } + path: '/MeetingRoomReservation/CreateFunctionRoom', + name: 'CreateFunctionRoom', + component: 'MeetingRoomReservation/CreateFunctionRoom', + meta: { + title: 'message.router.CreateFunctionRoom', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'common'], + icon: 'el-icon-data-analysis', + }, }, - - ] + ], }, - - { - "path": "/morningAndAfternoonInspectionManagement", - "name": "morningAndAfternoonInspectionManagement", - "component": "layout/routerView/parent", - "redirect": "/morningAndAfternoonInspectionManagement/Inspect", - "meta": { - "title": "message.router.morningAndAfternoonInspectionManagement", - "isLink": "", - "isHide": false, - "isKeepAlive": true, - "isAffix": false, - "isIframe": false, - "roles": ["admin", "common"], - "icon": "el-icon-bangzhu" + path: '/CampusCalendar', + name: 'CampusCalendar', + component: 'CampusCalendar', + meta: { + title: 'message.router.CampusCalendar', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'common'], + icon: 'el-icon-notebook-1', }, - "children": [ - { - "path": "/morningAndAfternoonInspectionManagement/Inspect", - "name": "Inspect", - "component": "morningAndAfternoonInspectionManagement/Inspect", - "meta": { - "title": "message.router.Inspect", - "isLink": "", - "isHide": false, - "isKeepAlive": true, - "isAffix": false, - "isIframe": false, - "roles": ["admin", "common"], - "icon": "el-icon-check" - } - }, - { - "path": "/morningAndAfternoonInspectionManagement/Statistics", - "name": "Statistics", - "component": "morningAndAfternoonInspectionManagement/Statistics", - "meta": { - "title": "message.router.Statistics", - "isLink": "", - "isHide": false, - "isKeepAlive": true, - "isAffix": false, - "isIframe": false, - "roles": ["admin", "common"], - "icon": "el-icon-edit-outline" - } - }, - - ] }, - - - - { - "path": "/moralEducationManagement", - "name": "moralEducationManagement", - "component": "layout/routerView/parent", - "redirect": "/moralEducationManagement/MoralEducationEvaluation", - "meta": { - "title": "message.router.moralEducationManagement", - "isLink": "", - "isHide": false, - "isKeepAlive": true, - "isAffix": false, - "isIframe": false, - "roles": ["admin", "common"], - "icon": "el-icon-s-promotion" + path: '/PrincipalsMailbox', + name: 'PrincipalsMailbox', + component: 'layout/routerView/parent', + redirect: '/PrincipalsMailbox/LetterList', + meta: { + title: 'message.router.PrincipalsMailbox', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'common'], + icon: 'el-icon-message', }, - "children": [ + children: [ { - "path": "/moralEducationManagement/ccInformation", - "name": "ccInformation", - "component": "moralEducationManagement/ccInformation", - "meta": { - "title": "message.router.ccInformation", - "isLink": "", - "isHide": false, - "isKeepAlive": true, - "isAffix": false, - "isIframe": false, - "roles": ["admin", "common"], - "icon": "el-icon-edit" - } + path: '/PrincipalsMailbox/LetterList', + name: 'LetterList', + component: 'PrincipalsMailbox/LetterList', + meta: { + title: 'message.router.LetterList', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'common'], + icon: 'el-icon-files', + }, }, { - "path": "/moralEducationManagement/moralEducationEvaluation", - "name": "moralEducationEvaluation", - "component": "moralEducationManagement/moralEducationEvaluation", - "meta": { - "title": "message.router.MoralEducationEvaluation", - "isLink": "", - "isHide": false, - "isKeepAlive": true, - "isAffix": false, - "isIframe": false, - "roles": ["admin", "common"], - "icon": "el-icon-check" - } - } - - - ] + path: '/PrincipalsMailbox/ResponsiblePersonManagement', + name: 'ResponsiblePersonManagement', + component: 'PrincipalsMailbox/ResponsiblePersonManagement', + meta: { + title: 'message.router.ResponsiblePersonManagement', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'common'], + icon: 'el-icon-user', + }, + }, + ], }, { - "path": "/InterestClass", - "name": "InterestClass", - "component": "layout/routerView/parent", - "redirect": "/InterestClass/InterestClassEntry", - "meta": { - "title": "message.router.InterestClass", - "isLink": "", - "isHide": false, - "isKeepAlive": true, - "isAffix": false, - "isIframe": false, - "roles": ["admin", "common"], - "icon": "el-icon-basketball" + path: '/StudentSafetyAttendance', + name: 'StudentSafetyAttendance', + component: 'layout/routerView/parent', + redirect: '/StudentSafetyAttendance/AttendanceForm', + meta: { + title: 'message.router.StudentSafetyAttendance', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'common'], + icon: 'el-icon-star-off', }, - "children": [ + children: [ { - "path": "/InterestClass/InterestClassEntry", - "name": "InterestClassEntry", - "component": "InterestClass/InterestClassEntry", - "meta": { - "title": "message.router.InterestClassEntry", - "isLink": "", - "isHide": false, - "isKeepAlive": true, - "isAffix": false, - "isIframe": false, - "roles": ["admin", "common"], - "icon": "el-icon-files" - } + path: '/StudentSafetyAttendance/AttendanceForm', + name: 'AttendanceForm', + component: 'StudentSafetyAttendance/AttendanceForm', + meta: { + title: 'message.router.AttendanceForm', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'common'], + icon: 'el-icon-tickets', + }, }, { - "path": "/InterestClass/InterestCourseManagement", - "name": "InterestCourseManagement", - "component": "InterestClass/InterestCourseManagement", - "meta": { - "title": "message.router.InterestCourseManagement", - "isLink": "", - "isHide": false, - "isKeepAlive": true, - "isAffix": false, - "isIframe": false, - "roles": ["admin", "common"], - "icon": "el-icon-files" - } + path: '/StudentSafetyAttendance/SetAttendanceRules', + name: 'SetAttendanceRules', + component: 'StudentSafetyAttendance/SetAttendanceRules', + meta: { + title: 'message.router.SetAttendanceRules', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'common'], + icon: 'el-icon-thumb', + }, }, - { - "path": "/InterestClass/abnormalStudentManagement", - "name": "abnormalStudentManagement", - "component": "InterestClass/abnormalStudentManagement", - "meta": { - "title": "message.router.abnormalStudentManagement", - "isLink": "", - "isHide": false, - "isKeepAlive": true, - "isAffix": false, - "isIframe": false, - "roles": ["admin", "common"], - "icon": "el-icon-warning-outline" - } - }, - - - ] + ], }, - { - "path": "/PaymentSystem", - "name": "PaymentSystem", - "component": "layout/routerView/parent", - "redirect": "/PaymentSystem/CreatePayment", - "meta": { - "title": "message.router.PaymentSystem", - "isLink": "", - "isHide": false, - "isKeepAlive": true, - "isAffix": false, - "isIframe": false, - "roles": ["admin", "common"], - "icon": "el-icon-connection" + path: '/morningAndAfternoonInspectionManagement', + name: 'morningAndAfternoonInspectionManagement', + component: 'layout/routerView/parent', + redirect: '/morningAndAfternoonInspectionManagement/Inspect', + meta: { + title: 'message.router.morningAndAfternoonInspectionManagement', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'common'], + icon: 'el-icon-bangzhu', }, - "children": [ + children: [ { - "path": "/PaymentSystem/CreatePayment", - "name": "CreatePayment", - "component": "PaymentSystem/CreatePayment", - "meta": { - "title": "message.router.CreatePayment", - "isLink": "", - "isHide": false, - "isKeepAlive": true, - "isAffix": false, - "isIframe": false, - "roles": ["admin", "common"], - "icon": "el-icon-document" - } + path: '/morningAndAfternoonInspectionManagement/Inspect', + name: 'Inspect', + component: 'morningAndAfternoonInspectionManagement/Inspect', + meta: { + title: 'message.router.Inspect', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'common'], + icon: 'el-icon-check', + }, }, { - "path": "/PaymentSystem/PaymentDetails", - "name": "PaymentDetails", - "component": "PaymentSystem/PaymentDetails", - "meta": { - "title": "message.router.PaymentDetails", - "isLink": "", - "isHide": false, - "isKeepAlive": true, - "isAffix": false, - "isIframe": false, - "roles": ["admin", "common"], - "icon": "el-icon-tickets" - } + path: '/morningAndAfternoonInspectionManagement/Statistics', + name: 'Statistics', + component: 'morningAndAfternoonInspectionManagement/Statistics', + meta: { + title: 'message.router.Statistics', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'common'], + icon: 'el-icon-edit-outline', + }, }, - - ] + ], }, { - "path": "/SmartVisitors", - "name": "SmartVisitors", - "component": "layout/routerView/parent", - "redirect": "/SmartVisitors/HomeSchoolAddressBook", - "meta": { - "title": "message.router.SmartVisitors", - "isLink": "", - "isHide": false, - "isKeepAlive": true, - "isAffix": false, - "isIframe": false, - "roles": ["admin", "common"], - "icon": "el-icon-s-opportunity" + path: '/moralEducationManagement', + name: 'moralEducationManagement', + component: 'layout/routerView/parent', + redirect: '/moralEducationManagement/MoralEducationEvaluation', + meta: { + title: 'message.router.moralEducationManagement', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'common'], + icon: 'el-icon-s-promotion', }, - "children": [ - + children: [ { - "path": "/SmartVisitors/VisitorsRecord", - "name": "VisitorsRecord", - "component": "SmartVisitors/VisitorsRecord", - "meta": { - "title": "message.router.VisitorsRecord", - "isLink": "", - "isHide": false, - "isKeepAlive": true, - "isAffix": false, - "isIframe": false, - "roles": ["admin", "common"], - "icon": "el-icon-edit-outline" - } + path: '/moralEducationManagement/ccInformation', + name: 'ccInformation', + component: 'moralEducationManagement/ccInformation', + meta: { + title: 'message.router.ccInformation', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'common'], + icon: 'el-icon-edit', + }, }, - - ] - }, - { - "path": "/deviceManagement", - "name": "deviceManagement", - "component": "deviceManagement", - "meta": { - "title": "message.router.deviceManagement", - "isLink": "", - "isHide": false, - "isKeepAlive": true, - "isAffix": false, - "isIframe": false, - "roles": ["admin", "common"], - "icon": "el-icon-cpu" - } - }, - { - "path": "/attendanceMachineEquipmentManagement", - "name": "attendanceMachineEquipmentManagement", - "component": "attendanceMachineEquipmentManagement", - "meta": { - "title": "message.router.attendanceMachineEquipmentManagement", - "isLink": "", - "isHide": false, - "isKeepAlive": true, - "isAffix": false, - "isIframe": false, - "roles": ["admin", "common"], - "icon": "el-icon-alarm-clock" - } + { + path: '/moralEducationManagement/moralEducationEvaluation', + name: 'moralEducationEvaluation', + component: 'moralEducationManagement/moralEducationEvaluation', + meta: { + title: 'message.router.MoralEducationEvaluation', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'common'], + icon: 'el-icon-check', + }, + }, + ], }, - - { - "path": "/growthAlbumSection", - "name": "growthAlbumSection", - "component": "layout/routerView/parent", - "redirect": "/growthAlbumSection/basicInFormation", - "meta": { - "title": "message.router.growthAlbumSection", - "isLink": "", - "isHide": false, - "isKeepAlive": true, - "isAffix": false, - "isIframe": false, - "roles": ["admin", "common"], - "icon": "el-icon-brush" + path: '/InterestClass', + name: 'InterestClass', + component: 'layout/routerView/parent', + redirect: '/InterestClass/InterestClassEntry', + meta: { + title: 'message.router.InterestClass', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'common'], + icon: 'el-icon-basketball', }, - "children": [ + children: [ { - "path": "/growthAlbumSection/dataItemConfiguration", - "name": "dataItemConfiguration", - "component": "growthAlbumSection/dataItemConfiguration", - "meta": { - "title": "message.router.dataItemConfiguration", - "isLink": "", - "isHide": false, - "isKeepAlive": true, - "isAffix": false, - "isIframe": false, - "roles": ["admin", "common"], - "icon": "el-icon-setting" - } + path: '/InterestClass/InterestClassEntry', + name: 'InterestClassEntry', + component: 'InterestClass/InterestClassEntry', + meta: { + title: 'message.router.InterestClassEntry', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'common'], + icon: 'el-icon-files', + }, }, { - "path": "/growthAlbumSection/basicInFormation", - "name": "basicInFormation", - "component": "growthAlbumSection/basicInFormation", - "meta": { - "title": "message.router.basicInFormation", - "isLink": "", - "isHide": false, - "isKeepAlive": true, - "isAffix": false, - "isIframe": false, - "roles": ["admin", "common"], - "icon": "el-icon-wallet" - } + path: '/InterestClass/InterestCourseManagement', + name: 'InterestCourseManagement', + component: 'InterestClass/InterestCourseManagement', + meta: { + title: 'message.router.InterestCourseManagement', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'common'], + icon: 'el-icon-files', + }, }, { - "path": "/growthAlbumSection/setScoreRules", - "name": "setScoreRules", - "component": "growthAlbumSection/setScoreRules", - "meta": { - "title": "message.router.setScoreRules", - "isLink": "", - "isHide": false, - "isKeepAlive": true, - "isAffix": false, - "isIframe": false, - "roles": ["admin", "common"], - "icon": "el-icon-link" - } + path: '/InterestClass/abnormalStudentManagement', + name: 'abnormalStudentManagement', + component: 'InterestClass/abnormalStudentManagement', + meta: { + title: 'message.router.abnormalStudentManagement', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'common'], + icon: 'el-icon-warning-outline', + }, }, - - - - { - "path": "/growthAlbumSection/pictureSetConfiguration", - "name": "pictureSetConfiguration", - "component": "growthAlbumSection/pictureSetConfiguration", - "meta": { - "title": "message.router.pictureSetConfiguration", - "isLink": "", - "isHide": false, - "isKeepAlive": true, - "isAffix": false, - "isIframe": false, - "roles": ["admin", "common"], - "icon": "el-icon-picture-outline" - } - }, - { - "path": "/growthAlbumSection/schoolAlbumManagement", - "name": "schoolAlbumManagement", - "component": "growthAlbumSection/schoolAlbumManagement", - "meta": { - "title": "message.router.schoolAlbumManagement", - "isLink": "", - "isHide": false, - "isKeepAlive": true, - "isAffix": false, - "isIframe": false, - "roles": ["admin", "common"], - "icon": "el-icon-wallet" - } - }, - - ] + ], }, + { - "path": "/facultyInformation", - "name": "facultyInformation", - "component": "facultyInformation", - "meta": { - "title": "message.router.facultyInformation", - "isLink": "", - "isHide": false, - "isKeepAlive": true, - "isAffix": false, - "isIframe": false, - "roles": ["admin", "common"], - "icon": "el-icon-magic-stick" - } - }, - { - "path": "/recipe", - "name": "recipe", - "component": "recipe", - "meta": { - "title": "message.router.recipe", - "isLink": "", - "isHide": false, - "isKeepAlive": true, - "isAffix": true, - "isIframe": false, - "roles": ["admin", "common"], - "icon": "el-icon-s-opportunity" - } - }, - { - "path": "/evaluate", - "name": "evaluate", - "component": "evaluate", - "meta": { - "title": "message.router.evaluate", - "isLink": "", - "isHide": false, - "isKeepAlive": true, - "isAffix": true, - "isIframe": false, - "roles": ["admin", "common"], - "icon": "el-icon-connection" + path: '/PaymentSystem', + name: 'PaymentSystem', + component: 'layout/routerView/parent', + redirect: '/PaymentSystem/CreatePayment', + meta: { + title: 'message.router.PaymentSystem', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'common'], + icon: 'el-icon-connection', }, - + children: [ + { + path: '/PaymentSystem/CreatePayment', + name: 'CreatePayment', + component: 'PaymentSystem/CreatePayment', + meta: { + title: 'message.router.CreatePayment', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'common'], + icon: 'el-icon-document', + }, + }, + { + path: '/PaymentSystem/PaymentDetails', + name: 'PaymentDetails', + component: 'PaymentSystem/PaymentDetails', + meta: { + title: 'message.router.PaymentDetails', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'common'], + icon: 'el-icon-tickets', + }, + }, + ], + }, + + { + path: '/SmartVisitors', + name: 'SmartVisitors', + component: 'layout/routerView/parent', + redirect: '/SmartVisitors/HomeSchoolAddressBook', + meta: { + title: 'message.router.SmartVisitors', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'common'], + icon: 'el-icon-s-opportunity', + }, + children: [ + { + path: '/SmartVisitors/VisitorsRecord', + name: 'VisitorsRecord', + component: 'SmartVisitors/VisitorsRecord', + meta: { + title: 'message.router.VisitorsRecord', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'common'], + icon: 'el-icon-edit-outline', + }, + }, + ], }, { - "path": "/classList/classList", - "name": "classList", - "component": "classList/classList", - "meta": { - "title": "message.router.classList", - "isLink": "", - "isHide": false, - "isKeepAlive": true, - "isAffix": true, - "isIframe": false, - "roles": ["admin", "common"], - "icon": "el-icon-coordinate" - } + path: '/deviceManagement', + name: 'deviceManagement', + component: 'deviceManagement', + meta: { + title: 'message.router.deviceManagement', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'common'], + icon: 'el-icon-cpu', + }, }, { - "path": "/department", - "name": "department", - "component": "department", - "meta": { - "title": "message.router.department", - "isLink": "", - "isHide": false, - "isKeepAlive": true, - "isAffix": true, - "isIframe": false, - "roles": ["admin", "common"], - "icon": "el-icon-collection" - } + path: '/attendanceMachineEquipmentManagement', + name: 'attendanceMachineEquipmentManagement', + component: 'attendanceMachineEquipmentManagement', + meta: { + title: 'message.router.attendanceMachineEquipmentManagement', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'common'], + icon: 'el-icon-alarm-clock', + }, }, - - - - ] -} + + { + path: '/growthAlbumSection', + name: 'growthAlbumSection', + component: 'layout/routerView/parent', + redirect: '/growthAlbumSection/basicInFormation', + meta: { + title: 'message.router.growthAlbumSection', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'common'], + icon: 'el-icon-brush', + }, + children: [ + { + path: '/growthAlbumSection/dataItemConfiguration', + name: 'dataItemConfiguration', + component: 'growthAlbumSection/dataItemConfiguration', + meta: { + title: 'message.router.dataItemConfiguration', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'common'], + icon: 'el-icon-setting', + }, + }, + { + path: '/growthAlbumSection/basicInFormation', + name: 'basicInFormation', + component: 'growthAlbumSection/basicInFormation', + meta: { + title: 'message.router.basicInFormation', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'common'], + icon: 'el-icon-wallet', + }, + }, + { + path: '/growthAlbumSection/setScoreRules', + name: 'setScoreRules', + component: 'growthAlbumSection/setScoreRules', + meta: { + title: 'message.router.setScoreRules', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'common'], + icon: 'el-icon-link', + }, + }, + + { + path: '/growthAlbumSection/pictureSetConfiguration', + name: 'pictureSetConfiguration', + component: 'growthAlbumSection/pictureSetConfiguration', + meta: { + title: 'message.router.pictureSetConfiguration', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'common'], + icon: 'el-icon-picture-outline', + }, + }, + { + path: '/growthAlbumSection/schoolAlbumManagement', + name: 'schoolAlbumManagement', + component: 'growthAlbumSection/schoolAlbumManagement', + meta: { + title: 'message.router.schoolAlbumManagement', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'common'], + icon: 'el-icon-wallet', + }, + }, + ], + }, + { + path: '/facultyInformation', + name: 'facultyInformation', + component: 'facultyInformation', + meta: { + title: 'message.router.facultyInformation', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'common'], + icon: 'el-icon-magic-stick', + }, + }, + { + path: '/recipe', + name: 'recipe', + component: 'recipe', + meta: { + title: 'message.router.recipe', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'common'], + icon: 'el-icon-s-opportunity', + }, + }, + { + path: '/evaluate', + name: 'evaluate', + component: 'evaluate', + meta: { + title: 'message.router.evaluate', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'common'], + icon: 'el-icon-connection', + }, + }, + { + path: '/classList/classList', + name: 'classList', + component: 'classList/classList', + meta: { + title: 'message.router.classList', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'common'], + icon: 'el-icon-coordinate', + }, + }, + { + path: '/department', + name: 'department', + component: 'department', + meta: { + title: 'message.router.department', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'common'], + icon: 'el-icon-collection', + }, + }, + ], +}; diff --git a/src/views/login/index.vue b/src/views/login/index.vue index a39f693..9ff8502 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -63,9 +63,11 @@