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.
204 lines
5.9 KiB
204 lines
5.9 KiB
'use strict';
|
|
|
|
import { basicAction, clearData } from '@peace/utils'
|
|
import { ApiTable } from '$utils'
|
|
|
|
export function getMembers (orgId) {
|
|
return dispatch => basicAction({
|
|
type: 'get',
|
|
dispatch: dispatch,
|
|
actionType: 'GET_MEMBERS',
|
|
url: `${ApiTable.getEnterprisesMembers.replace('{enterpriseId}', orgId)}`,
|
|
msg: { error: '获取用户列表失败' },
|
|
reducer: { name: 'members' }
|
|
});
|
|
}
|
|
|
|
|
|
//获取大屏道路统计信息
|
|
export function getdaolutongji () {
|
|
return dispatch => basicAction({
|
|
type: 'get',
|
|
dispatch: dispatch,
|
|
actionType: 'GET_DAOLUTONGJI',
|
|
url: ApiTable.getBgroadstatistics,
|
|
msg: { error: '获取道路统计信息失败' },
|
|
// reducer: { name: 'members' }
|
|
});
|
|
}
|
|
|
|
//获取治超监测点处理数据信息
|
|
export function getjiandmanage () {
|
|
return dispatch => basicAction({
|
|
type: 'get',
|
|
dispatch: dispatch,
|
|
actionType: 'GET_JIANDMANAGE',
|
|
url: ApiTable.getzhichaomanager,
|
|
msg: { error: '获取治超监测点处理数据信息失败' },
|
|
// reducer: { name: 'members' }
|
|
});
|
|
}
|
|
|
|
|
|
//获取治超详情列
|
|
export function getjiandetail () {
|
|
return dispatch => basicAction({
|
|
type: 'get',
|
|
dispatch: dispatch,
|
|
actionType: 'GET_JIANDETAIL',
|
|
url: ApiTable.getzhichaodetail,
|
|
msg: { error: '获取治超监测点处理数据信息失败' },
|
|
// reducer: { name: 'members' }
|
|
});
|
|
}
|
|
// <<<<<<< HEAD
|
|
// 获取运政数据统计
|
|
export function getyunzheng () {
|
|
return dispatch => basicAction({
|
|
type: 'get',
|
|
dispatch: dispatch,
|
|
actionType: 'GET_YUNZHENG',
|
|
url: ApiTable.getYunZheng,
|
|
msg: { error: '获取运政统计数据信息' },
|
|
// reducer: { name: 'members' }
|
|
});
|
|
}
|
|
// 获取道路养护数据统计及列表
|
|
export function getRoadmaintain () {
|
|
return dispatch => basicAction({
|
|
type: 'get',
|
|
dispatch: dispatch,
|
|
actionType: 'GET_ROADMAINTAIN',
|
|
url: ApiTable.getroadmaintain,
|
|
msg: { error: '获取道路养护数据信息' },
|
|
// reducer: { name: 'members' }
|
|
});
|
|
}
|
|
// 获取治超详情列
|
|
export function getZhichaolist () {
|
|
return dispatch => basicAction({
|
|
type: 'get',
|
|
dispatch: dispatch,
|
|
actionType: 'GET_ZHICHAOLIST',
|
|
url: ApiTable.getzhichaoList,
|
|
msg: { error: '获取治超详情列表数据' },
|
|
// reducer: { name: 'members' }
|
|
// =======
|
|
});
|
|
}
|
|
|
|
//获取宣传数据
|
|
export function getxuanchuan () {
|
|
return dispatch => basicAction({
|
|
type: 'get',
|
|
dispatch: dispatch,
|
|
actionType: 'GET_XUANCHUAN',
|
|
url: ApiTable.getpropagata,
|
|
msg: { error: '获取宣传信息失败' },
|
|
// reducer: { name: 'members' }
|
|
});
|
|
}
|
|
|
|
//获取公交车辆层级信息
|
|
export function getBusTierList () {
|
|
return dispatch => basicAction({
|
|
type: 'get',
|
|
dispatch: dispatch,
|
|
actionType: 'GET_BUSTIER',
|
|
url: ApiTable.getBusTier,
|
|
msg: { error: '获取公交车辆层级信息失败' },
|
|
reducer: { name: 'busTier' }
|
|
// >>>>>>> 385f017aeac33adc39a31e75faf6254a1a881d16
|
|
});
|
|
}
|
|
//获取道路拥堵指数
|
|
export function getGodshuju () {
|
|
return dispatch => basicAction({
|
|
type: 'get',
|
|
dispatch: dispatch,
|
|
actionType: 'GET_GODSHUJU',
|
|
url: ApiTable.getgodshuju,
|
|
msg: { error: '获取道路拥堵指数失败' },
|
|
// reducer: { name: 'busTier' }
|
|
// >>>>>>> 385f017aeac33adc39a31e75faf6254a1a881d16
|
|
});
|
|
}
|
|
|
|
//获取路政列表
|
|
export function getHighwayList () {
|
|
return dispatch => basicAction({
|
|
type: 'get',
|
|
dispatch: dispatch,
|
|
actionType: 'GET_HIGHWAYS',
|
|
url: ApiTable.getHighways,
|
|
msg: { error: '获取路政列表失败' },
|
|
reducer: { name: 'highways' }
|
|
});
|
|
}
|
|
//获取道路养护统计及列表
|
|
export function getRoadMaintenanceList () {
|
|
return dispatch => basicAction({
|
|
type: 'get',
|
|
dispatch: dispatch,
|
|
actionType: 'GET_ROAD_MAINTENANCES',
|
|
url: ApiTable.getRoadMaintenance,
|
|
msg: { error: '获取道路养护列表失败' },
|
|
reducer: { name: 'roadMaintenances' }
|
|
});
|
|
}
|
|
//获取管养单位概况
|
|
export function getCustodyunit () {
|
|
return dispatch => basicAction({
|
|
type: 'get',
|
|
dispatch: dispatch,
|
|
actionType: 'GET_CUSTODY_UNIT',
|
|
url: ApiTable.getCustodyunit,
|
|
msg: { error: '获取管养单位概况失败' },
|
|
// reducer: { name: 'roadMaintenances' }
|
|
});
|
|
}
|
|
|
|
export function getNearestAssessData (query = {}) {
|
|
return dispatch => basicAction({
|
|
type: 'get',
|
|
query,
|
|
dispatch: dispatch,
|
|
actionType: 'GET_NEAREST_ASSESS_DATA',
|
|
url: ApiTable.nearestAssessData,
|
|
msg: { error: '获取各乡镇考核得分情况失败' },
|
|
});
|
|
}
|
|
|
|
export function getVideoCenterList () {
|
|
return dispatch => basicAction({
|
|
type: 'get',
|
|
dispatch: dispatch,
|
|
actionType: 'GET_VIDEO_CENTER_LIST',
|
|
url: ApiTable.videoCenterList,
|
|
msg: { error: '获取视频中心列表失败' },
|
|
reducer: { name: 'videoCenterList' }
|
|
});
|
|
}
|
|
|
|
export function getBusRunTime () {
|
|
return dispatch => basicAction({
|
|
type: 'get',
|
|
dispatch: dispatch,
|
|
actionType: 'GET_BUS_REALTIME_LIST',
|
|
url: ApiTable.busRealtimeList,
|
|
msg: { error: '获取公交实时信息失败' },
|
|
reducer: { name: 'busRunTime', params: { noClear: true } }
|
|
});
|
|
}
|
|
|
|
export const getBuslineActionType = 'GET_BUS_LINE'
|
|
export function getBusline (busLicence) {
|
|
return dispatch => basicAction({
|
|
type: 'get',
|
|
dispatch: dispatch,
|
|
actionType: getBuslineActionType,
|
|
url: ApiTable.busLine + `?busLicence=${busLicence}`,
|
|
msg: { error: '获取公交路线信息失败' },
|
|
reducer: { name: 'busLine', params: { noClear: true } }
|
|
});
|
|
}
|