| | |
| | | import $http from '@utils/axios' |
| | | import * as Service from './services' |
| | | // import $http from '@utils/axios' |
| | | // import * as Service from './services' |
| | | // const $HOST = 'http://10.238.221.113' |
| | | // 测试环境IP:http://10.238.221.113 |
| | | import axios from '@utils/axios' |
| | | import * as mapUrl from './mapUrl' |
| | | |
| | | /** |
| | | * 该方法配置 |
| | | */ |
| | | export default { |
| | | |
| | | /** **************** 一、行驶路径管理接口:*****************/ |
| | | // 1、 分页查询行驶路径数据 |
| | | getTravelPath(data) { |
| | | return $http.get(Service.HcstmsClientHwsTravelPathPager, data) |
| | | }, |
| | | // 2.根据ID查询行驶路径数据 hwsTravelPathId |
| | | getTravelPathByID(id) { |
| | | return $http.get(Service.HcstmsClientHwsTravelPathId + id, {}) |
| | | // return $http.get($HOST + '/hcstms/client/hws-travel-path/id/', data) |
| | | }, |
| | | // 3. 获取车辆和船舶信息数据 transType carriersName |
| | | getTravelPathTransInfo(data) { |
| | | return $http.get(Service.HcstmsClientHwsTravelPathGetTransInfo, data) |
| | | }, |
| | | // 4. 分页获取关联车辆信息数据 current=1&size=10&hwsTravelPathId=21 |
| | | getTravelPathFindVehiclePage(data) { |
| | | return $http.get(Service.HcstmsClientHwsTravePathFindVehiclePage, data) |
| | | }, |
| | | // 5. 分页获取关联船舶信息数据 current=1&size=10&hwsTravelPathId=18 |
| | | getTravelPathFindShipsPage(data) { |
| | | return $http.get(Service.HcstmsClientHwsTravelPathFindShipsPage, data) |
| | | }, |
| | | /** ******************************* 二、行驶路径提醒接口:*********************************/ |
| | | // 1.分页查询行驶路径提醒数据 current=1&size=10 |
| | | getTravelPathWarnPager(data) { |
| | | return $http.get(Service.HcstmsClientTravelPathWarnPager, data) |
| | | }, |
| | | // 2.添加行驶路径提醒数据 transNumber transType hwsTravelPathName warnReason enterTime |
| | | postTravelPathItem(data) { |
| | | return $http.post(Service.HcstmsClientTravelPathItem, data) |
| | | }, |
| | | |
| | | /* ******************************** 三、组织机构接口:*********************************/ |
| | | // 1、根据板块编码查询企业列表信息接口 sector=1111& serviceType=1111 |
| | | getOrganizationCompanyList(data) { |
| | | return $http.get(Service.GetOrganizationCompanyList, data) |
| | | }, |
| | | /* ******************************** 四、总部-危化品首页接口:*********************************/ |
| | | // 1、查询在途载具、当日运量、当日运单、预警数量接口 sector=111&orgCode=1111 |
| | | getStatistics(data) { |
| | | return $http.get(Service.GetStatistics, data) |
| | | }, |
| | | // 2、查询板块的车辆最新位置信息 ?sector=111&orgCode=1111 |
| | | getVehiclePositionReal(data) { |
| | | return $http.get(Service.GetVehiclePositionReal, data) |
| | | }, |
| | | // 3、查询车辆历史轨迹信息 ?vehicleNumber =111&queryDate =2020-11-20 |
| | | getVehiclePositionHistory(data) { |
| | | return $http.get(Service.GetVehiclePositionHistory, data) |
| | | }, |
| | | // 4、车辆接入情况统计接口 |
| | | getStatisticsVehiclePosition(data) { |
| | | return $http.get(Service.GetStatisticsVehiclePosition, data) |
| | | }, |
| | | // 5、报警级别统计接口 startDate endDate |
| | | getStatisticsAlarmTrend(data) { |
| | | return $http.get(Service.GetStatisticsAlarmTrend, data) |
| | | }, |
| | | // 6、报警事件(大类)统计接口 startDate endDate |
| | | getStatisticsAlarmEventType(data) { |
| | | return $http.get(Service.GetStatisticsAlarmEventType, data) |
| | | }, |
| | | // 7、板块报警统计接口 startDate endDate |
| | | getStatisticsVehicleAlarm(data) { |
| | | return $http.get(Service.GetStatisticsVehicleAlarm, data) |
| | | }, |
| | | |
| | | /* ******************************** 五、综合监控首页-危化品:******************************** */ |
| | | // 1、根据车辆状态查询车辆信息 根据车辆状态(正常、报警、离线)查询运单车辆位置信息 orgSector orgCode vehicleStatus |
| | | |
| | | getTransOrderVehiclePosition(data) { // todo 这里的接口配置没有理明白 |
| | | return $http.get(Service.vehiclePosition, data) |
| | | // return $http.get($HOST + '/hcstms/client/trans-order/vehicle/position', data) |
| | | }, |
| | | // 2、查询危化品在途车辆、当日运量、当日运单、预警数量接口 接口和总部-危化品首页第1个接口一样 |
| | | |
| | | // 3、分页查询危化品运单信息 transNo=111&carrierName=1111&transMode=1&vehicleNo=111&orderState=1 |
| | | // transNo carrierName transMode vehicleNo orderState size current |
| | | getTransOrderlist(data) { // todo 这里的接口配置没有理明白 |
| | | return $http.get(Service.HcstmsClientTransOrderPager, data) |
| | | // return $http.get($HOST + '/hcstms/client/trans-order/pager', data) |
| | | }, |
| | | |
| | | getTransOrderlists(data) { // todo 这里的接口配置没有理明白 |
| | | return $http.get(Service.HcstmsClientTransOrderPagers, data) |
| | | // return $http.get($HOST + '/hcstms/client/trans-order/pager', data) |
| | | }, |
| | | |
| | | /* ******************************** 六、 安全预警报警:******************************** */ |
| | | // 1、根据报警大小类、级别查询报警信息 ?alarmCategory=1&alarmType=1&alarmlevel=3 |
| | | getVehicleAlarmList(data) { |
| | | return $http.get(Service.HcstmsClientAlarmVehicleRealPager, data) |
| | | // return $http.get($HOST + '/hcstms/client/vehicle/alarm/list', data) |
| | | }, |
| | | // 2、报警数量统计接口 startDate:String endDate:String orgCode:String orgSector:String |
| | | getAlarmVehicleReal(data) { |
| | | return $http.get(Service.HcstmsClientAlarmVehicleRealPager, data) |
| | | }, |
| | | // 3、根据车牌号查询车辆最新轨迹信息接口 ?vehicleNumber =111 |
| | | getRealVehiclePosition(data) { |
| | | return $http.get(Service.HcstmsClientPositionVehicleRealVehiclePosition, data) |
| | | }, |
| | | // 4、根据车牌号查询运单(运输中)接口 ?vehicleNo=3&orderState= |
| | | getTransOrderList(data) { |
| | | return $http.get(Service.HcstmsClientTransorderList, data) |
| | | }, |
| | | // 5、根据车牌号查询实时报警信息接口 ?vehicleNo=沪D86519 |
| | | getAlarmVehicleRealDetail(data) { |
| | | return $http.get(Service.HcstmsClientAlarmVehicleRealDetail, data) |
| | | }, |
| | | |
| | | /* ******************************** 七、危废运输首页:******************************** */ |
| | | // 1、查询在途载具、转移量、转移单数据 orgSector orgCode |
| | | getStatisticsSgisGroupByOrgCode(data) { |
| | | // return $http.get($HOST + '/hcstms/client/hws-statistics/sgis/groupByOrgCode', data) |
| | | return $http.get(Service.HcstmsClientStatisticsHwsSgis, data) |
| | | } |
| | | |
| | | getUser (data) { |
| | | return axios.get(mapUrl.GetUser, data) |
| | | }, |
| | | // 固废点 |
| | | getSolidWaste (data) { |
| | | return axios.get(mapUrl.getSolidWaste, data) |
| | | }, |
| | | // 固废点基本信息 |
| | | getSolidWasteBaseInfo (data) { |
| | | return axios.get(mapUrl.getSolidWasteBaseInfo, data) |
| | | }, |
| | | // 固废详细信息 |
| | | getSolidWasteDetail (data) { |
| | | return axios.get(mapUrl.getSolidWasteDetail, data) |
| | | }, |
| | | // 固废 数据搜索 暂时 |
| | | getSolidWasteSurveyDetail (data) { |
| | | return axios.get(mapUrl.getSolidWasteSurveyDetail, data) |
| | | }, |
| | | // 废气点加载 |
| | | getWasteGas (data) { |
| | | return axios.get(mapUrl.getWasteGas, data) |
| | | }, |
| | | // 废气明细表 |
| | | getWasteGasDetails (data) { |
| | | return axios.get(mapUrl.getWasteGasDetails, data) |
| | | }, |
| | | getWasteWater (data) { |
| | | return axios.get(mapUrl.getWasteWater, data) |
| | | }, |
| | | getCompany (data) { |
| | | return axios.get(mapUrl.getCompany, data) |
| | | } |
| | | } |