Commit efa9b0be authored by 皮倩雯's avatar 皮倩雯

fix: '巡检反馈列表样式优化'

parent f4678f7f
Pipeline #76614 passed with stages
...@@ -183,4 +183,8 @@ iframe { ...@@ -183,4 +183,8 @@ iframe {
.ant-tooltip-content { .ant-tooltip-content {
position: static !important; position: static !important;
} }
.ant-tooltip-placement-topLeft .ant-tooltip-arrow {
left: 5px !important;
transform: translateY(0) !important;
}
} }
\ No newline at end of file
...@@ -41,6 +41,7 @@ const patrolFeedback = () => { ...@@ -41,6 +41,7 @@ const patrolFeedback = () => {
dataIndex: 'layerName', dataIndex: 'layerName',
key: 'layerName', key: 'layerName',
width: 150, width: 150,
fixed: 'left',
onCell: () => ({ onCell: () => ({
style: { style: {
maxWidth: 150, maxWidth: 150,
...@@ -62,15 +63,16 @@ const patrolFeedback = () => { ...@@ -62,15 +63,16 @@ const patrolFeedback = () => {
dataIndex: 'groupType', dataIndex: 'groupType',
key: 'groupType', key: 'groupType',
align: 'center', align: 'center',
width: 150,
}, },
{ {
title: 'GIS图层', title: 'GIS图层',
dataIndex: 'gisLayer', dataIndex: 'gisLayer',
key: 'gisLayer', key: 'gisLayer',
width: 100, width: 200,
onCell: () => ({ onCell: () => ({
style: { style: {
maxWidth: 100, maxWidth: 200,
overflow: 'hidden', overflow: 'hidden',
whiteSpace: 'nowrap', whiteSpace: 'nowrap',
textOverflow: 'ellipsis', textOverflow: 'ellipsis',
...@@ -78,11 +80,7 @@ const patrolFeedback = () => { ...@@ -78,11 +80,7 @@ const patrolFeedback = () => {
}, },
}), }),
align: 'center', align: 'center',
render: record => ( render: record => <Tooltip title={record}>{record}</Tooltip>,
<Tooltip placement="topLeft" title={record}>
{record}
</Tooltip>
),
}, },
{ {
title: 'GIS条件', title: 'GIS条件',
...@@ -120,11 +118,7 @@ const patrolFeedback = () => { ...@@ -120,11 +118,7 @@ const patrolFeedback = () => {
}, },
}), }),
align: 'center', align: 'center',
render: record => ( render: record => <Tooltip title={record}>{record}</Tooltip>,
<Tooltip placement="topLeft" title={record}>
{record}
</Tooltip>
),
}, },
{ {
title: '关联事件', title: '关联事件',
...@@ -141,11 +135,7 @@ const patrolFeedback = () => { ...@@ -141,11 +135,7 @@ const patrolFeedback = () => {
}, },
}), }),
align: 'center', align: 'center',
render: record => ( render: record => <Tooltip title={record}>{record}</Tooltip>,
<Tooltip placement="topLeft" title={record}>
{record}
</Tooltip>
),
}, },
{ {
title: '字段集', title: '字段集',
...@@ -186,6 +176,8 @@ const patrolFeedback = () => { ...@@ -186,6 +176,8 @@ const patrolFeedback = () => {
ellipsis: true, ellipsis: true,
key: 'action', key: 'action',
align: 'center', align: 'center',
width: 100,
fixed: 'right',
render: (text, record) => ( render: (text, record) => (
<Space> <Space>
<Tooltip title="修改"> <Tooltip title="修改">
...@@ -460,7 +452,7 @@ const patrolFeedback = () => { ...@@ -460,7 +452,7 @@ const patrolFeedback = () => {
})} })}
columns={columns} columns={columns}
dataSource={tableData[pickItem]} dataSource={tableData[pickItem]}
scroll={{ y: 'calc(100% - 205px)', x: 'max-content' }} scroll={{ y: 'calc(100% - 40px)', x: 'max-content' }}
pagination={{ pagination={{
showTotal: (total, range) => `第${range[0]}-${range[1]} 条/共 ${total} 条`, showTotal: (total, range) => `第${range[0]}-${range[1]} 条/共 ${total} 条`,
pageSizeOptions: [10, 20, 50, 100], pageSizeOptions: [10, 20, 50, 100],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment