派生自 wuyushui/SewerAndRainNetwork

YANGDL
2020-12-16 70ebfb918eed4a0d188d1f3aed387de2ab9586bc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
import $http from '@utils/axios'
import * as Service from './services'
// const $HOST = 'http://10.238.221.113'
// 测试环境IP:http://10.238.221.113
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)
    }
 
}