217 lines
4.9 KiB
JavaScript
217 lines
4.9 KiB
JavaScript
import { request } from './request'
|
|
import { encrypt } from './decrypt'
|
|
import { ysdpPost } from './ysdpRequest'
|
|
|
|
var ipRoot = "http://140.206.138.190:8900"
|
|
var ip = "http://140.206.138.190:8905"
|
|
|
|
var getToken = "/app/getToken"
|
|
var getTblMetroInout = ipRoot + '/api/xckf/getTblMetroInout/v1'
|
|
var getDsjzxQxjGdybHour = ipRoot + '/api/xckf/getDsjzxQxjGdybHour/v1'
|
|
var getOperationInfo = ipRoot + '/api/xckf/getOperationInfo/v1'
|
|
var getWeiboCards = ipRoot + '/api/xckf/getWeiboCards/v1'
|
|
var getWeiboComments = ipRoot + '/api/xckf/getWeiboComments/v1'
|
|
var getWeiboCardsComment = ipRoot + '/api/xckf/getWeiboCardsComment/v1'
|
|
var getMetroSsxEmergency = ipRoot + '/api/xckf/getMetroSsxEmergency/v1'
|
|
var getYjEntrance = ipRoot + '/api/xckf/getYjEntrance/v1'
|
|
var updayeYjEntrance = ipRoot + '/api/xckf/updayeYjEntrance/v1'
|
|
var getGradeSubwayTarget = ipRoot + '/api/xckf/getGradeSubwayTarget/v1'
|
|
var getTos = ipRoot + '/api/xckf/getTos/v1'
|
|
var getBusInfo = ipRoot + '/api/xckf/getBusInfo/v1'
|
|
var updayeBusEntrance = ipRoot + '/api/xckf/updayeBusEntrance/v1'
|
|
var getHotEventList = ipRoot + '/api/xckf/getHotEventList/v1'
|
|
var updateHotEvent = ipRoot + '/api/xckf/updateHotEvent/v1'
|
|
var xcImg = ip + '/1734.jpg'
|
|
var xcImgGd = ip + '/lineCrossImg/1734.jpg'
|
|
|
|
var server = {
|
|
getMetroUrl() {
|
|
return "http://140.206.138.190:8899/subway/#/metro"
|
|
},
|
|
|
|
getIp() {
|
|
return ipRoot
|
|
},
|
|
|
|
getXcImg() {
|
|
return xcImg
|
|
},
|
|
|
|
getXcImgGd() {
|
|
return xcImgGd
|
|
},
|
|
|
|
getToken() {
|
|
return request.get(ipRoot + getToken, {})
|
|
},
|
|
|
|
getTblMetroInout() {
|
|
return request.post(getTblMetroInout, {})
|
|
},
|
|
|
|
getDsjzxQxjGdybHour() {
|
|
return request.post(getDsjzxQxjGdybHour, {})
|
|
},
|
|
|
|
getOperationInfo() {
|
|
return request.post(getOperationInfo, {
|
|
statId: ""
|
|
})
|
|
},
|
|
|
|
getWeiboCards(keyword, pageNum, pageSize) {
|
|
return request.post(getWeiboCards, {
|
|
keyword: encrypt(keyword),
|
|
pageNum: encrypt(pageNum),
|
|
pageSize: encrypt(pageSize)
|
|
})
|
|
},
|
|
|
|
getWeiboComments(keyword, pageNum, pageSize) {
|
|
return request.post(getWeiboComments, {
|
|
keyword: encrypt(keyword),
|
|
pageNum: encrypt(pageNum),
|
|
pageSize: encrypt(pageSize)
|
|
})
|
|
},
|
|
|
|
getWeiboCardsComment() {
|
|
return request.post(getWeiboCardsComment, {})
|
|
},
|
|
|
|
getMetroSsxEmergency() {
|
|
return request.post(getMetroSsxEmergency, {})
|
|
},
|
|
|
|
getYjEntrance(statId) {
|
|
return request.post(getYjEntrance, {
|
|
statId: encrypt(statId)
|
|
})
|
|
},
|
|
|
|
updayeYjEntrance(statId, entrance) {
|
|
return request.post(updayeYjEntrance, {
|
|
statId: encrypt(statId),
|
|
entrance: encrypt(entrance)
|
|
})
|
|
},
|
|
|
|
getGradeSubwayTarget(statId, nf, jd) {
|
|
return request.post(getGradeSubwayTarget, {
|
|
statId: encrypt(statId),
|
|
nf: encrypt(nf),
|
|
jd: encrypt(jd)
|
|
})
|
|
},
|
|
|
|
getTos() {
|
|
return request.post(getTos, {})
|
|
},
|
|
|
|
getBusInfo(statId) {
|
|
return request.post(getBusInfo, {
|
|
statId: encrypt(statId)
|
|
})
|
|
},
|
|
|
|
updayeBusEntrance(statId, entrance) {
|
|
return request.post(updayeBusEntrance, {
|
|
statId: encrypt(statId),
|
|
entrance: encrypt(entrance)
|
|
})
|
|
},
|
|
|
|
getHotEventList() {
|
|
return request.post(getHotEventList, {})
|
|
},
|
|
|
|
updateHotEvent(id, status) {
|
|
return request.post(updateHotEvent, {
|
|
id: encrypt(id),
|
|
status: encrypt(status)
|
|
})
|
|
},
|
|
|
|
getOperateInfo() {
|
|
return ysdpPost('/api/getOperateInfo/v1')
|
|
},
|
|
|
|
getCommonMonitor() {
|
|
return ysdpPost('/api/getCommonMonitor/v1')
|
|
},
|
|
|
|
getDutyList() {
|
|
return ysdpPost('/api/getDutyList/v1')
|
|
},
|
|
|
|
getStationMaxList() {
|
|
return ysdpPost('/api/getStationMaxList/v1')
|
|
},
|
|
|
|
getIndicator() {
|
|
return ysdpPost('/api/getIndicator/v1')
|
|
},
|
|
|
|
getQxjGdybHour() {
|
|
return ysdpPost('/api/getQxjGdybHour/v1')
|
|
},
|
|
|
|
getYunyingInfo() {
|
|
return ysdpPost('/api/getYunyingInfo/v1')
|
|
},
|
|
|
|
getTaskNotice() {
|
|
return ysdpPost('/api/getTaskNotice/v1')
|
|
},
|
|
|
|
getInOutStationRank() {
|
|
return ysdpPost('/api/traffic/getInOutStationRank/v1')
|
|
},
|
|
|
|
getTransferStationRank() {
|
|
return ysdpPost('/api/traffic/getTransferStationRank/v1')
|
|
},
|
|
|
|
getLineList() {
|
|
return ysdpPost('/api/traffic/getLineList/v1')
|
|
},
|
|
|
|
getLinePassengerFlow() {
|
|
return ysdpPost('/api/traffic/getLinePassengerFlow/v1')
|
|
},
|
|
|
|
getStationPassengerFlow(stationId) {
|
|
return ysdpPost('/api/traffic/getStationPassengerFlow/v1', { stationId })
|
|
},
|
|
|
|
getStationsByLine(lineId) {
|
|
return ysdpPost('/api/traffic/getStationsByLine/v1', { lineId })
|
|
},
|
|
|
|
getBigActivityList({ metroLine, metroStation, activityMonth }) {
|
|
return ysdpPost('/api/traffic/getBigActivityList/v1', {
|
|
metroLine,
|
|
metroStation,
|
|
activityMonth
|
|
})
|
|
},
|
|
|
|
cleanTrafficCache() {
|
|
return ysdpPost('/api/traffic/cleanCache')
|
|
},
|
|
|
|
cleanApiCache() {
|
|
return ysdpPost('/api/cleanApiCache')
|
|
},
|
|
|
|
getErpExecPlanCountList() {
|
|
return ysdpPost('/api/getErpExecPlanCountList/v1')
|
|
},
|
|
|
|
getErpWorkOrderCountList() {
|
|
return ysdpPost('/api/getErpWorkOrderCountList/v1')
|
|
}
|
|
}
|
|
|
|
export default server
|