|
|
@ -227,7 +227,7 @@ const DataAlarm = ({ match, dispatch, actions, user, loading, socket }) => { |
|
|
|
{ name: '常见原因', sort: 7, value: 'AlarmCodeName' }, |
|
|
|
{ name: '产生时间', sort: 22, value: 'createTime', render: (_, r, index) => r.createTime || '无' }, |
|
|
|
{ name: '更新时间', sort: 23, value: 'updateTime', render: (_, r, index) => r.updateTime || '无' }, |
|
|
|
{ name: '服务器地址', sort: 12, value: '9' }, |
|
|
|
// { name: '服务器地址', sort: 12, value: '9' }, |
|
|
|
{ |
|
|
|
name: '告警等级', sort: 13, value: 'CurrentLevel', render: (_, r, index) => { |
|
|
|
let data = { 1: '一级', 2: '二级', 3: '三级' } |
|
|
@ -444,7 +444,7 @@ const DataAlarm = ({ match, dispatch, actions, user, loading, socket }) => { |
|
|
|
}) |
|
|
|
} else if (route == 'videoAbnormal') { |
|
|
|
TextAreaApi.current.validate().then((v) => { |
|
|
|
dispatch(problem.postApiConfirm({ appAlarmId: selected, confirm: content })).then(res => { |
|
|
|
dispatch(problem.putAlarmVideoConfirm({ alarmId: selected, content: content })).then(res => { |
|
|
|
if (res.success) { |
|
|
|
setConfirm(false) |
|
|
|
setQuery({ limit: query.limit, page: query.page }) |
|
|
@ -490,30 +490,35 @@ const DataAlarm = ({ match, dispatch, actions, user, loading, socket }) => { |
|
|
|
{videoModal ? <Modal |
|
|
|
visible={true} |
|
|
|
// videoData |
|
|
|
width={900} |
|
|
|
header={null} |
|
|
|
footer={null} |
|
|
|
size={'large'} |
|
|
|
style={{ padding: 0 }} |
|
|
|
bodyStyle={{ padding: 0 }} |
|
|
|
className="videoModal" |
|
|
|
onCancel={() => setVideoModal(false)} |
|
|
|
onOk={() => { |
|
|
|
|
|
|
|
|
|
|
|
}} |
|
|
|
> |
|
|
|
<div style={{ width: 800, height: 600 }}> |
|
|
|
<div style={{ width: 918, height: 460, marginLeft: -24 }}> |
|
|
|
<iframe |
|
|
|
allowFullScreen |
|
|
|
src={`http://localhost:5000/video_play_cross?slideDown=true&videoObj=${encodeURIComponent(JSON.stringify({ |
|
|
|
// channelNo: 1, |
|
|
|
// content: ['5442542542', '452345', '234524525'], |
|
|
|
// serialNo: "F61504020", |
|
|
|
// type: "yingshi", |
|
|
|
// yingshiToken: "at.7tj6k9mzcwmn112xag96e23tcdsta8nn-7p2qvqv6zq-1k500nr-tsd9bn01o" |
|
|
|
type: 'cascade', |
|
|
|
serialNo: '34020000001310000003', // 设备序列号 必须 |
|
|
|
topSerialNo: '34020000001110000079', // 设备顶级序列号 必须 |
|
|
|
audio: true, |
|
|
|
highDefinition: true, |
|
|
|
cloudControl: true, |
|
|
|
// playUrlSd: 'wss://221.230.55.27:8082/jessica/34020000001110000079/34020000001310000003.flv', // 必须 |
|
|
|
playUrlSd: 'wss://221.230.55.27:8082/jessica/34020000001110000075/34020000001110000073.flv', // 必须 |
|
|
|
src={`https://mediaconsole.ngaiot.com/video_play_cross?slideDown=true&videoObj=${encodeURIComponent(JSON.stringify({ |
|
|
|
channelNo: 1, |
|
|
|
content: ['5442542542', '452345', '234524525'], |
|
|
|
serialNo: "F61504020", |
|
|
|
type: "yingshi", |
|
|
|
yingshiToken: "at.7tj6k9mzcwmn112xag96e23tcdsta8nn-7p2qvqv6zq-1k500nr-tsd9bn01o" |
|
|
|
// type: 'cascade', |
|
|
|
// serialNo: '34020000001310000003', // 设备序列号 必须 |
|
|
|
// topSerialNo: '34020000001110000079', // 设备顶级序列号 必须 |
|
|
|
// audio: true, |
|
|
|
// highDefinition: true, |
|
|
|
// cloudControl: true, |
|
|
|
// // playUrlSd: 'wss://221.230.55.27:8082/jessica/34020000001110000079/34020000001310000003.flv', // 必须 |
|
|
|
// playUrlSd: 'wss://221.230.55.27:8082/jessica/34020000001110000075/34020000001110000073.flv', // 必须 |
|
|
|
}))}`} |
|
|
|
style={{ height: "100%", width: "100%" }} |
|
|
|
frameBorder={0} |
|
|
|