mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
Initial commit for develop branch3
This commit is contained in:
17
frontend/src/utils/constants.ts
Normal file
17
frontend/src/utils/constants.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
export const requestTypes = [
|
||||
{ value: 'hardware', label: 'Проблемы с оборудованием' },
|
||||
{ value: 'software', label: 'Проблемы с программным обеспечением' },
|
||||
{ value: 'network', label: 'Проблемы с сетью' },
|
||||
{ value: 'access', label: 'Доступ к системам' },
|
||||
{ value: 'other', label: 'Другое' }
|
||||
] as const;
|
||||
|
||||
export const departments = [
|
||||
{ value: 'aho', label: 'Административно-хозяйственный отдел' },
|
||||
{ value: 'gkh', label: 'Жилищно-коммунальное хозяйство' },
|
||||
{ value: 'general', label: 'Общий отдел' }
|
||||
] as const;
|
||||
|
||||
export function getRequestTypeLabel(value: string): string {
|
||||
return requestTypes.find(type => type.value === value)?.label || value;
|
||||
}
|
Reference in New Issue
Block a user