forked from ddrilling/asb_cloud_front
Исправлено название парсера редактирования расписания бурильщиков
This commit is contained in:
parent
fb0cc1637b
commit
c6b693857c
@ -45,7 +45,7 @@ export const DrillerSchedule = memo(({ drillers, loading, onChange }) => {
|
||||
setScheduleModalVisible(false)
|
||||
}, [])
|
||||
|
||||
const newScheduleParser = useCallback((record) => ({ ...record, idWell }), [idWell])
|
||||
const recordParser = useCallback((record) => ({ ...record, idWell }), [idWell])
|
||||
|
||||
const isLoading = useMemo(() => loading || showLoader, [loading, showLoader])
|
||||
|
||||
@ -61,11 +61,11 @@ export const DrillerSchedule = memo(({ drillers, loading, onChange }) => {
|
||||
}
|
||||
|
||||
return {
|
||||
add: { ...handlerProps, action: 'insert', actionName: 'Добавление расписания', newScheduleParser },
|
||||
edit: { ...handlerProps, action: 'update', actionName: 'Редактирование расписания', newScheduleParser },
|
||||
add: { ...handlerProps, action: 'insert', actionName: 'Добавление расписания', recordParser },
|
||||
edit: { ...handlerProps, action: 'update', actionName: 'Редактирование расписания', recordParser },
|
||||
delete: { ...handlerProps, action: 'delete', actionName: 'Удаление расписания', permission: 'Schedule.delete' },
|
||||
}
|
||||
}, [updateSchedule, newScheduleParser])
|
||||
}, [updateSchedule, recordParser])
|
||||
|
||||
const scheduleColumns = useMemo(() => {
|
||||
const options = drillers.map(({ id, name, surname, patronymic }) => ({
|
||||
|
Loading…
Reference in New Issue
Block a user