|
|
@@ -21,424 +21,101 @@
|
|
|
// 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/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: '/system/role',
|
|
|
- name: 'role',
|
|
|
- icon: 'smile',
|
|
|
- access: 'role',
|
|
|
- component: './system/Role',
|
|
|
- },
|
|
|
- {
|
|
|
- hideInMenu: true,
|
|
|
- path: '/system/role/edit/:id',
|
|
|
- name: 'role-edit',
|
|
|
- icon: 'smile',
|
|
|
- component: './system/Role/Edit',
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/system/permission',
|
|
|
- name: 'permission',
|
|
|
- icon: 'smile',
|
|
|
- component: './system/Permission',
|
|
|
- },
|
|
|
- // {
|
|
|
- // 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: '/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',
|
|
|
+ // path: '/system',
|
|
|
+ // name: 'system',
|
|
|
// icon: 'crown',
|
|
|
// routes: [
|
|
|
// {
|
|
|
- // path: '/log',
|
|
|
- // redirect: '/log/access',
|
|
|
- // },
|
|
|
- // {
|
|
|
- // path: '/log/access',
|
|
|
- // name: 'access',
|
|
|
+ // path: '/system/user',
|
|
|
+ // name: 'user',
|
|
|
// icon: 'smile',
|
|
|
- // component: './log/Access',
|
|
|
+ // access: 'user',
|
|
|
+ // component: './system/User',
|
|
|
// },
|
|
|
// {
|
|
|
- // path: '/log/system',
|
|
|
- // name: 'system',
|
|
|
+ // path: '/system/department',
|
|
|
+ // name: 'department',
|
|
|
// icon: 'smile',
|
|
|
- // component: './log/System',
|
|
|
+ // component: './system/Department',
|
|
|
// },
|
|
|
- // ],
|
|
|
- // },
|
|
|
- // {
|
|
|
- // path: '/cloud',
|
|
|
- // name: 'cloud',
|
|
|
- // icon: 'crown',
|
|
|
- // routes: [
|
|
|
// {
|
|
|
- // path: '/cloud',
|
|
|
- // redirect: '/cloud/duer',
|
|
|
- // },
|
|
|
- // {
|
|
|
- // path: '/cloud/dueros',
|
|
|
- // name: 'DuerOS',
|
|
|
+ // hideInMenu: true,
|
|
|
+ // path: '/system/department/:id/assets',
|
|
|
+ // name: 'assets',
|
|
|
// icon: 'smile',
|
|
|
- // component: './cloud/DuerOS',
|
|
|
+ // component: './system/Department/Assets',
|
|
|
// },
|
|
|
// {
|
|
|
- // path: '/cloud/aliyun',
|
|
|
- // name: 'aliyun',
|
|
|
+ // hideInMenu: true,
|
|
|
+ // path: '/system/department/:id/user',
|
|
|
+ // name: 'member',
|
|
|
// icon: 'smile',
|
|
|
- // component: './cloud/Aliyun',
|
|
|
+ // component: './system/Department/Member',
|
|
|
// },
|
|
|
// {
|
|
|
- // path: '/cloud/onenet',
|
|
|
- // name: 'onenet',
|
|
|
+ // path: '/system/role',
|
|
|
+ // name: 'role',
|
|
|
// icon: 'smile',
|
|
|
- // component: './cloud/Onenet',
|
|
|
+ // access: 'role',
|
|
|
+ // component: './system/Role',
|
|
|
// },
|
|
|
// {
|
|
|
- // path: '/cloud/ctwing',
|
|
|
- // name: 'ctwing',
|
|
|
+ // hideInMenu: true,
|
|
|
+ // path: '/system/role/edit/:id',
|
|
|
+ // name: 'role-edit',
|
|
|
// icon: 'smile',
|
|
|
- // component: './cloud/Ctwing',
|
|
|
+ // component: './system/Role/Edit',
|
|
|
// },
|
|
|
- // ],
|
|
|
- // },
|
|
|
- // {
|
|
|
- // path: '/media',
|
|
|
- // name: 'media',
|
|
|
- // icon: 'crown',
|
|
|
- // routes: [
|
|
|
// {
|
|
|
- // path: '/media',
|
|
|
- // redirect: '/media/config',
|
|
|
- // },
|
|
|
- // {
|
|
|
- // path: '/media/config',
|
|
|
- // name: 'config',
|
|
|
+ // path: '/system/permission',
|
|
|
+ // name: 'permission',
|
|
|
// icon: 'smile',
|
|
|
- // component: './media/Config',
|
|
|
+ // component: './system/Permission',
|
|
|
// },
|
|
|
// {
|
|
|
- // path: '/media/device',
|
|
|
- // name: 'device',
|
|
|
+ // path: '/system/menu',
|
|
|
+ // name: 'menu',
|
|
|
// icon: 'smile',
|
|
|
- // component: './media/Device',
|
|
|
+ // component: './system/Menu',
|
|
|
// },
|
|
|
// {
|
|
|
- // path: '/media/reveal',
|
|
|
- // name: 'reveal',
|
|
|
+ // path: '/system/menu/detail',
|
|
|
+ // name: 'menuDetail',
|
|
|
// icon: 'smile',
|
|
|
- // component: './media/Reveal',
|
|
|
+ // hideInMenu: true,
|
|
|
+ // component: './system/Menu/Detail',
|
|
|
// },
|
|
|
+ // // {
|
|
|
+ // // path: '/system/open-api',
|
|
|
+ // // name: 'open-api',
|
|
|
+ // // icon: 'smile',
|
|
|
+ // // component: './system/OpenAPI',
|
|
|
+ // // },
|
|
|
+ // // {
|
|
|
+ // // path: '/system/tenant',
|
|
|
+ // // name: 'tenant',
|
|
|
+ // // icon: 'smile',
|
|
|
+ // // component: './system/Tenant',
|
|
|
+ // // },
|
|
|
// {
|
|
|
- // path: '/media/cascade',
|
|
|
- // name: 'cascade',
|
|
|
+ // hideInMenu: true,
|
|
|
+ // path: '/system/tenant/detail/:id',
|
|
|
+ // name: 'tenant-detail',
|
|
|
// icon: 'smile',
|
|
|
- // component: './media/Cascade',
|
|
|
+ // component: './system/Tenant/Detail',
|
|
|
// },
|
|
|
+ // // {
|
|
|
+ // // path: '/system/datasource',
|
|
|
+ // // name: 'datasource',
|
|
|
+ // // icon: 'smile',
|
|
|
+ // // component: './system/DataSource',
|
|
|
+ // // },
|
|
|
+ // //
|
|
|
// ],
|
|
|
// },
|
|
|
// {
|
|
|
- // 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: '/system',
|
|
|
// },
|
|
|
- {
|
|
|
- path: '/',
|
|
|
- redirect: '/system',
|
|
|
- },
|
|
|
- {
|
|
|
- component: './404',
|
|
|
- },
|
|
|
];
|