From dfc7634b7b189782a47d816a4e928ea95cfe618f Mon Sep 17 00:00:00 2001 From: wangyunfei <1224056307@qq,com> Date: Wed, 5 Nov 2025 15:20:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E9=80=9A=E7=9F=A5=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/EventNotification.js | 80 ++++++----- .../components/EventNotification.less | 132 +++++++++++++----- 2 files changed, 141 insertions(+), 71 deletions(-) diff --git a/src/pages/business_emergencyAccident/components/EventNotification.js b/src/pages/business_emergencyAccident/components/EventNotification.js index 50ae9ca..b59fe17 100644 --- a/src/pages/business_emergencyAccident/components/EventNotification.js +++ b/src/pages/business_emergencyAccident/components/EventNotification.js @@ -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: () => ( ) @@ -307,12 +317,12 @@ const EventNotification = () => { onLoadedMetadata={handleVideoLoaded} preload="metadata" > - {/* 使用本地测试视频 */} + {/* 使用本地视频 */} - {/* 如果视频加载失败,显示提示 */} + {/* 视频加载失败,提示 */} 您的浏览器不支持视频播放。 {/* 自定义播放控制栏 */} @@ -339,13 +349,13 @@ const EventNotification = () => { -
+