123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- const routesCommon = [
- /***公共***/
- {
- path: '/common',
- component: () => import('../views/Layout.vue'),
- children: [
- //消息
- {
- path: 'notice',
- component: () => import('../views/Layout.vue'),
- children: [
- //消息列表
- {
- path: '',
- name: 'CommonNotice',
- component: () => import('../views/Common/Notice/Home.vue'),
- meta: {
- requireAuth: false,
- role: [],
- title: '消息列表',
- }
- },
- //消息详情
- {
- path: 'info',
- name: 'CommonNoticeInfo',
- component: () => import('../views/Common/Notice/Info.vue'),
- meta: {
- requireAuth: false,
- role: [],
- title: '消息详情',
- }
- },
- //发送通知
- {
- path: 'send',
- name: 'CommonNoticeSend',
- component: () => import('../views/Common/Notice/Send.vue'),
- meta: {
- requireAuth: false,
- role: [],
- title: '发送通知',
- }
- },
- ]
- },
- //健康
- {
- path: 'health',
- component: () => import('../views/Layout.vue'),
- children: [
- //健康证
- {
- path: 'cert',
- name: 'CommonHealthCert',
- component: () => import('../views/Common/Health/Cert.vue'),
- meta: {
- requireAuth: false,
- role: [],
- title: '健康证',
- }
- },
- //测温记录
- {
- path: 'temperatureRecord',
- name: 'CommonHealthTemperatureRecord',
- component: () => import('../views/Common/Health/TemperatureRecord.vue'),
- meta: {
- requireAuth: false,
- role: [],
- title: '测温记录',
- }
- },
- //测温详情
- {
- path: 'temperatureInfo',
- name: 'CommonHealthTemperatureInfo',
- component: () => import('@/views/Common/Health/TemperatureInfo.vue'),
- meta: {
- requireAuth: false,
- role: [],
- title: '测温详情',
- }
- },
- ]
- },
- //设备
- {
- path: 'device',
- component: () => import('../views/Layout.vue'),
- children: [
- //设备列表
- {
- path: 'list',
- name: 'CommonDeviceList',
- component: () => import('@/views/Common/Device/List.vue'),
- meta: {
- requireAuth: false,
- role: [],
- title: '设备列表',
- }
- },
- //手机开门
- {
- path: 'openDoor',
- name: 'CommonDeviceOpenDoor',
- component: () => import('../views/Common/Device/OpenDoor.vue'),
- meta: {
- requireAuth: false,
- role: [],
- title: '手机开门',
- }
- },
- ],
- }
- ],
- }
- ]
- export default routesCommon
|