1
0
mirror of https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git synced 2025-08-14 00:25:46 +02:00
Files
AdministrationItDepartmens/src/utils/constants.ts
MoonTestUse1 e81df4c87e Initial commit
2024-12-23 19:27:44 +06:00

17 lines
824 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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;
}