40 lines
1.6 KiB
TypeScript
40 lines
1.6 KiB
TypeScript
import i18n from './i18n';
|
|
|
|
export const orderTypeConfig = {
|
|
get 1() { return i18n.t('constants.inspection') },
|
|
get 2() { return i18n.t('constants.maintenance') },
|
|
get 3() { return i18n.t('constants.cleaning') },
|
|
get 4() { return i18n.t('constants.repair') },
|
|
get 5() { return i18n.t('constants.operation') },
|
|
};
|
|
|
|
export const sourceTypeMap = {
|
|
get 1() { return i18n.t('constants.sourceAI') },
|
|
get 2() { return i18n.t('constants.sourceUAV') },
|
|
get 3() { return i18n.t('constants.sourceCleaning') },
|
|
get 4() { return i18n.t('constants.sourceVideo') },
|
|
get 5() { return i18n.t('constants.sourceEquipment') },
|
|
get 6() { return i18n.t('constants.sourceManual') },
|
|
get 7() { return i18n.t('constants.sourceAlert') },
|
|
};
|
|
|
|
export const alarmTypeMap = {
|
|
get 'UAV_FAULT'() { return i18n.t('constants.uavFault') },
|
|
get 'MOWER_FAULT'() { return i18n.t('constants.mowerFault') },
|
|
get 'OTHER_DEVICE_FAULT'() { return i18n.t('constants.otherDeviceFault') },
|
|
get 'SERVER_FAILURE'() { return i18n.t('constants.serverFailure') },
|
|
get 'SYSTEM_ERROR'() { return i18n.t('constants.systemError') },
|
|
};
|
|
|
|
export const alarmLevelConfig = {
|
|
1: { get description() { return i18n.t('constants.critical') }, color: '#FF4D4F' },
|
|
2: { get description() { return i18n.t('constants.important') }, color: '#FA8C16' },
|
|
3: { get description() { return i18n.t('constants.general') }, color: '#FADB14' },
|
|
4: { get description() { return i18n.t('constants.info') }, color: '#1890FF' },
|
|
};
|
|
|
|
export const handleStatusMap = {
|
|
get 1() { return i18n.t('constants.pending') },
|
|
get 2() { return i18n.t('constants.closed') },
|
|
};
|