1.新增运行报表查询一中 “维护” 状态颜色
2.新增设备状态 “维护” 状态颜色
main
liuhr 2 years ago
parent fb0e273cd6
commit f1bd0a1c68

@ -414,7 +414,7 @@ export default class helper {
return textStatus; return textStatus;
}; };
// 设备状态,运行:Run,待机:Stop报警:Alarm // 设备状态,运行:Run 待机:Stop 报警:Alarm 维护:Maintain
static getEquipmentState = (val: any) => { static getEquipmentState = (val: any) => {
let textStatus = { color: '', text: '' }; let textStatus = { color: '', text: '' };
switch (val) { switch (val) {
@ -432,10 +432,16 @@ export default class helper {
break; break;
case 'Alarm': case 'Alarm':
textStatus = { textStatus = {
color: 'orange', color: 'red',
text: '报警' text: '报警'
}; };
break; break;
case 'Maintain':
textStatus = {
color: 'orange',
text: '维护'
};
break;
default: default:
textStatus = { textStatus = {
color: '', color: '',
@ -483,7 +489,7 @@ export default class helper {
return textStatus; return textStatus;
}; };
// 设备状态,运行:Run,待机:Stop报警:Alarm // 设备状态,运行:Run 待机:Stop 报警:Alarm 维护:Maintain
static getEquipmentStateColor = (val: any) => { static getEquipmentStateColor = (val: any) => {
let color = ''; let color = '';
switch (val) { switch (val) {
@ -494,7 +500,10 @@ export default class helper {
color = 'bg-grey-4'; color = 'bg-grey-4';
break; break;
case 'Alarm': case 'Alarm':
color = 'bg-orange-5'; color = 'bg-red';
break;
case 'Maintain':
color = 'bg-orange';
break; break;
case null: case null:
color = 'bg-grey-4'; color = 'bg-grey-4';

Loading…
Cancel
Save