chore
This commit is contained in:
22
src/enums/device-type.ts
Normal file
22
src/enums/device-type.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
export enum DeviceType {
|
||||
Switch = '220',
|
||||
Server = '401+403',
|
||||
MediaServer = '403',
|
||||
VideoServer = '401',
|
||||
Decoder = '114',
|
||||
Camera = '132',
|
||||
Nvr = '118',
|
||||
SecurityBox = '222',
|
||||
Keyboard = '141',
|
||||
}
|
||||
|
||||
export const deviceTypesMap = new Map<string, string>();
|
||||
deviceTypesMap.set(DeviceType.Switch, '交换机');
|
||||
deviceTypesMap.set(DeviceType.Server, '服务器');
|
||||
deviceTypesMap.set(DeviceType.MediaServer, '媒体服务器');
|
||||
deviceTypesMap.set(DeviceType.VideoServer, '视频服务器');
|
||||
deviceTypesMap.set(DeviceType.Decoder, '解码器');
|
||||
deviceTypesMap.set(DeviceType.Camera, '摄像机');
|
||||
deviceTypesMap.set(DeviceType.Nvr, '网络录像机');
|
||||
deviceTypesMap.set(DeviceType.SecurityBox, '智能安防箱');
|
||||
deviceTypesMap.set(DeviceType.Keyboard, '网络键盘');
|
||||
55
src/enums/perm-code.ts
Normal file
55
src/enums/perm-code.ts
Normal file
@@ -0,0 +1,55 @@
|
||||
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