2025-11-07 15:32:32 +08:00
|
|
|
import { declareRequest } from '@cqsjjb/jjb-dva-runtime';
|
|
|
|
|
|
|
|
|
|
export const accidentList = declareRequest(
|
|
|
|
|
'accidentLoading',
|
|
|
|
|
'Post > @/accident/accident/list',
|
|
|
|
|
);
|
|
|
|
|
export const accidentAdd = declareRequest(
|
|
|
|
|
'accidentLoading',
|
|
|
|
|
'Post > @/accident/accident/save'
|
|
|
|
|
);
|
|
|
|
|
export const accidentEdit = declareRequest(
|
|
|
|
|
'accidentLoading',
|
|
|
|
|
'Put > @/accident/accident/edit'
|
|
|
|
|
);
|
|
|
|
|
export const accidentDelete = declareRequest(
|
|
|
|
|
'accidentLoading',
|
|
|
|
|
'Delete > @/accident/accident/{id}'
|
|
|
|
|
);
|
|
|
|
|
export const accidentBatchDelete = declareRequest(
|
|
|
|
|
'accidentLoading',
|
2025-12-22 10:23:33 +08:00
|
|
|
'Delete > @/accident/accident/ids?ids={ids}'
|
2025-11-07 15:32:32 +08:00
|
|
|
);
|
|
|
|
|
export const accidentInfo = declareRequest('accidentLoading', 'Get > /accident/accident/{id}');
|
|
|
|
|
|
2025-11-26 08:33:41 +08:00
|
|
|
export const accidentCountByCorpinfoAndType = declareRequest(
|
|
|
|
|
'accidentLoading',
|
|
|
|
|
'Post > @/accident/accident/countByCorpinfoAndType'
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
export const getCorpInfoList = declareRequest(
|
|
|
|
|
'accidentLoading',
|
2025-12-22 10:23:33 +08:00
|
|
|
'Post > @/basicInfo/corpInfo/list'
|
2025-11-26 08:33:41 +08:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
export const accidentExport = declareRequest(
|
|
|
|
|
'accidentLoading',
|
|
|
|
|
'Post > @/accident/accident/export'
|
2025-12-22 10:23:33 +08:00
|
|
|
);
|