|
|
@ -1,28 +1,5 @@ |
|
|
|
import type { RouteRecordRaw } from 'vue-router' |
|
|
|
|
|
|
|
import n_debug from 'assets/images/menuIcon/n_debug.svg' |
|
|
|
import n_expe from 'assets/images/menuIcon/n_expe.svg' |
|
|
|
import n_home from 'assets/images/menuIcon/n_home.svg' |
|
|
|
import n_liquid from 'assets/images/menuIcon/n_liquid.svg' |
|
|
|
import n_liquid_config from 'assets/images/menuIcon/n_liquid_config.svg' |
|
|
|
import n_log from 'assets/images/menuIcon/n_log.svg' |
|
|
|
import n_ore from 'assets/images/menuIcon/n_ore.svg' |
|
|
|
import n_point from 'assets/images/menuIcon/n_point.svg' |
|
|
|
import n_ps from 'assets/images/menuIcon/n_ps.svg' |
|
|
|
import n_setting from 'assets/images/menuIcon/n_setting.svg' |
|
|
|
import n_user from 'assets/images/menuIcon/n_user.svg' |
|
|
|
import s_debug from 'assets/images/menuIcon/s_debug.svg' |
|
|
|
import s_expe from 'assets/images/menuIcon/s_expe.svg' |
|
|
|
import s_home from 'assets/images/menuIcon/s_home.svg' |
|
|
|
import s_liquid from 'assets/images/menuIcon/s_liquid.svg' |
|
|
|
import s_liquid_config from 'assets/images/menuIcon/s_liquid_config.svg' |
|
|
|
import s_log from 'assets/images/menuIcon/s_log.svg' |
|
|
|
import s_ore from 'assets/images/menuIcon/s_ore.svg' |
|
|
|
import s_point from 'assets/images/menuIcon/s_point.svg' |
|
|
|
import s_ps from 'assets/images/menuIcon/s_ps.svg' |
|
|
|
import s_setting from 'assets/images/menuIcon/s_setting.svg' |
|
|
|
import s_user from 'assets/images/menuIcon/s_user.svg' |
|
|
|
|
|
|
|
const authRoutes: RouteRecordRaw[] = [ |
|
|
|
{ |
|
|
|
path: '/home', |
|
|
@ -31,8 +8,7 @@ const authRoutes: RouteRecordRaw[] = [ |
|
|
|
meta: { |
|
|
|
isDefault: true, |
|
|
|
title: '加液', |
|
|
|
icon: n_home, |
|
|
|
activeIcon: s_home, |
|
|
|
auth: ['ADMIN', 'STORE', 'USER'], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
@ -42,8 +18,7 @@ const authRoutes: RouteRecordRaw[] = [ |
|
|
|
meta: { |
|
|
|
isDefault: true, |
|
|
|
title: '溶液管理', |
|
|
|
icon: n_liquid_config, |
|
|
|
activeIcon: s_liquid_config, |
|
|
|
auth: ['ADMIN', 'STORE', 'USER'], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
@ -53,8 +28,7 @@ const authRoutes: RouteRecordRaw[] = [ |
|
|
|
meta: { |
|
|
|
isDefault: true, |
|
|
|
title: '加液配方', |
|
|
|
icon: n_liquid, |
|
|
|
activeIcon: s_liquid, |
|
|
|
auth: ['ADMIN', 'STORE', 'USER'], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
@ -64,8 +38,7 @@ const authRoutes: RouteRecordRaw[] = [ |
|
|
|
meta: { |
|
|
|
isDefault: true, |
|
|
|
title: '领液记录', |
|
|
|
icon: n_liquid, |
|
|
|
activeIcon: s_liquid, |
|
|
|
auth: ['ADMIN', 'STORE'], |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
@ -76,31 +49,18 @@ const authRoutes: RouteRecordRaw[] = [ |
|
|
|
meta: { |
|
|
|
isDefault: true, |
|
|
|
title: '审计', |
|
|
|
icon: n_liquid_config, |
|
|
|
activeIcon: s_liquid_config, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: '/channel', |
|
|
|
name: 'channel', |
|
|
|
component: () => import('views/channel/index.vue'), |
|
|
|
meta: { |
|
|
|
isDefault: false, |
|
|
|
title: '通道配置', |
|
|
|
icon: n_ore, |
|
|
|
activeIcon: s_ore, |
|
|
|
auth: ['ADMIN'], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: '/setting', |
|
|
|
name: 'setting', |
|
|
|
redirect: '/setting/user', |
|
|
|
redirect: '/setting/device', |
|
|
|
component: () => import('views/setting/index.vue'), |
|
|
|
meta: { |
|
|
|
isDefault: true, |
|
|
|
title: '设置', |
|
|
|
icon: n_user, |
|
|
|
activeIcon: s_user, |
|
|
|
auth: ['ADMIN', 'STORE', 'USER'], |
|
|
|
}, |
|
|
|
children: [ |
|
|
|
{ |
|
|
@ -121,15 +81,6 @@ const authRoutes: RouteRecordRaw[] = [ |
|
|
|
title: '设备信息', |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: 'handle', |
|
|
|
name: 'handle', |
|
|
|
component: () => import('views/setting/handle/index.vue'), |
|
|
|
meta: { |
|
|
|
isDefault: false, |
|
|
|
title: '手柄绑定', |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
}, |
|
|
|
] |
|
|
|