forked from ddrilling/asb_cloud_front
CF2-55: Fixed row selection (prevented selection of several rows at a time)
This commit is contained in:
parent
ac987546b3
commit
ed4fe093e0
@ -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">
|
||||||
|
@ -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'}
|
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user