CF2-55: Fixed row selection (prevented selection of several rows at a time)

This commit is contained in:
KharchenkoVV 2021-08-26 11:32:19 +05:00
parent ac987546b3
commit ed4fe093e0
2 changed files with 3 additions and 6 deletions

View File

@ -123,13 +123,12 @@ export default function ClusterSections({clusterData}) {
useEffect(() => { useEffect(() => {
let resArr = [] let resArr = []
let i = 1;
clusterData.statsWells?.forEach(el => { clusterData.statsWells?.forEach(el => {
el.sections.forEach(section => { el.sections.forEach(section => {
let row = { let row = {
key: el.id, key: section.id + i++,
id: el.id, id: section.id + i++,
caption: el.caption, caption: el.caption,
sectionType: section.caption, sectionType: section.caption,
sectionWellDepthPlan: section.plan.wellDepthEnd, sectionWellDepthPlan: section.plan.wellDepthEnd,
@ -179,7 +178,6 @@ export default function ClusterSections({clusterData}) {
scroll={{ x: true, y: 620}} scroll={{ x: true, y: 620}}
rowSelection={rowSelection} rowSelection={rowSelection}
pagination={false} pagination={false}
className={'mt-20px'}
/> />
<Divider/> <Divider/>
<Badge.Ribbon text="комбинированная скважина" color="gray"> <Badge.Ribbon text="комбинированная скважина" color="gray">

View File

@ -108,7 +108,6 @@ export default function ClusterWells({clusterData}) {
bordered bordered
pagination={false} pagination={false}
rowKey={(record) => record.id} rowKey={(record) => record.id}
className={'mt-20px'}
/> />
) )
} }