四好公路
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

37 lines
1.1 KiB

'use strict';
import { basicAction } from '@peace/utils'
import { ApiTable } from '$utils'
export function reportRectify (timeRange) {
return dispatch => basicAction({
type: 'get',
dispatch: dispatch,
actionType: 'GET_REPORT_RECTIFY',
url: `${ApiTable.getReportRectify}?startTime=${timeRange ? timeRange[0] : ''}&endTime=${timeRange ? timeRange[1] : ''}`,
msg: {},
reducer: { name: 'reportRectify' }
});
}
export function reportRectifyDetail (day, depId) {
return dispatch => basicAction({
type: 'get',
dispatch: dispatch,
actionType: 'GET_REPORT_RECTIFY_DETAIL',
url: `${ApiTable.getReportRectifyDetail}?day=${day}&depId=${depId}`,
msg: {},
reducer: { name: 'reportRectifyDetail' }
});
}
export function compileReportRectifyDetail (data) {
return dispatch => basicAction({
type: 'post',
dispatch: dispatch,
data,
actionType: 'COMPILE_REPORT_RECTIFY_DETAIL',
url: `${ApiTable.compileReportRectifyDetail}`,
msg: { option: '保存信息' },
});
}