|
|
@@ -13,6 +13,11 @@ const riskMap = {
|
|
|
'3': '较高风险',
|
|
|
'4': '高风险',
|
|
|
};
|
|
|
+const linkMap = {
|
|
|
+ '0': '断线',
|
|
|
+ '1': '正常',
|
|
|
+ '2': '标校',
|
|
|
+};
|
|
|
|
|
|
const dictMap = getDictItemsByCode('mineProStatus');
|
|
|
|
|
|
@@ -139,6 +144,18 @@ export const columns: BasicColumn[] = [
|
|
|
return alarmCellRender(record.unsealAlarm);
|
|
|
},
|
|
|
},
|
|
|
+ {
|
|
|
+ title: '设备状态',
|
|
|
+ dataIndex: 'linkStatus',
|
|
|
+ width: 100,
|
|
|
+ customRender({ record }) {
|
|
|
+ return alarmCellRender(
|
|
|
+ record.linkStatus,
|
|
|
+ (r) => linkMap[r],
|
|
|
+ (r) => String(r)
|
|
|
+ );
|
|
|
+ },
|
|
|
+ },
|
|
|
// {
|
|
|
// title: '爆炸危险性',
|
|
|
// dataIndex: 'explosionHazard',
|
|
|
@@ -550,6 +567,8 @@ function getTagColor(level: string) {
|
|
|
return StatusColorEnum.gold;
|
|
|
case '1':
|
|
|
return StatusColorEnum.blue;
|
|
|
+ case '0':
|
|
|
+ return StatusColorEnum.red;
|
|
|
default:
|
|
|
return 'inhert';
|
|
|
}
|