forked from ddrilling/asb_cloud_front
В аналитике скрыт выбор при отсутствии разрешения
This commit is contained in:
parent
a275bd20c7
commit
6b1523f0ef
@ -171,9 +171,9 @@ export const WellCompositeSections = memo(({ idWell, statsWells, selectedSection
|
||||
},
|
||||
]
|
||||
|
||||
const rowSelection = {
|
||||
const rowSelection = hasPermission('WellOperation.edit') && {
|
||||
selectedRowKeys: selectedWellsKeys,
|
||||
onChange: (keys, items) => hasPermission('WellOperation.edit') && invokeWebApiWrapperAsync(
|
||||
onChange: (keys, items) => invokeWebApiWrapperAsync(
|
||||
async () => {
|
||||
const selectedSections = items.map((row) => ({idWell, idWellSrc: row.id, idWellSectionType: row.sectionId}))
|
||||
await WellCompositeService.save(idWell, selectedSections)
|
||||
|
Loading…
Reference in New Issue
Block a user