forked from ddrilling/asb_cloud_front
В аналитике скрыт выбор при отсутствии разрешения
This commit is contained in:
parent
437746a5d5
commit
ec990b55b5
@ -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