事件预警管理页面

main
wangyunfei 1 month ago
parent 7d2b407b48
commit 1badf05ea3

@ -386,21 +386,21 @@ const EventWarningManagement = () => {
title: '预警类型', title: '预警类型',
dataIndex: 'alertType', dataIndex: 'alertType',
key: 'alertType', key: 'alertType',
width: 120, width: 110,
align: 'center' align: 'center'
}, },
{ {
title: '来源渠道', title: '来源渠道',
dataIndex: 'sourceChannel', dataIndex: 'sourceChannel',
key: 'sourceChannel', key: 'sourceChannel',
width: 150, width: 130,
align: 'center' align: 'center'
}, },
{ {
title: '影响区域', title: '影响区域',
dataIndex: 'affectedArea', dataIndex: 'affectedArea',
key: 'affectedArea', key: 'affectedArea',
width: 180, width: 160,
align: 'center' align: 'center'
}, },
{ {
@ -412,7 +412,7 @@ const EventWarningManagement = () => {
render: (text) => { render: (text) => {
let color = '#FF3E48'; let color = '#FF3E48';
let backgroundColor = '#FFE0E2'; let backgroundColor = '#FFE0E2';
if (text === '橙色预警') { if (text === '橙色预警') {
color = '#FF8800'; color = '#FF8800';
backgroundColor = '#FFF3E9'; backgroundColor = '#FFF3E9';
@ -420,9 +420,9 @@ const EventWarningManagement = () => {
color = '#00AAFA'; color = '#00AAFA';
backgroundColor = '#DAF3FF'; backgroundColor = '#DAF3FF';
} }
return ( return (
<Tag style={{ color, backgroundColor, border: 'none'}}> <Tag style={{ color, backgroundColor, border: 'none' }}>
{text} {text}
</Tag> </Tag>
); );
@ -441,18 +441,31 @@ const EventWarningManagement = () => {
key: 'status', key: 'status',
width: 100, width: 100,
align: 'center', align: 'center',
render: (text) => { render: (text) => {
let color ="" let color = "#00AAFA"
let backgroundColor = "#DAF3FF"
if (text === '处理中') {
color = '#FF8800';
backgroundColor = '#FFF3E9';
} else if (text === '已处理') {
color = '#44BB5F';
backgroundColor = '#D8F7DE';
}
return (
<Tag style={{ color, backgroundColor, border: 'none' }}>{text}</Tag>
)
}
}, },
{ {
title: '操作', title: '操作',
key: 'action', key: 'action',
width: 120, width: 140,
align: 'center', align: 'center',
render: (_, record) => ( render: (_, record) => (
<div className={styles.actionButtons}> <div className={styles.actionButtons} style={{display:"flex", gap:"20px"}}>
<Button type="link" size="small" icon={<EditOutlined />}>编辑</Button> <Button type="link" size="small" style={{color:"#2E4CD4"}}>编辑</Button>
<Button type="link" size="small" icon={<EyeOutlined />}>查看</Button> <Button type="link" size="small" style={{color:"#2E4CD4"}}>查看</Button>
</div> </div>
) )
} }

Loading…
Cancel
Save