|
|
@ -37,7 +37,6 @@ const DataAlarm = ({ match, dispatch, actions, user, loading, socket }) => { |
|
|
|
if (route) { |
|
|
|
//初始化表格显示设置 |
|
|
|
let data = columns[route] |
|
|
|
data.splice(0, 1) |
|
|
|
localStorage.getItem(tableType[route]) == null |
|
|
|
? localStorage.setItem( |
|
|
|
tableType[route], |
|
|
@ -145,7 +144,7 @@ const DataAlarm = ({ match, dispatch, actions, user, loading, socket }) => { |
|
|
|
dataLnterrupt: ['index', 'projectName', 'StructureName', 'SourceName', 'AlarmGroupUnit', 'AlarmCodeName', 'createTime', 'AlarmContent', 'CurrentLevel', 'updateTime', 'detailCount', 'confirm', 'confirmTime',], |
|
|
|
dataAbnormal: ['index', 'projectName', 'StructureName', 'SourceName', 'type', 'alarmType', 'createTime', 'AlarmContent', 'CurrentLevel', 'updateTime', 'detailCount', 'confirm', 'confirmTime'], |
|
|
|
strategyHit: ['index', 'projectName', 'StructureName', 'SourceName', 'Strategy', 'State', 'createTime', 'AlarmContent', 'CurrentLevel', 'updateTime', 'detailCount', 'confirm', 'confirmTime'], |
|
|
|
videoAbnormal: ['index', 'projectName', 'StructureName', 'SourceName', '19', '20', '21', '22', 'AlarmContent', '111', 'createTime', 'updateTime', 'confirm', 'confirmTime','56115'], |
|
|
|
videoAbnormal: ['index', 'projectName', 'StructureName', 'SourceName', '19', '20', '21', '22', 'AlarmContent', '111', 'createTime', 'updateTime', 'confirm', 'confirmTime', '56115'], |
|
|
|
useAbnormal: ['index', 'projectName', 'appName', 'url', 'type', 'alarmContent', 'createTime', 'updateTime', 'confirm', 'confirmTime'], |
|
|
|
deviceAbnormal: ['index', 'projectName', 'StructureName', 'SourceName', '19', 'alarmContent', '21', 'AlarmContent', 'AlarmCodeName', 'createTime', 'updateTime', 'confirm', 'confirmTime'], |
|
|
|
} |
|
|
@ -211,7 +210,18 @@ const DataAlarm = ({ match, dispatch, actions, user, loading, socket }) => { |
|
|
|
} |
|
|
|
}, |
|
|
|
{ name: '结构物名称', value: 'StructureName' }, |
|
|
|
{ name: '告警源', value: 'SourceName' }, |
|
|
|
{ |
|
|
|
name: '告警源', value: 'SourceName', render: (_, r, index) => { |
|
|
|
// let data = '' |
|
|
|
// if (route == 'dataLnterrupt' || route == 'dataAbnormal') { |
|
|
|
// data = '传感器' |
|
|
|
// } |
|
|
|
// if (route == 'strategyHit') data = '测点' |
|
|
|
return <> |
|
|
|
{/* <div style={{ width: 44, lineHeight: '18px', textAlign: "center", border: '1px solid #0F7EFB', fontWeight: 400, color: '#0F7EFB', fontSize: 12 }}>{data}</div> */} |
|
|
|
{r.SourceName}</> |
|
|
|
} |
|
|
|
}, |
|
|
|
{ name: '中断类型', value: 'AlarmGroupUnit' }, |
|
|
|
{ name: '告警信息', value: 'AlarmContent' }, |
|
|
|
{ name: '常见原因', value: 'AlarmCodeName' }, |
|
|
@ -224,7 +234,7 @@ const DataAlarm = ({ match, dispatch, actions, user, loading, socket }) => { |
|
|
|
return data[r.CurrentLevel] |
|
|
|
} |
|
|
|
}, |
|
|
|
{ name: '产生次数', value: 'detailCount' }, |
|
|
|
{ name: '产生次数', value: 'detailCount', render: (_, r, index) => r.detailCount + '次' }, |
|
|
|
{ name: '确认信息', value: 'confirm', render: (_, r, index) => r.confirm }, |
|
|
|
{ name: '确认/恢复时间', value: 'confirmTime', }, |
|
|
|
{ |
|
|
@ -250,9 +260,9 @@ const DataAlarm = ({ match, dispatch, actions, user, loading, socket }) => { |
|
|
|
{ name: '接入方式', value: '22' }, |
|
|
|
{ name: '应用名称', value: 'appName' }, |
|
|
|
{ name: 'URL地址', value: 'url' }, |
|
|
|
{name: '异常类型', value: 'type'}, |
|
|
|
{name: '解决方案', value: '111'}, |
|
|
|
{name: '在离线', value: '56115'}, |
|
|
|
{ name: '异常类型', value: 'type' }, |
|
|
|
{ name: '解决方案', value: '111' }, |
|
|
|
{ name: '在离线', value: '56115' }, |
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
@ -297,7 +307,10 @@ const DataAlarm = ({ match, dispatch, actions, user, loading, socket }) => { |
|
|
|
} |
|
|
|
{route ? ['dataLnterrupt', 'dataAbnormal', 'strategyHit'].includes(route) ? <> |
|
|
|
<Button theme='borderless' disabled>已派单</Button> |
|
|
|
<Button theme='borderless' onClick={() => (setCheckPop(true))}>查看</Button> |
|
|
|
<Button theme='borderless' onClick={() => { |
|
|
|
setCheckPop(true) |
|
|
|
setAlarmId(r.key) |
|
|
|
}}>查看</Button> |
|
|
|
</> |
|
|
|
: "" : "" |
|
|
|
} |
|
|
@ -415,6 +428,7 @@ const DataAlarm = ({ match, dispatch, actions, user, loading, socket }) => { |
|
|
|
|
|
|
|
{checkPop ? |
|
|
|
<SideSheets |
|
|
|
alarmId={alarmId} |
|
|
|
close={() => { |
|
|
|
setCheckPop(false) |
|
|
|
}} |
|
|
|