|
@ -24,6 +24,7 @@ const DataAlarm = ({ match, dispatch, actions, user, loading, socket }) => { |
|
|
const [ifBulk, setIfBulk] = useState(false); //是否批量确认 |
|
|
const [ifBulk, setIfBulk] = useState(false); //是否批量确认 |
|
|
const [content, setContent] = useState(false); //确认内容 |
|
|
const [content, setContent] = useState(false); //确认内容 |
|
|
const [selected, setSelected] = useState([]) //表格被勾选项 |
|
|
const [selected, setSelected] = useState([]) //表格被勾选项 |
|
|
|
|
|
const [genre, setGenre] = useState([]) //搜索类型 |
|
|
|
|
|
|
|
|
const tableType = { dataLnterrupt: 'dataLnterrupt', dataAbnormal: 'dataAbnormal', strategyHit: 'strategyHit', videoAbnormal: 'videoAbnormal', useAbnormal: 'useAbnormal', deviceAbnormal: 'deviceAbnormal' } |
|
|
const tableType = { dataLnterrupt: 'dataLnterrupt', dataAbnormal: 'dataAbnormal', strategyHit: 'strategyHit', videoAbnormal: 'videoAbnormal', useAbnormal: 'useAbnormal', deviceAbnormal: 'deviceAbnormal' } |
|
|
const statistic = { dataLnterrupt: '数据中断统计', dataAbnormal: '数据异常统计', strategyHit: '策略命中统计', videoAbnormal: '视频异常统计', useAbnormal: '应用异常统计', deviceAbnormal: '设备异常统计' } |
|
|
const statistic = { dataLnterrupt: '数据中断统计', dataAbnormal: '数据异常统计', strategyHit: '策略命中统计', videoAbnormal: '视频异常统计', useAbnormal: '应用异常统计', deviceAbnormal: '设备异常统计' } |
|
@ -62,10 +63,7 @@ const DataAlarm = ({ match, dispatch, actions, user, loading, socket }) => { |
|
|
{ name: '搜索', field: '1' }, |
|
|
{ name: '搜索', field: '1' }, |
|
|
{ |
|
|
{ |
|
|
name: '中断类型', field: '2', |
|
|
name: '中断类型', field: '2', |
|
|
data: [ |
|
|
data: genre |
|
|
{ name: '服务异常', value: '11' }, |
|
|
|
|
|
{ name: '链接中断', value: '22' }, |
|
|
|
|
|
{ name: '设备异常', value: '33' }] |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
name: '中断状态', field: '3', |
|
|
name: '中断状态', field: '3', |
|
@ -77,9 +75,7 @@ const DataAlarm = ({ match, dispatch, actions, user, loading, socket }) => { |
|
|
{ name: '搜索', field: '1' }, |
|
|
{ name: '搜索', field: '1' }, |
|
|
{ |
|
|
{ |
|
|
name: '异常类型', field: '2', |
|
|
name: '异常类型', field: '2', |
|
|
data: [ |
|
|
data: genre |
|
|
{ name: '超远程', value: '11' }, |
|
|
|
|
|
{ name: '超限幅', value: '22' }] |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
name: '异常状态', field: '3', |
|
|
name: '异常状态', field: '3', |
|
@ -91,11 +87,7 @@ const DataAlarm = ({ match, dispatch, actions, user, loading, socket }) => { |
|
|
{ name: '搜索', field: '1' }, |
|
|
{ name: '搜索', field: '1' }, |
|
|
{ |
|
|
{ |
|
|
name: '策略类型', field: '2', |
|
|
name: '策略类型', field: '2', |
|
|
data: [ |
|
|
data:genre |
|
|
{ name: '超阀值', value: '11' }, |
|
|
|
|
|
{ name: '防驶入告警', value: '22' }, |
|
|
|
|
|
{ name: '设备关闭', value: '33' }, |
|
|
|
|
|
{ name: '超围栏', value: '44' }] |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
name: '命中状态', field: '3', |
|
|
name: '命中状态', field: '3', |
|
@ -137,10 +129,7 @@ const DataAlarm = ({ match, dispatch, actions, user, loading, socket }) => { |
|
|
{ name: '搜索', field: '1' }, |
|
|
{ name: '搜索', field: '1' }, |
|
|
{ |
|
|
{ |
|
|
name: '设备类型', field: '2', |
|
|
name: '设备类型', field: '2', |
|
|
data: [ |
|
|
data: genre |
|
|
{ name: '传感器', value: '11' }, |
|
|
|
|
|
{ name: 'DTU', value: '22' }, |
|
|
|
|
|
{ name: '服务器', value: '33' }] |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
name: '异常状态', field: '3', |
|
|
name: '异常状态', field: '3', |
|
@ -279,7 +268,7 @@ const DataAlarm = ({ match, dispatch, actions, user, loading, socket }) => { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
TableDisplay.push({ |
|
|
TableDisplay.push({ |
|
|
title: '操作', |
|
|
title: '操作', |
|
|
dataIndex: 'text', |
|
|
dataIndex: 'text', |
|
@ -292,7 +281,7 @@ const DataAlarm = ({ match, dispatch, actions, user, loading, socket }) => { |
|
|
</> |
|
|
</> |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
console.log(TableDisplay); |
|
|
// console.log(TableDisplay); |
|
|
// console.log(setup); |
|
|
// console.log(setup); |
|
|
setExhibition(TableDisplay) |
|
|
setExhibition(TableDisplay) |
|
|
setTableSetup([{ list: setup }]) |
|
|
setTableSetup([{ list: setup }]) |
|
@ -341,6 +330,7 @@ const DataAlarm = ({ match, dispatch, actions, user, loading, socket }) => { |
|
|
setIfBulk={setIfBulk} |
|
|
setIfBulk={setIfBulk} |
|
|
selected={selected} |
|
|
selected={selected} |
|
|
setSelected={setSelected} |
|
|
setSelected={setSelected} |
|
|
|
|
|
setGenre={setGenre} |
|
|
/> |
|
|
/> |
|
|
{setup ? ( |
|
|
{setup ? ( |
|
|
<Setup |
|
|
<Setup |
|
|