|
|
|
|
@ -46,41 +46,44 @@ const EventNotification = () => {
|
|
|
|
|
key: '1',
|
|
|
|
|
title: '交通事故(A301国道K125段)',
|
|
|
|
|
time: '2023-04-17 14:45',
|
|
|
|
|
status: '重大',
|
|
|
|
|
statusColor: '#ff4d4f',
|
|
|
|
|
severity: '重大',
|
|
|
|
|
severityColor: '#ff4d4f',
|
|
|
|
|
currentStatus: '处理中',
|
|
|
|
|
statusColor: '#1890ff',
|
|
|
|
|
id: 'EVT-20230615-008'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: '2',
|
|
|
|
|
title: '火灾事故(南城区商业街)',
|
|
|
|
|
time: '2023-04-16 09:30',
|
|
|
|
|
status: '较大',
|
|
|
|
|
statusColor: '#ff9800',
|
|
|
|
|
title: '商铺火灾(城东商业区)',
|
|
|
|
|
time: '2023-04-17 14:45',
|
|
|
|
|
severity: '较大',
|
|
|
|
|
severityColor: '#ff9800',
|
|
|
|
|
currentStatus: '已解决',
|
|
|
|
|
id: 'EVT-20230614-005'
|
|
|
|
|
statusColor: '#52c41a',
|
|
|
|
|
id: 'EVT-20230615-008'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: '3',
|
|
|
|
|
title: '化学品泄漏(工业区A区)',
|
|
|
|
|
time: '2023-04-15 16:20',
|
|
|
|
|
status: '一般',
|
|
|
|
|
statusColor: '#36cfc9',
|
|
|
|
|
title: '管道泄漏(民生路)',
|
|
|
|
|
time: '2023-04-17 14:45',
|
|
|
|
|
severity: '一般',
|
|
|
|
|
severityColor: '#1890ff',
|
|
|
|
|
currentStatus: '已解决',
|
|
|
|
|
id: 'EVT-20230613-003'
|
|
|
|
|
statusColor: '#52c41a',
|
|
|
|
|
id: 'EVT-20230615-008'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: '4',
|
|
|
|
|
title: '自然灾害(台风影响)',
|
|
|
|
|
time: '2023-04-14 11:15',
|
|
|
|
|
status: '较大',
|
|
|
|
|
statusColor: '#ff9800',
|
|
|
|
|
title: '群体聚集事件(市政府前)',
|
|
|
|
|
time: '2023-04-17 14:45',
|
|
|
|
|
severity: '较大',
|
|
|
|
|
severityColor: '#ff9800',
|
|
|
|
|
currentStatus: '已解决',
|
|
|
|
|
id: 'EVT-20230612-001'
|
|
|
|
|
statusColor: '#52c41a',
|
|
|
|
|
id: 'EVT-20230615-008'
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
// 推送记录表格数据
|
|
|
|
|
const pushRecordData = {
|
|
|
|
|
list: [
|
|
|
|
|
{
|
|
|
|
|
@ -125,43 +128,49 @@ const EventNotification = () => {
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 推送记录表格列定义
|
|
|
|
|
|
|
|
|
|
const pushRecordColumns = [
|
|
|
|
|
{
|
|
|
|
|
title: '事件编号',
|
|
|
|
|
dataIndex: 'eventId',
|
|
|
|
|
key: 'eventId',
|
|
|
|
|
width: 180
|
|
|
|
|
width: 180,
|
|
|
|
|
align: 'center'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '事件名称',
|
|
|
|
|
dataIndex: 'eventName',
|
|
|
|
|
key: 'eventName',
|
|
|
|
|
width: 180
|
|
|
|
|
width: 180,
|
|
|
|
|
align: 'center'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '推送时间',
|
|
|
|
|
dataIndex: 'pushTime',
|
|
|
|
|
key: 'pushTime',
|
|
|
|
|
width: 180
|
|
|
|
|
width: 180,
|
|
|
|
|
align: 'center'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '接收对象',
|
|
|
|
|
dataIndex: 'recipient',
|
|
|
|
|
key: 'recipient',
|
|
|
|
|
width: 200
|
|
|
|
|
width: 200,
|
|
|
|
|
align: 'center'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '推送方式',
|
|
|
|
|
dataIndex: 'pushMethod',
|
|
|
|
|
key: 'pushMethod',
|
|
|
|
|
width: 150
|
|
|
|
|
width: 150,
|
|
|
|
|
align: 'center'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '状态',
|
|
|
|
|
dataIndex: 'status',
|
|
|
|
|
key: 'status',
|
|
|
|
|
width: 100,
|
|
|
|
|
align: 'center',
|
|
|
|
|
render: (text, record) => {
|
|
|
|
|
let color = '#52c41a';
|
|
|
|
|
if (record.statusType === 'sending') color = '#ff9800';
|
|
|
|
|
@ -172,6 +181,7 @@ const EventNotification = () => {
|
|
|
|
|
title: '操作',
|
|
|
|
|
key: 'action',
|
|
|
|
|
width: 100,
|
|
|
|
|
align: 'center',
|
|
|
|
|
render: () => (
|
|
|
|
|
<Button type="link" size="small">查看</Button>
|
|
|
|
|
)
|
|
|
|
|
@ -307,12 +317,12 @@ const EventNotification = () => {
|
|
|
|
|
onLoadedMetadata={handleVideoLoaded}
|
|
|
|
|
preload="metadata"
|
|
|
|
|
>
|
|
|
|
|
{/* 使用本地测试视频 */}
|
|
|
|
|
{/* 使用本地视频 */}
|
|
|
|
|
<source
|
|
|
|
|
src={testVideo}
|
|
|
|
|
type="video/mp4"
|
|
|
|
|
/>
|
|
|
|
|
{/* 如果视频加载失败,显示提示 */}
|
|
|
|
|
{/* 视频加载失败,提示 */}
|
|
|
|
|
您的浏览器不支持视频播放。
|
|
|
|
|
</video>
|
|
|
|
|
{/* 自定义播放控制栏 */}
|
|
|
|
|
@ -339,13 +349,13 @@ const EventNotification = () => {
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div className={styles.formItem}>
|
|
|
|
|
<div className={`${styles.formItem} ${styles.formItemFlex}`}>
|
|
|
|
|
<label className={styles.label}>视频核实记录</label>
|
|
|
|
|
<TextArea
|
|
|
|
|
placeholder="记录视频核实情况..."
|
|
|
|
|
rows={3}
|
|
|
|
|
value={videoRecord}
|
|
|
|
|
onChange={(e) => setVideoRecord(e.target.value)}
|
|
|
|
|
className={styles.textAreaFullHeight}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@ -354,7 +364,7 @@ const EventNotification = () => {
|
|
|
|
|
{/* c块:信息推送 */}
|
|
|
|
|
<div className={styles.blockA_c}>
|
|
|
|
|
<div className={styles.cardHeader}>
|
|
|
|
|
<SendOutlined className={styles.headerIcon} />
|
|
|
|
|
<img src={iconAcc3} alt="icon" style={{ width: '16px', height: '16px' }} />
|
|
|
|
|
<span className={styles.headerText}>信息推送</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div className={styles.cardContent}>
|
|
|
|
|
@ -425,17 +435,17 @@ const EventNotification = () => {
|
|
|
|
|
<div key={item.key} className={styles.eventItem}>
|
|
|
|
|
<div className={styles.eventItemHeader}>
|
|
|
|
|
<span className={styles.eventTitle}>{item.title}</span>
|
|
|
|
|
<Tag color={item.statusColor}>{item.status}</Tag>
|
|
|
|
|
<Tag color={item.severityColor} className={styles.severityTag}>{item.severity}</Tag>
|
|
|
|
|
</div>
|
|
|
|
|
<div className={styles.eventItemFooter}>
|
|
|
|
|
<div className={styles.eventItemMiddle}>
|
|
|
|
|
<div className={styles.eventTime}>
|
|
|
|
|
<ClockCircleOutlined className={styles.timeIcon} />
|
|
|
|
|
<span>{item.time}</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div className={styles.eventStatus}>
|
|
|
|
|
<span className={styles.currentStatus}>{item.currentStatus}</span>
|
|
|
|
|
<span className={styles.eventId}>ID: {item.id}</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div className={styles.eventItemFooter}>
|
|
|
|
|
<Tag color={item.statusColor} className={styles.statusTag}>{item.currentStatus}</Tag>
|
|
|
|
|
<span className={styles.eventId}>ID: {item.id}</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
))}
|
|
|
|
|
|