| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443 |
- export default [
- {
- path: '/user',
- layout: false,
- routes: [
- {
- path: '/user',
- routes: [
- {
- name: 'login',
- path: '/user/login',
- component: './user/Login',
- },
- ],
- },
- ],
- },
- {
- path: '/analysis',
- name: 'analysis',
- icon: 'smile',
- component: './Analysis',
- },
- {
- path: '/system',
- name: 'system',
- icon: 'crown',
- routes: [
- {
- path: '/system',
- redirect: '/system/user',
- },
- {
- path: '/system/user',
- name: 'user',
- icon: 'smile',
- access: 'user',
- component: './system/User',
- },
- {
- path: '/system/role',
- name: 'role',
- icon: 'smile',
- access: 'role',
- component: './system/Role',
- },
- {
- path: '/system/permission',
- name: 'permission',
- icon: 'smile',
- component: './system/Permission',
- },
- {
- path: '/system/org',
- name: 'org',
- icon: 'smile',
- access: 'organization',
- component: './system/Org',
- },
- {
- path: '/system/open-api',
- name: 'open-api',
- icon: 'smile',
- component: './system/OpenAPI',
- },
- {
- path: '/system/tenant',
- name: 'tenant',
- icon: 'smile',
- component: './system/Tenant',
- },
- {
- hideInMenu: true,
- path: '/system/tenant/detail/:id',
- name: 'tenant-detail',
- icon: 'smile',
- component: './system/Tenant/Detail',
- },
- {
- path: '/system/datasource',
- name: 'datasource',
- icon: 'smile',
- component: './system/DataSource',
- },
- {
- path: '/system/department',
- name: 'department',
- icon: 'smile',
- component: './system/Department',
- },
- {
- hideInMenu: true,
- path: '/system/department/:id/assets',
- name: 'Assets',
- icon: 'smile',
- component: './system/Department/Assets',
- },
- {
- hideInMenu: true,
- path: '/system/department/:id/user',
- name: 'Member',
- icon: 'smile',
- component: './system/Department/Member',
- },
- ],
- },
- {
- path: '/device',
- name: 'device',
- icon: 'crown',
- routes: [
- {
- path: '/device',
- redirect: '/device/product',
- },
- {
- path: '/device/product',
- name: 'product',
- icon: 'smile',
- component: './device/Product',
- },
- {
- path: '/device/category',
- name: 'category',
- icon: 'smile',
- component: './device/Category',
- },
- {
- hideInMenu: true,
- path: '/device/product/detail/:id',
- name: 'product-detail',
- icon: 'smile',
- component: './device/Product/Detail',
- },
- {
- path: '/device/instance',
- name: 'instance',
- icon: 'smile',
- component: './device/Instance',
- },
- {
- hideInMenu: true,
- path: '/device/instance/detail/:id',
- name: 'instance-detail',
- icon: 'smile',
- component: './device/Instance/Detail',
- },
- {
- path: '/device/command',
- name: 'command',
- icon: 'smile',
- component: './device/Command',
- },
- {
- path: '/device/firmware',
- name: 'firmware',
- icon: 'smile',
- component: './device/Firmware',
- },
- {
- hideInMenu: true,
- path: '/device/firmware/detail/:id',
- name: 'firmware-detail',
- icon: 'smile',
- component: './device/Firmware/Detail',
- },
- {
- path: '/device/alarm',
- name: 'alarm',
- icon: 'smile',
- component: './device/Alarm',
- },
- {
- path: '/device/location',
- name: 'location',
- icon: 'smile',
- component: './device/Location',
- },
- ],
- },
- {
- path: '/link',
- name: 'link',
- icon: 'crown',
- routes: [
- {
- path: '/link',
- redirect: '/link/certificate',
- },
- {
- path: '/link/certificate',
- name: 'certificate',
- icon: 'smile',
- component: './link/Certificate',
- },
- {
- path: '/link/protocol',
- name: 'protocol',
- icon: 'smile',
- component: './link/Protocol',
- },
- {
- path: 'link/type',
- name: 'type',
- icon: 'smile',
- component: './link/Type',
- },
- {
- path: '/link/gateway',
- name: 'gateway',
- icon: 'smile',
- component: './link/Gateway',
- },
- {
- path: '/link/opcua',
- name: 'opcua',
- icon: 'smile',
- component: './link/Opcua',
- },
- ],
- },
- {
- path: '/notice',
- name: 'notice',
- icon: 'crown',
- routes: [
- {
- path: '/notice',
- redirect: '/notice/config',
- },
- {
- path: '/notice/config',
- name: 'config',
- icon: 'smile',
- component: './notice/Config',
- },
- {
- path: '/notice/template',
- name: 'template',
- icon: 'smile',
- component: './notice/Template',
- },
- ],
- },
- {
- path: '/rule-engine',
- name: 'rule-engine',
- icon: 'crown',
- routes: [
- {
- path: '/rule-engine',
- redirect: '/rule-engine/instance',
- },
- {
- path: '/rule-engine/instance',
- name: 'instance',
- icon: 'smile',
- component: './rule-engine/Instance',
- },
- {
- path: '/rule-engine/sqlRule',
- name: 'sqlRule',
- icon: 'smile',
- component: './rule-engine/SQLRule',
- },
- {
- path: '/rule-engine/scene',
- name: 'scene',
- icon: 'smile',
- component: './rule-engine/Scene',
- },
- ],
- },
- {
- path: '/visualization',
- name: 'visualization',
- icon: 'crown',
- routes: [
- {
- path: '/visualization',
- redirect: '/visualization/category',
- },
- {
- path: '/visualization/category',
- name: 'category',
- icon: 'smile',
- component: './visualization/Category',
- },
- {
- path: '/visualization/screen',
- name: 'screen',
- icon: 'smile',
- component: './visualization/Screen',
- },
- {
- path: '/visualization/configuration',
- name: 'configuration',
- icon: 'smile',
- component: './visualization/Configuration',
- },
- ],
- },
- {
- path: '/simulator',
- name: 'simulator',
- icon: 'crown',
- routes: [
- {
- path: '/simulator',
- redirect: '/simulator/device',
- },
- {
- path: '/simulator/device',
- name: 'device',
- icon: 'smile',
- component: './simulator/Device',
- },
- ],
- },
- {
- path: '/log',
- name: 'log',
- icon: 'crown',
- routes: [
- {
- path: '/log',
- redirect: '/log/access',
- },
- {
- path: '/log/access',
- name: 'access',
- icon: 'smile',
- component: './log/Access',
- },
- {
- path: '/log/system',
- name: 'system',
- icon: 'smile',
- component: './log/System',
- },
- ],
- },
- {
- path: '/cloud',
- name: 'cloud',
- icon: 'crown',
- routes: [
- {
- path: '/cloud',
- redirect: '/cloud/duer',
- },
- {
- path: '/cloud/dueros',
- name: 'DuerOS',
- icon: 'smile',
- component: './cloud/DuerOS',
- },
- {
- path: '/cloud/aliyun',
- name: 'aliyun',
- icon: 'smile',
- component: './cloud/Aliyun',
- },
- {
- path: '/cloud/onenet',
- name: 'onenet',
- icon: 'smile',
- component: './cloud/Onenet',
- },
- {
- path: '/cloud/ctwing',
- name: 'ctwing',
- icon: 'smile',
- component: './cloud/Ctwing',
- },
- ],
- },
- {
- path: '/media',
- name: 'media',
- icon: 'crown',
- routes: [
- {
- path: '/media',
- redirect: '/media/config',
- },
- {
- path: '/media/config',
- name: 'config',
- icon: 'smile',
- component: './media/Config',
- },
- {
- path: '/media/device',
- name: 'device',
- icon: 'smile',
- component: './media/Device',
- },
- {
- path: '/media/reveal',
- name: 'reveal',
- icon: 'smile',
- component: './media/Reveal',
- },
- {
- path: '/media/cascade',
- name: 'cascade',
- icon: 'smile',
- component: './media/Cascade',
- },
- ],
- },
- {
- path: '/edge',
- name: 'edge',
- icon: 'crown',
- routes: [
- {
- path: '/edge',
- redirect: '/edge/product',
- },
- {
- path: '/edge/product',
- name: 'product',
- icon: 'smile',
- component: './edge/Product',
- },
- {
- path: '/edge/device',
- name: 'device',
- icon: 'smile',
- component: './edge/Device',
- },
- ],
- },
- {
- path: '/',
- redirect: '/analysis',
- },
- {
- component: './404',
- },
- ];
|