| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757 |
- export const routes = [
- {
- path: '/user',
- // component: '../layouts/UserLayout',
- routes: [
- {
- name: 'login',
- path: '/user/login',
- component: './user/login2',
- },
- ],
- },
- {
- path: '/',
- component: '../layouts/SecurityLayout',
- routes: [
- {
- path: '/',
- component: '../layouts/BasicLayout',
- Routes: ['src/pages/Authorized'],
- routes: [
- {
- path: '/',
- redirect: '/analysis',
- },
- // {
- // name: '数据表格',
- // path: '/demo',
- // icon: 'table',
- // component: './demo'
- // },
- {
- name: '统计分析',
- path: '/analysis',
- icon: 'dashboard',
- tenant: ['admin', 'member'],
- iconfont: 'icon-tongjifenxi',
- component: './analysis',
- },
- {
- path: 'system',
- name: '系统设置',
- iconfont: 'icon-shezhi',
- icon: 'setting',
- tenant: ['admin', 'member'],
- authority: [
- 'user',
- 'permission',
- 'organization',
- 'dictionary',
- 'open-api',
- 'admin',
- 'system-config',
- 'dimension',
- 'tenant-side-manager',
- 'tenant-manager',
- ],
- routes: [
- {
- path: '/system/user',
- name: '用户管理',
- iconfont: 'icon-yonghuguanli',
- icon: 'user',
- authority: ['user', 'admin'],
- tenant: ['admin', 'member'],
- component: './system/users',
- },
- {
- path: '/system/permission',
- name: '权限管理',
- icon: 'key',
- iconfont: 'icon-quanxianguanli',
- authority: ['permission', 'admin'],
- component: './system/permission',
- },
- {
- path: '/system/open-api',
- name: '第三方平台',
- icon: 'share-alt',
- iconfont: 'icon-APIguanli',
- authority: ['open-api', 'admin'],
- version: 'pro',
- component: './system/open-api',
- },
- // {
- // path: '/system/org',
- // name: '机构管理',
- // icon: 'apartment',
- // iconfont: 'icon-jigoubianzhi',
- // authority: ['organization', 'admin'],
- // component: './system/org',
- // },
- {
- path: '/system/org-chart',
- name: '机构管理',
- icon: 'apartment',
- authority: ['organization', 'admin'],
- tenant: ['admin', 'member'],
- component: './system/org-chart',
- },
- {
- path: '/system/role',
- name: '角色管理',
- icon: 'usergroup-add',
- iconfont: 'icon-jiaoseguanli1',
- authority: ['dimension', 'admin'],
- component: './system/role',
- },
- {
- path: '/system/config',
- name: '系统配置',
- icon: 'tool',
- iconfont: 'icon-xitongpeizhi',
- authority: ['system-config', 'admin'],
- component: './system/config',
- },
- {
- path: '/system/tenant',
- name: '租户管理',
- icon: 'team',
- iconfont: 'icon-erji-zuhuguanli',
- tenant: ['admin'],
- authority: ['tenant-side-manager', 'tenant-manager', 'admin'],
- version: 'pro',
- component: './system/tenant',
- },
- {
- hideInMenu: true,
- path: '/system/tenant/detail/:id',
- name: '租户详情',
- tenant: ['admin'],
- authority: ['tenant-side-manager', 'tenant-manager', 'admin'],
- // version: 'pro',
- component: './system/tenant/detail',
- },
- {
- path:'/system/datasource',
- name:'数据源管理',
- icon:'database',
- authority:['datasource-config','admin'],
- version:'pro',
- component:'./system/datasource'
- }
- ],
- },
- {
- path: 'device',
- name: '设备管理',
- icon: 'box-plot',
- tenant: ['admin', 'member'],
- iconfont: 'icon-device-manage',
- authority: [
- 'device-product',
- 'device-instance',
- 'device-category',
- 'device-group',
- 'device-gateway',
- 'geo-manager',
- 'firmware-manager',
- 'device-alarm',
- 'admin',
- ],
- routes: [
- {
- path: '/device/product',
- name: '产品',
- icon: 'laptop',
- iconfont: 'icon-shebei',
- tenant: ['admin', 'member'],
- authority: ['device-product', 'admin'],
- component: './device/product',
- },
- {
- path: '/device/product-category',
- name: '产品分类',
- icon: 'appstore',
- iconfont: 'icon-shebei',
- tenant: ['admin', 'member'],
- // version: 'pro',
- authority: ['device-category', 'admin'],
- component: './device/product-category',
- },
- {
- hideInMenu: true,
- path: '/device/product/save/:id',
- name: '产品详情',
- tenant: ['admin', 'member'],
- iconfont: 'icon-shebei',
- authority: ['device-product', 'admin'],
- component: './device/product/save/Detail',
- },
- {
- hideInMenu: true,
- path: '/device/product/add',
- name: '新建产品',
- tenant: ['admin', 'member'],
- iconfont: 'icon-shebei',
- authority: ['device-product', 'admin'],
- component: './device/product/save/add/index.tsx',
- },
- {
- path: '/device/instance',
- name: '设备',
- icon: 'desktop',
- tenant: ['admin', 'member'],
- iconfont: 'icon-shebei1',
- authority: ['device-instance', 'admin'],
- component: './device/instance',
- },
- {
- hideInMenu: true,
- path: '/device/instance/save/:id',
- name: '设备详情',
- tenant: ['admin', 'member'],
- iconfont: 'icon-shebei1',
- authority: ['device-instance', 'admin'],
- component: './device/instance/editor',
- },
- {
- hideInMenu: true,
- path: '/device/group',
- name: '分组',
- icon: 'gold',
- tenant: ['admin', 'member'],
- authority: ['device-group', 'admin'],
- // version: 'pro',
- iconfont: 'icon-shebeifenzuguanli',
- component: './device/group',
- },
- {
- // hideInMenu: true,
- path: '/device/tree',
- name: '分组',
- tenant: ['admin', 'member'],
- authority: ['device-group', 'admin'],
- // version: 'pro',
- icon: 'gold',
- component: './device/tree',
- },
- {
- hideInMenu: true,
- path: '/device/tree/detail',
- name: '分组详情',
- authority: ['device-group', 'admin'],
- component: './device/tree/DeviceTree',
- },
- {
- hideInMenu: true,
- path: '/device/instance/add',
- name: '添加设备',
- tenant: ['admin', 'member'],
- authority: ['device-instance', 'admin'],
- iconfont: 'icon-shebeifenzuguanli',
- component: './device/instance/editor',
- },
- {
- path: '/device/gateway',
- name: '网关',
- icon: 'global',
- tenant: ['admin', 'member'],
- iconfont: 'icon-Group',
- authority: ['device-gateway', 'admin'],
- component: './device/gateway',
- },
- {
- path: '/device/location',
- name: '地理位置',
- icon: 'compass',
- tenant: ['admin'],
- authority: ['geo-manager', 'admin'],
- // version: 'pro',
- iconfont: 'icon-diliweizhi',
- component: './device/location',
- },
- {
- path: '/device/firmware',
- name: '固件升级',
- icon: 'cloud-sync',
- tenant: ['admin', 'member'],
- authority: ['firmware-manager', 'admin'],
- // version: 'pro',
- iconfont: 'icon-gujianshengji',
- component: './device/firmware',
- },
- {
- hideInMenu: true,
- tenant: ['admin', 'member'],
- path: '/device/firmware/save/:id',
- name: '固件详情',
- authority: ['firmware-manager', 'admin'],
- iconfont: 'icon-gujianshengji',
- component: './device/firmware/editor',
- },
- {
- path: '/device/alarm',
- name: '设备告警',
- icon: 'alert',
- tenant: ['admin', 'member'],
- authority: ['device-alarm', 'admin'],
- component: './device/alarmlog',
- },
- {
- path:'/device/command',
- name:'指令下发',
- icon:'arrow-down',
- authority:['device-msg-task','admin'],
- // version: 'pro',
- component:'./device/command'
- }
- ],
- },
- {
- path: 'network',
- name: '设备接入',
- iconfont: 'icon-shebei',
- icon: 'login',
- authority: [
- 'certificate',
- 'network-config',
- 'device-gateway',
- 'protocol-supports',
- 'opc-client',
- 'admin',
- ],
- routes: [
- {
- path: '/network/certificate',
- name: '证书管理',
- icon: 'book',
- iconfont: 'icon-zhengshuguanli-',
- authority: ['certificate', 'admin'],
- component: './network/certificate',
- },
- {
- path: '/network/protocol',
- name: '协议管理',
- icon: 'wallet',
- iconfont: 'icon-xieyiguanli',
- authority: ['protocol-supports', 'admin'],
- component: './device/protocol',
- },
- {
- path: '/network/type',
- name: '网络组件',
- icon: 'deployment-unit',
- iconfont: 'icon-zujian',
- authority: ['network-config', 'admin'],
- component: './network/type',
- },
- {
- path: '/network/gateway',
- name: '设备网关',
- icon: 'cloud-server',
- iconfont: 'icon-shebei',
- authority: ['device-gateway', 'admin'],
- component: './network/gateway',
- },
- {
- path: '/network/opcua',
- name: 'OPC UA',
- icon: 'file-ppt',
- iconfont: 'icon-fileppt',
- authority: ['opc-client', 'admin'],
- component: './network/opc-ua',
- },
- ],
- },
- {
- path: 'notice',
- name: '通知管理',
- iconfont: 'icon-tongzhiguanli',
- icon: 'message',
- tenant: ['admin', 'member'],
- authority: ['template', 'notifier', 'admin'],
- routes: [
- {
- path: '/notice/config',
- name: '通知配置',
- icon: 'alert',
- tenant: ['admin', 'member'],
- iconfont: 'icon-SUI_tongzhipeizhi',
- authority: ['notifier', 'admin'],
- component: './notice/config',
- },
- {
- path: '/notice/template',
- name: '通知模版',
- icon: 'bell',
- tenant: ['admin', 'member'],
- iconfont: 'icon-tongzhiguanli',
- authority: ['template', 'admin'],
- component: './notice/template',
- },
- ],
- },
- {
- path: 'rule-engine',
- name: '规则引擎',
- icon: 'retweet',
- iconfont: 'icon-guizeyinqing',
- // tenant: ['admin', 'member'],
- authority: ['rule-instance', 'rule-scene', 'admin'],
- routes: [
- // {
- // path: '/rule-engine/model',
- // name: '规则模型',
- // icon: 'gateway',
- // tenant: ['admin'],
- // iconfont: 'icon-xian-buguize-moxing',
- // authority: ['rule-model', 'admin'],
- // version: 'pro',
- // component: './rule-engine/model',
- // },
- {
- path: '/rule-engine/instance',
- name: '规则实例',
- icon: 'block',
- tenant: ['admin', 'member'],
- iconfont: 'icon-hangweiguizeshili',
- authority: ['rule-instance', 'admin'],
- version: 'pro',
- component: './rule-engine/instance',
- },
- {
- path: '/rule-engine/sqlRule',
- name: '数据转发',
- icon: 'rise',
- tenant: ['admin', 'member'],
- iconfont: 'icon-datatransfer',
- authority: ['rule-instance', 'admin'],
- component: './rule-engine/sqlRule',
- },
- {
- path: '/rule-engine/scene',
- name: '场景联动',
- icon: 'codeSandbox',
- // authority: ['rule-scene', 'admin'],
- // version: 'pro',
- component: './rule-engine/scene',
- },
- // {
- // path: '/rule-engine/email',
- // name: 'email',
- // icon: 'mail',
- // component: './rule-engine/email',
- // },
- // {
- // path: '/rule-engine/sms',
- // name: 'sms',
- // icon: 'message',
- // component: './rule-engine/sms',
- // },
- ],
- },
- {
- path: 'data-screen',
- name: '可视化',
- icon: 'desktop',
- tenant: ['admin'],
- iconfont: 'icon-icon-',
- // version: 'pro',
- authority: ['big-screen', 'admin', 'vis-configuration'],
- routes: [
- {
- path: '/data-screen/category',
- name: '分类管理',
- icon: 'appstore',
- tenant: ['admin'],
- iconfont: 'icon-category-search-fill',
- authority: ['big-screen', 'admin'],
- // version: 'pro',
- component: './data-screen/category',
- },
- {
- path: '/data-screen/screen',
- name: '大屏管理',
- icon: 'fund',
- tenant: ['admin', 'big-screen'],
- iconfont: 'icon-screen',
- authority: ['big-screen', 'admin'],
- // version: 'pro',
- component: './data-screen/screen',
- },
- {
- path: '/data-screen/configuration',
- name: '组态管理',
- icon: 'fund',
- iconfont: 'icon-screen',
- authority: ['vis-configuration', 'admin'],
- // version: 'pro',
- component: './data-screen/visConfiguration',
- },
- {
- path: '/data-screen/node',
- name: '组件管理',
- icon: 'fund',
- component: './data-screen/node',
- },
- ],
- },
- {
- path: 'simulator',
- name: '模拟测试',
- icon: 'bug',
- // version: 'pro',
- authority: ['network-simulator', 'admin'],
- routes: [
- {
- path: '/simulator/device',
- name: '设备模拟器',
- // version: 'pro',
- icon: 'paper-clip',
- authority: ['network-simulator', 'admin'],
- component: './simulator/device',
- },
- ],
- },
- {
- path: 'logger',
- name: '日志管理',
- icon: 'calendar',
- iconfont: 'icon-rizhiguanli',
- authority: ['system-logger', 'access-logger', 'admin'],
- routes: [
- {
- path: '/logger/access',
- name: '访问日志',
- icon: 'dash',
- iconfont: 'icon-yonghufangwenrizhi',
- authority: ['access-logger', 'admin'],
- component: './logger/access',
- },
- {
- path: '/logger/system',
- name: '系统日志',
- icon: 'ordered-list',
- iconfont: 'icon-xitongrizhi',
- authority: ['system-logger', 'admin'],
- component: './logger/system',
- },
- ],
- },
- {
- path: 'cloud',
- name: '云云对接',
- icon: 'cloud',
- // version: 'pro',
- authority: ['dueros-product', 'aliyun-bridge', 'onenet-product', 'ctwing-product', 'admin'],
- routes: [
- {
- path: '/cloud/duer',
- name: 'DuerOS',
- // version: 'pro',
- authority: ['dueros-product', 'admin'],
- icon: 'cloud',
- component: './cloud/dueros',
- },
- {
- path: '/cloud/aliyun',
- name: '阿里云',
- version: 'pro',
- authority: ['aliyun-bridge', 'admin'],
- icon: 'aliyun',
- component: './cloud/aliyun',
- },
- {
- path: '/cloud/onenet',
- name: '移动OneNet',
- // version: 'pro',
- authority: ['onenet-product', 'admin'],
- icon: 'mobile',
- component: './cloud/onenet',
- },
- {
- path: '/cloud/ctwing',
- name: '电信CTWing',
- // version: 'pro',
- authority: ['ctwing-product', 'admin'],
- icon: 'phone',
- component: './cloud/ctwing',
- },
- ],
- },
- {
- path: 'media',
- name: '视频网关',
- icon: 'youtube',
- // version: 'pro',
- authority: [
- 'gb28181-gateway',
- 'media-gateway',
- 'media-channel',
- 'media-server',
- 'media-stream',
- 'gb28181-cascade',
- 'admin'
- ],
- routes: [
- {
- path: '/media/basic',
- name: '基本配置',
- // version: 'pro',
- authority: ['gb28181-gateway', 'media-gateway', 'media-server', 'admin'],
- icon: 'video-camera',
- component: './media/basic',
- },
- // {
- // path: '/media/media-server',
- // name: '流媒体服务',
- // version: 'pro',
- // authority: ['media-server','admin'],
- // icon: 'video-camera',
- // component: './media/media-server',
- // },
- // {
- // path: '/media/gateway',
- // name: '信令服务',
- // version: 'pro',
- // authority: ['gb28181-gateway','admin'],
- // icon: 'gateway',
- // component: './media/gateway',
- // },
- {
- path: '/media/device',
- name: '视频设备',
- // version: 'pro',
- authority: ['media-device', 'admin'],
- icon: 'gateway',
- component: './media/device',
- },
- {
- hideInMenu: true,
- path: '/media/device/channel/:id',
- name: '通道列表',
- // version: 'pro',
- tenant: ['admin', 'member'],
- iconfont: 'icon-shebei1',
- component: './media/device/channel',
- },
- {
- path: '/media/reveal',
- name: '分屏展示',
- // version: 'pro',
- authority: ['media-stream', 'admin'],
- icon: 'appstore',
- component: './media/reveal',
- },
- {
- path: '/media/cascade',
- name: '国标级联',
- // version: 'pro',
- authority: ['gb28181-cascade', 'admin'],
- icon: 'cloud-upload',
- component: './media/cascade',
- },
- ],
- },
- {
- path: 'edge-gateway',
- name: '边缘网关',
- icon: 'gateway',
- version: 'pro',
- authority: ['edge-product', 'edge-device', 'admin'],
- routes: [
- {
- path: '/edge-gateway/product',
- name: '产品',
- icon: 'laptop',
- authority: ['edge-product', 'admin'],
- component: './edge-gateway/product',
- },
- {
- path: '/edge-gateway/device',
- name: '设备',
- icon: 'desktop',
- authority: ['edge-device', 'admin'],
- component: './edge-gateway/device',
- },
- {
- hideInMenu: true,
- path: '/edge-gateway/device/detail/:id',
- name: '设备详情',
- authority: ['edge-device', 'admin'],
- component: './edge-gateway/device/detail',
- },
- {
- hideInMenu: true,
- path: '/edge-gateway/device/detail/:id/save/:id',
- name: '网关设备详情',
- authority: ['edge-device', 'admin'],
- component: './edge-gateway/device/detail/network/device/editor',
- },
- ],
- },
- {
- path: 'account',
- name: '个人中心',
- icon: 'user',
- hideInMenu: true,
- routes: [
- // {
- // path: '/account/center',
- // name: '个人中心',
- // icon: 'smile',
- // component: './account/center'
- // },
- {
- path: '/account/settings',
- name: '个人设置',
- icon: 'setting',
- component: './account/settings',
- },
- {
- path: '/account/notification',
- name: '通知订阅',
- icon: 'bell',
- component: './account/notification',
- },
- ],
- },
- // {
- // name: 'paramter',
- // path: '/properties',
- // inco: 'bar-chart',
- // component: './script-demo',
- // },
- {
- name: 'exception',
- icon: 'smile',
- path: '/exception',
- hideInMenu: true,
- routes: [
- {
- path: './500',
- name: '500',
- component: './exception/500',
- },
- {
- path: './404',
- name: '404',
- component: './exception/404',
- },
- {
- path: './403',
- name: '403',
- component: './exception/403',
- },
- ],
- },
- ],
- },
- {
- component: './404',
- },
- ],
- },
- ];
|