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 @@
- + - {{ sendText }} + {{ + sendText + }}
@@ -110,8 +112,8 @@ import { PrevLoading } from "@/utils/loading.js"; import { quotationsList } from "./mock"; import { useLoginApi } from "@/api/login"; import { Message } from "element-ui"; -import { rulesPhone } from '@/com/index.js' -import { getSmsCaptcha, login } from './api' +import { rulesPhone } from "@/com/index.js"; +import { getSmsCaptcha, login } from "./api"; const LoginApi = useLoginApi(); export default { @@ -132,7 +134,7 @@ export default { txt: "", fun: null, }, - sendText: '发送' + sendText: "发送", }; }, computed: { @@ -147,16 +149,15 @@ export default { }, created() { const paragraph = "I think Ruth's dog is cuter than your dog! Ruth"; - console.log(paragraph.replace("Ruth", 'my')); + console.log(paragraph.replace("Ruth", "my")); this.initTime(); }, mounted() { this.initRandomQuotations(); // console.log(localStorage.getItem('user')) - console.log('this.$store.state.loginConfig') - console.log(this.$store.state.loginConfig.loginConfig) - + console.log("this.$store.state.loginConfig"); + console.log(this.$store.state.loginConfig.loginConfig); }, methods: { // 随机语录 @@ -174,71 +175,65 @@ export default { }, // 登录按钮点击 submitForm() { - this.$router.push('/evaluate') - console.log(this.$router) - - if( rulesPhone(this.loginForm.phone) ){ // 判断是否存在手机号验证码 - if(this.loginForm.code){ + console.log(this.$router); + if (rulesPhone(this.loginForm.phone)) { + // 判断是否存在手机号验证码 + if (this.loginForm.code) { this.submit.loading = true; - // 登录发请求获取用户信息 - let obj = {...this.$store.state.loginConfig.loginConfig, ...this.loginForm} - let formData = new FormData() - for( let key in obj){ - formData.append(key, obj[key]) - } - this.$store.dispatch('loginIn', formData).then(res =>{ - this.$message.success('登录成功!') - Session.set('token',res.token_type +' ' + res.access_token) - // this.$router.push('/evaluate') + let obj = { ...this.$store.state.loginConfig.loginConfig, ...this.loginForm }; + let formData = new FormData(); + for (let key in obj) { + formData.append(key, obj[key]); + } + this.$store + .dispatch("loginIn", formData) + .then((res) => { + this.$message.success("登录成功!"); + Session.set("token", res.token_type + " " + res.access_token); // 设置用户信息 学校信息 班级信息 - let user = this.$store.state.user - if(user.campusInfo ){ - if(user.campusInfo.length >= 1){ // 说明只有一个校区 - if(user.campusInfo[0].classInfo){ - this.$store.commit('setSchool', user.campusInfo[0] ); // 设置默认校区 + let user = this.$store.state.user; + if (user.campusInfo) { + if (user.campusInfo.length >= 1) { + // 说明只有一个校区 + if (user.campusInfo[0].classInfo) { + this.$store.commit("setSchool", user.campusInfo[0]); // 设置默认校区 } } - }else { // 未查到校区信息 - + } else { + // 未查到校区信息 } - - this.oldSet() - - }).finally(err =>{ - this.submit.loading = false; - this.sendText = '发送' + this.oldSet(); }) - }else{ - this.$message.error('请输入验证码!') + .finally((err) => { + this.submit.loading = false; + this.sendText = "发送"; + }); + } else { + this.$message.error("请输入验证码!"); } - }else { - this.$message.error('请输入正确的手机号!') + } else { + this.$message.error("请输入正确的手机号!"); } - }, - // 点击发送验证码 + // 点击发送验证码 onClickSendCode() { - if( rulesPhone(this.loginForm.phone)){ - if(this.sendText == '发送' || this.sendText == '重新发送'){ - getSmsCaptcha(this.loginForm.phone).then(res =>{ - this.sendText = '发送成功' - }).catch(err =>{ - this.sendText = '重新发送' - }) + if (rulesPhone(this.loginForm.phone)) { + if (this.sendText == "发送" || this.sendText == "重新发送") { + getSmsCaptcha(this.loginForm.phone) + .then((res) => { + this.sendText = "发送成功"; + }) + .catch((err) => { + this.sendText = "重新发送"; + }); } - }else{ - this.$message.error('请输入正确的手机号!') + } else { + this.$message.error("请输入正确的手机号!"); } }, - // 验证表单 - rulesForm() { - // if(loginForm.phone){ - - // } - // this.loginForm.phone - }, + oldSet() { let defaultRoles = []; let defaultAuthBtnList = []; @@ -278,13 +273,12 @@ export default { `${this.currentTime},${this.$t("message.login.signInText")}` ); }, 300); - } + }, }, destroyed() { clearInterval(this.time.fun); }, - /* setTimeout(() => { let defaultRoles = []; @@ -329,7 +323,6 @@ export default { }, 300); }, 300); */ - }; diff --git a/src/views/rolePermissions/index copy.vue b/src/views/rolePermissions/index copy.vue deleted file mode 100644 index c61e63c..0000000 --- a/src/views/rolePermissions/index copy.vue +++ /dev/null @@ -1,264 +0,0 @@ - - - - -