|
|
@@ -35,14 +35,14 @@ export const columns: BasicColumn[] = [
|
|
|
// width: 80,
|
|
|
// },
|
|
|
{
|
|
|
- title: '煤矿名称',
|
|
|
+ title: '矿井名称',
|
|
|
dataIndex: 'mineName',
|
|
|
width: 200,
|
|
|
},
|
|
|
{
|
|
|
title: '老空区永久密闭名称',
|
|
|
dataIndex: 'devicePos',
|
|
|
- width: 100,
|
|
|
+ width: 200,
|
|
|
},
|
|
|
{
|
|
|
title: '所属煤层',
|
|
|
@@ -76,6 +76,64 @@ export const columns: BasicColumn[] = [
|
|
|
// );
|
|
|
// },
|
|
|
},
|
|
|
+ {
|
|
|
+ title: '闭内自燃发火隐患等级',
|
|
|
+ dataIndex: 'fireAlarm',
|
|
|
+ width: 100,
|
|
|
+ customRender({ record }) {
|
|
|
+ return alarmCellRender(record.fireAlarm, (r) => riskMap[r.alarmName] || r.alarmName);
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '闭外自燃发火隐患等级',
|
|
|
+ dataIndex: 'fireAlarmOut',
|
|
|
+ width: 100,
|
|
|
+ customRender({ record }) {
|
|
|
+ return alarmCellRender(record.fireAlarmOut, (r) => riskMap[r.alarmName] || r.alarmName);
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '压差隐患等级',
|
|
|
+ dataIndex: 'sourcePressureAlarm',
|
|
|
+ width: 100,
|
|
|
+ customRender({ record }) {
|
|
|
+ return alarmCellRender(record.sourcePressureAlarm, (r) => riskMap[r.alarmName] || r.alarmName);
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '是否漏风',
|
|
|
+ dataIndex: 'leakageAlarm',
|
|
|
+ width: 100,
|
|
|
+ customRender({ record }) {
|
|
|
+ // return alarmTextRender(record.leakageAlarm?.alarmLevel, record.leakageAlarm?.split('-')[0]);
|
|
|
+ return alarmCellRender(record.leakageAlarm, (r) => r.alarmName.split('-')[1]);
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '密闭启封判定',
|
|
|
+ dataIndex: 'unsealAlarm',
|
|
|
+ width: 100,
|
|
|
+ customRender({ record }) {
|
|
|
+ return alarmCellRender(record.unsealAlarm);
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '设备状态',
|
|
|
+ dataIndex: 'linkStatus',
|
|
|
+ width: 100,
|
|
|
+ customRender({ record }) {
|
|
|
+ return alarmCellRender(
|
|
|
+ record.linkStatus,
|
|
|
+ (r) => linkMap[r],
|
|
|
+ (r) => String(r)
|
|
|
+ );
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '压差(Pa)',
|
|
|
+ dataIndex: 'sourcePressure',
|
|
|
+ width: 100,
|
|
|
+ },
|
|
|
{
|
|
|
title: 'CO(ppm)',
|
|
|
width: 100,
|
|
|
@@ -188,64 +246,6 @@ export const columns: BasicColumn[] = [
|
|
|
},
|
|
|
],
|
|
|
},
|
|
|
- {
|
|
|
- title: '压差(Pa)',
|
|
|
- dataIndex: 'sourcePressure',
|
|
|
- width: 100,
|
|
|
- },
|
|
|
- {
|
|
|
- title: '闭内自然发火隐患等级',
|
|
|
- dataIndex: 'fireAlarm',
|
|
|
- width: 100,
|
|
|
- customRender({ record }) {
|
|
|
- return alarmCellRender(record.fireAlarm, (r) => riskMap[r.alarmName] || r.alarmName);
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- title: '闭外自然发火隐患等级',
|
|
|
- dataIndex: 'fireAlarmOut',
|
|
|
- width: 100,
|
|
|
- customRender({ record }) {
|
|
|
- return alarmCellRender(record.fireAlarmOut, (r) => riskMap[r.alarmName] || r.alarmName);
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- title: '是否漏风',
|
|
|
- dataIndex: 'leakageAlarm',
|
|
|
- width: 100,
|
|
|
- customRender({ record }) {
|
|
|
- // return alarmTextRender(record.leakageAlarm?.alarmLevel, record.leakageAlarm?.split('-')[0]);
|
|
|
- return alarmCellRender(record.leakageAlarm, (r) => r.alarmName.split('-')[1]);
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- title: '压差隐患等级',
|
|
|
- dataIndex: 'sourcePressureAlarm',
|
|
|
- width: 100,
|
|
|
- customRender({ record }) {
|
|
|
- return alarmCellRender(record.sourcePressureAlarm, (r) => riskMap[r.alarmName] || r.alarmName);
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- title: '密闭启封判定',
|
|
|
- dataIndex: 'unsealAlarm',
|
|
|
- width: 100,
|
|
|
- customRender({ record }) {
|
|
|
- return alarmCellRender(record.unsealAlarm);
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- title: '设备状态',
|
|
|
- dataIndex: 'linkStatus',
|
|
|
- width: 100,
|
|
|
- customRender({ record }) {
|
|
|
- return alarmCellRender(
|
|
|
- record.linkStatus,
|
|
|
- (r) => linkMap[r],
|
|
|
- (r) => String(r)
|
|
|
- );
|
|
|
- },
|
|
|
- },
|
|
|
// {
|
|
|
// title: '爆炸危险性',
|
|
|
// dataIndex: 'explosionHazard',
|
|
|
@@ -483,15 +483,20 @@ export const historicalColumns: BasicColumn[] = [
|
|
|
width: 200,
|
|
|
},
|
|
|
{
|
|
|
- title: '密闭名称',
|
|
|
+ title: '老空区永久密闭名称',
|
|
|
dataIndex: 'devicePos',
|
|
|
- width: 100,
|
|
|
+ width: 200,
|
|
|
},
|
|
|
{
|
|
|
title: '所属煤层',
|
|
|
dataIndex: 'coalSeamName',
|
|
|
width: 100,
|
|
|
},
|
|
|
+ {
|
|
|
+ title: '压差(Pa)',
|
|
|
+ dataIndex: 'sourcePressure',
|
|
|
+ width: 100,
|
|
|
+ },
|
|
|
{
|
|
|
title: 'CO(ppm)',
|
|
|
width: 100,
|
|
|
@@ -604,11 +609,6 @@ export const historicalColumns: BasicColumn[] = [
|
|
|
},
|
|
|
],
|
|
|
},
|
|
|
- {
|
|
|
- title: '压差(Pa)',
|
|
|
- dataIndex: 'sourcePressure',
|
|
|
- width: 100,
|
|
|
- },
|
|
|
// {
|
|
|
// title: '爆炸危险性',
|
|
|
// dataIndex: 'explosionHazard',
|