中英文切换 初始化
This commit is contained in:
@@ -1,39 +1,39 @@
|
||||
import i18n from './i18n';
|
||||
|
||||
export const orderTypeConfig = {
|
||||
1: '巡检',
|
||||
2: '检修',
|
||||
3: '清洗',
|
||||
4: '维修',
|
||||
5: '运维'
|
||||
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 = {
|
||||
1: 'AI',
|
||||
2: '无人机',
|
||||
3: '清洗',
|
||||
4: '视频',
|
||||
5: '装备',
|
||||
6: '人工',
|
||||
7: '告警'
|
||||
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 = {
|
||||
'UAV_FAULT': '无人机故障',
|
||||
'MOWER_FAULT': '割草机故障',
|
||||
'OTHER_DEVICE_FAULT': '其他设备故障',
|
||||
'SERVER_FAILURE': '服务器故障',
|
||||
'SYSTEM_ERROR': '系统错误'
|
||||
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: { description: '严重', color: '#FF4D4F' },
|
||||
2: { description: '重要', color: '#FA8C16' },
|
||||
3: { description: '一般', color: '#FADB14' },
|
||||
4: { description: '提示', color: '#1890FF' }
|
||||
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 = {
|
||||
1: '待处理',
|
||||
2: '已关闭',
|
||||
get 1() { return i18n.t('constants.pending') },
|
||||
get 2() { return i18n.t('constants.closed') },
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user