|
|
@ -3,7 +3,7 @@ |
|
|
|
import { basicAction } from '@peace/utils' |
|
|
|
import { ApiTable } from '$utils' |
|
|
|
|
|
|
|
export function getFireAlarmList(query) { |
|
|
|
export function getFireAlarmList (query) { |
|
|
|
return dispatch => basicAction({ |
|
|
|
type: 'get', |
|
|
|
dispatch: dispatch, |
|
|
@ -15,7 +15,7 @@ export function getFireAlarmList(query) { |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
export function addFireAlarm(params) { |
|
|
|
export function addFireAlarm (params) { |
|
|
|
return (dispatch) => basicAction({ |
|
|
|
type: 'post', |
|
|
|
data: params, |
|
|
@ -28,7 +28,7 @@ export function addFireAlarm(params) { |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
export function modifyFireAlarm(id, params) { |
|
|
|
export function modifyFireAlarm (id, params) { |
|
|
|
return (dispatch) => basicAction({ |
|
|
|
type: 'put', |
|
|
|
data: params, |
|
|
@ -42,7 +42,6 @@ export function modifyFireAlarm(id, params) { |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export function getVideoCenterList () { |
|
|
|
return dispatch => basicAction({ |
|
|
|
type: 'get', |
|
|
@ -65,8 +64,20 @@ export function getDetails () { |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
export function getSurroundingConditions (query = {}) { |
|
|
|
return dispatch => basicAction({ |
|
|
|
type: 'get', |
|
|
|
dispatch: dispatch, |
|
|
|
query: query, |
|
|
|
actionType: 'GET_SURROUNDING_CONDITION', |
|
|
|
url: ApiTable.surroundingConditions, |
|
|
|
msg: { error: '获取周边路况数据失败' }, |
|
|
|
// reducer: { name: 'videoCenterList' }
|
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export function getFireDevice() { |
|
|
|
export function getFireDevice () { |
|
|
|
return dispatch => basicAction({ |
|
|
|
type: 'get', |
|
|
|
dispatch: dispatch, |
|
|
@ -76,7 +87,7 @@ export function getFireDevice() { |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
export function getFireTrend() { |
|
|
|
export function getFireTrend () { |
|
|
|
return dispatch => basicAction({ |
|
|
|
type: 'get', |
|
|
|
dispatch: dispatch, |
|
|
|