|
@ -250,7 +250,7 @@ const DataAlarm = ({ match, dispatch, actions, user, loading, socket, iotVcmpWeb |
|
|
{ name: '产生次数', sort: 19, value: 'detailCount', render: (_, r, index) => r.detailCount + '次' }, |
|
|
{ name: '产生次数', sort: 19, value: 'detailCount', render: (_, r, index) => r.detailCount + '次' }, |
|
|
{ |
|
|
{ |
|
|
name: '确认信息', sort: 20, value: 'confirm', render: (_, r, index) => { |
|
|
name: '确认信息', sort: 20, value: 'confirm', render: (_, r, index) => { |
|
|
return r.State == 3 ? '无' : r.State == 4 ? r.confirm || '无' : r.confirmTime ? r.confirm : '未确认' |
|
|
return r.State == 3 || r.autoRestore || r.confirmAuto ? '无' : r.State == 4 ? r.confirm || '无' : r.confirmTime ? r.confirm : '未确认' |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ name: '确认/恢复时间', sort: 21, value: 'confirmTime', render: (_, r, index) => <div style={{ width: 130 }}>{r.confirmTime ? r.confirmTime : "无"}</div> }, |
|
|
{ name: '确认/恢复时间', sort: 21, value: 'confirmTime', render: (_, r, index) => <div style={{ width: 130 }}>{r.confirmTime ? r.confirmTime : "无"}</div> }, |
|
@ -310,7 +310,7 @@ const DataAlarm = ({ match, dispatch, actions, user, loading, socket, iotVcmpWeb |
|
|
setConfirm(true) |
|
|
setConfirm(true) |
|
|
setSelected([r.key]) |
|
|
setSelected([r.key]) |
|
|
}}>确认</Button> |
|
|
}}>确认</Button> |
|
|
: r.State == 3 ? |
|
|
: r.State == 3 || r.autoRestore || r.confirmAuto ? |
|
|
<Button theme='borderless' style={{ width: 65 }} disabled>自动恢复</Button> : |
|
|
<Button theme='borderless' style={{ width: 65 }} disabled>自动恢复</Button> : |
|
|
<Button theme='borderless' style={{ width: 65 }} disabled>已确认</Button> |
|
|
<Button theme='borderless' style={{ width: 65 }} disabled>已确认</Button> |
|
|
} |
|
|
} |
|
|