refactor: reorganize files
This commit is contained in:
3
src/enums/index.ts
Normal file
3
src/enums/index.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export * from './alarm-type';
|
||||
export * from './device-type';
|
||||
export * from './fault-level';
|
||||
@@ -1,55 +0,0 @@
|
||||
export const PermCode = {
|
||||
// 车站配置面板
|
||||
...{
|
||||
STATION_ACCESS: 'ndmapp:station',
|
||||
STATION_ADD: 'ndmapp:station:add',
|
||||
STATION_DELETE: 'ndmapp:station:delete',
|
||||
STATION_EDIT: 'ndmapp:station:edit',
|
||||
STATION_EXPORT: 'ndmapp:station:export',
|
||||
STATION_IMPORT: 'ndmapp:station:import',
|
||||
STATION_VIEW: 'ndmapp:station:view',
|
||||
},
|
||||
// 数据看板页
|
||||
...{
|
||||
DASHBOARD_ACCESS: 'ndmapp:dashboard',
|
||||
DASHBOARD_ADD: 'ndmapp:dashboard:add',
|
||||
DASHBOARD_DELETE: 'ndmapp:dashboard:delete',
|
||||
DASHBOARD_EDIT: 'ndmapp:dashboard:edit',
|
||||
DASHBOARD_EXPORT: 'ndmapp:dashboard:export',
|
||||
DASHBOARD_IMPORT: 'ndmapp:dashboard:import',
|
||||
DASHBOARD_VIEW: 'ndmapp:dashboard:view',
|
||||
},
|
||||
// 设备状态页
|
||||
...{
|
||||
DEVICES_ACCESS: 'ndmapp:devices',
|
||||
DEVICES_ADD: 'ndmapp:devices:add',
|
||||
DEVICES_DELETE: 'ndmapp:devices:delete',
|
||||
DEVICES_EDIT: 'ndmapp:devices:edit',
|
||||
DEVICES_EXPORT: 'ndmapp:devices:export',
|
||||
DEVICES_IMPORT: 'ndmapp:devices:import',
|
||||
DEVICES_VIEW: 'ndmapp:devices:view',
|
||||
DEVICES_CONFIG: 'ndmapp:devices:config',
|
||||
},
|
||||
// 数据统计页
|
||||
...{
|
||||
STATISTICS_ACCESS: 'ndmapp:statistics',
|
||||
STATISTICS_ADD: 'ndmapp:statistics:add',
|
||||
STATISTICS_DELETE: 'ndmapp:statistics:delete',
|
||||
STATISTICS_EDIT: 'ndmapp:statistics:edit',
|
||||
STATISTICS_EXPORT: 'ndmapp:statistics:export',
|
||||
STATISTICS_IMPORT: 'ndmapp:statistics:import',
|
||||
STATISTICS_VIEW: 'ndmapp:statistics:view',
|
||||
},
|
||||
// 系统日志页
|
||||
...{
|
||||
LOGS_ACCESS: 'ndmapp:logs',
|
||||
LOGS_ADD: 'ndmapp:logs:add',
|
||||
LOGS_DELETE: 'ndmapp:logs:delete',
|
||||
LOGS_EDIT: 'ndmapp:logs:edit',
|
||||
LOGS_EXPORT: 'ndmapp:logs:export',
|
||||
LOGS_IMPORT: 'ndmapp:logs:import',
|
||||
LOGS_VIEW: 'ndmapp:logs:view',
|
||||
},
|
||||
};
|
||||
|
||||
export type PermoCodeType = keyof typeof PermCode;
|
||||
Reference in New Issue
Block a user