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.
51 lines
1.3 KiB
51 lines
1.3 KiB
'use strict';
|
|
|
|
import { basicAction } from '@peace/utils'
|
|
import { ApiTable } from '$utils'
|
|
export function getRoadadministration (query) {
|
|
return dispatch => basicAction({
|
|
type: 'get',
|
|
dispatch: dispatch,
|
|
query: query,
|
|
actionType: 'GET_LU_ZHENG',
|
|
url: ApiTable.getRoadadministration,
|
|
msg: { option: '获取路政信息' },
|
|
// reducer: { name: 'chcekList' }
|
|
});
|
|
}
|
|
|
|
|
|
export function addRoadadministration (params) {
|
|
return dispatch => basicAction({
|
|
type: 'post',
|
|
data: params,
|
|
dispatch: dispatch,
|
|
actionType: 'ADD_LU_ZHENG',
|
|
url: ApiTable.addRoadadministration,
|
|
msg: { option: '新增路政信息' },
|
|
});
|
|
}
|
|
|
|
|
|
export function delRoadadministration (id) {
|
|
return dispatch => basicAction({
|
|
type: 'delete',
|
|
dispatch: dispatch,
|
|
actionType: 'DEL_LU_ZHENG',
|
|
url: ApiTable.delRoadadministration.replace(':id', id),
|
|
msg: { option: '删除路政信息' },
|
|
})
|
|
}
|
|
export function modifyRoadadministration (id, params) {
|
|
return dispatch => basicAction({
|
|
type: 'put',
|
|
data: params,
|
|
dispatch: dispatch,
|
|
actionType: 'EDIT_LU_ZHENG',
|
|
url: ApiTable.modifyRoadadministration.replace(':id', id),
|
|
msg: { option: '修改路政信息' },
|
|
});
|
|
}
|
|
|
|
|
|
|
|
|