| | |
| | | if (!permissionRoles) return true |
| | | return roles.some(role => permissionRoles.indexOf(role) >= 0) |
| | | } |
| | | const whiteList = ['/login', '/auth-redirect','/agreement','/register','/productionEquipment','/instrumentData','/oneFromanother','/hiddenDangerTroubleshootingList','/preview','/inspectionNotExist','/send','/Issuedbysuperiors','/oneFromanotherN']// no redirect whitelist |
| | | const whiteList = ['/login', '/auth-redirect','/agreement','/register','/productionEquipment','/instrumentData','/oneFromanother','/hiddenDangerTroubleshootingList','/preview','/inspectionNotExist','/send','/Issuedbysuperiors','/oneFromanotherN','/summaryPotentialSafetyHzards','/safetyHazardAccount','/superiorsSend']// no redirect whitelist |
| | | |
| | | router.beforeEach((to, from, next) => { |
| | | NProgress.start() // start progress bar |
| | |
| | | }, |
| | | { |
| | | path: '/inspectionNotExist', |
| | | // name: '内部举一反三-待自查-不存在', |
| | | // name: '举一反三-待自查-不存在', |
| | | component: () => import('@/views/oneFromanother/inspectionNotExist'), |
| | | // meta: { title: '内部举一反三-待自查-不存在', icon: '' } |
| | | // meta: { title: '举一反三-待自查-不存在', icon: '' } |
| | | hidden: true |
| | | }, |
| | | { |
| | |
| | | component: () => import('@/views/oneFromanotherN'), |
| | | meta: { title: '内部举一反三', icon: '' } |
| | | }, |
| | | { |
| | | path: '/superiorsSend', |
| | | // name: '上级下达隐患-点击发送', |
| | | component: () => import('@/views/Issuedbysuperiors/superiorsSend'), |
| | | // meta: { title: '上级下达隐患-点击发送', icon: '' } |
| | | hidden: true |
| | | }, |
| | | { |
| | | id: 10, |
| | | parentId: 0, |
| | | path: '/summaryPotentialSafetyHzards', |
| | | name: '安全隐患汇总', |
| | | component: () => import('@/views/summaryPotentialSafetyHzards'), |
| | | meta: { title: '安全隐患汇总', icon: '' } |
| | | }, |
| | | { |
| | | id: 11, |
| | | parentId: 0, |
| | | path: '/safetyHazardAccount', |
| | | name: '安全隐患台账', |
| | | component: () => import('@/views/safetyHazardAccount'), |
| | | meta: { title: '安全隐患台账', icon: '' } |
| | | }, |
| | | { |
| | | path: '/superiorsSend', |
| | | // name: '安全隐患台账-查看隐患单', |
| | | component: () => import('@/views/safetyHazardAccount/superiorsSend'), |
| | | // meta: { title: '安全隐患台账-查看隐患单', icon: '' } |
| | | hidden: true |
| | | }, |
| | | |
| | | ] |
| | | } |
| | | ] |
对比新文件 |
| | |
| | | <template> |
| | | |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | name: "superiorsSend" |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | </style> |
对比新文件 |
| | |
| | | <template> |
| | | |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | name: "index" |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | </style> |
对比新文件 |
| | |
| | | <template> |
| | | |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | name: "superiorsSend" |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | </style> |
对比新文件 |
| | |
| | | <template> |
| | | |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | name: "index" |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | </style> |