Commit 0c7c176c authored by 皮倩雯's avatar 皮倩雯

fix: '消息平台配置优化'

parent 0adf9d2f
Pipeline #64697 passed with stages
...@@ -40,7 +40,22 @@ const patrolFeedback = () => { ...@@ -40,7 +40,22 @@ const patrolFeedback = () => {
title: '巡检对象', title: '巡检对象',
dataIndex: 'layerName', dataIndex: 'layerName',
key: 'layerName', key: 'layerName',
width: 150,
onCell: () => ({
style: {
maxWidth: 150,
overflow: 'hidden',
whiteSpace: 'nowrap',
textOverflow: 'ellipsis',
cursor: 'pointer',
},
}),
align: 'center', align: 'center',
render: record => (
<Tooltip placement="topLeft" title={record}>
{record}
</Tooltip>
),
}, },
{ {
title: '分组', title: '分组',
...@@ -52,13 +67,43 @@ const patrolFeedback = () => { ...@@ -52,13 +67,43 @@ const patrolFeedback = () => {
title: 'GIS图层', title: 'GIS图层',
dataIndex: 'gisLayer', dataIndex: 'gisLayer',
key: 'gisLayer', key: 'gisLayer',
width: 100,
onCell: () => ({
style: {
maxWidth: 100,
overflow: 'hidden',
whiteSpace: 'nowrap',
textOverflow: 'ellipsis',
cursor: 'pointer',
},
}),
align: 'center', align: 'center',
render: record => (
<Tooltip placement="topLeft" title={record}>
{record}
</Tooltip>
),
}, },
{ {
title: 'GIS条件', title: 'GIS条件',
dataIndex: 'gisFilterValue', dataIndex: 'gisFilterValue',
key: 'gisFilterValue', key: 'gisFilterValue',
width: 100,
onCell: () => ({
style: {
maxWidth: 100,
overflow: 'hidden',
whiteSpace: 'nowrap',
textOverflow: 'ellipsis',
cursor: 'pointer',
},
}),
align: 'center', align: 'center',
render: record => (
<Tooltip placement="topLeft" title={record}>
{record}
</Tooltip>
),
}, },
{ {
title: '反馈表', title: '反馈表',
...@@ -106,7 +151,7 @@ const patrolFeedback = () => { ...@@ -106,7 +151,7 @@ const patrolFeedback = () => {
title: '字段集', title: '字段集',
dataIndex: 'fields', dataIndex: 'fields',
key: 'fields', key: 'fields',
width: 100, width: 50,
align: 'center', align: 'center',
}, },
// { // {
...@@ -128,7 +173,7 @@ const patrolFeedback = () => { ...@@ -128,7 +173,7 @@ const patrolFeedback = () => {
dataIndex: 'roles', dataIndex: 'roles',
key: 'roles', key: 'roles',
align: 'center', align: 'center',
width: 100, width: 50,
}, },
// { // {
// title: '分组', // title: '分组',
...@@ -187,6 +232,8 @@ const patrolFeedback = () => { ...@@ -187,6 +232,8 @@ const patrolFeedback = () => {
if (other.length > 0) { if (other.length > 0) {
data.未分组 = other; data.未分组 = other;
setGroupName(['区域巡检', 'DMA巡检', '未分组']); setGroupName(['区域巡检', 'DMA巡检', '未分组']);
} else {
setGroupName(['区域巡检', 'DMA巡检']);
} }
} }
console.log(data); console.log(data);
......
...@@ -95,6 +95,8 @@ ...@@ -95,6 +95,8 @@
position: relative; position: relative;
transition: width 0.5s; transition: width 0.5s;
.title { .title {
margin: 16px 0 10px 16px; margin: 16px 0 10px 16px;
display: inline-block; display: inline-block;
......
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