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

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

parent f4678f7f
Pipeline #76614 passed with stages
......@@ -183,4 +183,8 @@ iframe {
.ant-tooltip-content {
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 = () => {
dataIndex: 'layerName',
key: 'layerName',
width: 150,
fixed: 'left',
onCell: () => ({
style: {
maxWidth: 150,
......@@ -62,15 +63,16 @@ const patrolFeedback = () => {
dataIndex: 'groupType',
key: 'groupType',
align: 'center',
width: 150,
},
{
title: 'GIS图层',
dataIndex: 'gisLayer',
key: 'gisLayer',
width: 100,
width: 200,
onCell: () => ({
style: {
maxWidth: 100,
maxWidth: 200,
overflow: 'hidden',
whiteSpace: 'nowrap',
textOverflow: 'ellipsis',
......@@ -78,11 +80,7 @@ const patrolFeedback = () => {
},
}),
align: 'center',
render: record => (
<Tooltip placement="topLeft" title={record}>
{record}
</Tooltip>
),
render: record => <Tooltip title={record}>{record}</Tooltip>,
},
{
title: 'GIS条件',
......@@ -120,11 +118,7 @@ const patrolFeedback = () => {
},
}),
align: 'center',
render: record => (
<Tooltip placement="topLeft" title={record}>
{record}
</Tooltip>
),
render: record => <Tooltip title={record}>{record}</Tooltip>,
},
{
title: '关联事件',
......@@ -141,11 +135,7 @@ const patrolFeedback = () => {
},
}),
align: 'center',
render: record => (
<Tooltip placement="topLeft" title={record}>
{record}
</Tooltip>
),
render: record => <Tooltip title={record}>{record}</Tooltip>,
},
{
title: '字段集',
......@@ -186,6 +176,8 @@ const patrolFeedback = () => {
ellipsis: true,
key: 'action',
align: 'center',
width: 100,
fixed: 'right',
render: (text, record) => (
<Space>
<Tooltip title="修改">
......@@ -460,7 +452,7 @@ const patrolFeedback = () => {
})}
columns={columns}
dataSource={tableData[pickItem]}
scroll={{ y: 'calc(100% - 205px)', x: 'max-content' }}
scroll={{ y: 'calc(100% - 40px)', x: 'max-content' }}
pagination={{
showTotal: (total, range) => `第${range[0]}-${range[1]} 条/共 ${total} 条`,
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