From 1badf05ea3cc1b9be5af469aeae5cad50478914f Mon Sep 17 00:00:00 2001 From: wangyunfei <1224056307@qq,com> Date: Thu, 6 Nov 2025 14:56:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E9=A2=84=E8=AD=A6=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/EventWarningManagement.js | 37 +++++++++++++------ 1 file changed, 25 insertions(+), 12 deletions(-) diff --git a/src/pages/business_emergencyAccident/components/EventWarningManagement.js b/src/pages/business_emergencyAccident/components/EventWarningManagement.js index fd41e77..5eb7c2d 100644 --- a/src/pages/business_emergencyAccident/components/EventWarningManagement.js +++ b/src/pages/business_emergencyAccident/components/EventWarningManagement.js @@ -386,21 +386,21 @@ const EventWarningManagement = () => { title: '预警类型', dataIndex: 'alertType', key: 'alertType', - width: 120, + width: 110, align: 'center' }, { title: '来源渠道', dataIndex: 'sourceChannel', key: 'sourceChannel', - width: 150, + width: 130, align: 'center' }, { title: '影响区域', dataIndex: 'affectedArea', key: 'affectedArea', - width: 180, + width: 160, align: 'center' }, { @@ -412,7 +412,7 @@ const EventWarningManagement = () => { render: (text) => { let color = '#FF3E48'; let backgroundColor = '#FFE0E2'; - + if (text === '橙色预警') { color = '#FF8800'; backgroundColor = '#FFF3E9'; @@ -420,9 +420,9 @@ const EventWarningManagement = () => { color = '#00AAFA'; backgroundColor = '#DAF3FF'; } - + return ( - + {text} ); @@ -441,18 +441,31 @@ const EventWarningManagement = () => { key: 'status', width: 100, align: 'center', - render: (text) => { - let color ="" + render: (text) => { + let color = "#00AAFA" + let backgroundColor = "#DAF3FF" + if (text === '处理中') { + color = '#FF8800'; + backgroundColor = '#FFF3E9'; + } else if (text === '已处理') { + color = '#44BB5F'; + backgroundColor = '#D8F7DE'; + } + + return ( + {text} + ) + } }, { title: '操作', key: 'action', - width: 120, + width: 140, align: 'center', render: (_, record) => ( -
- - +
+ +
) }