rt-sim-training-client/src/api/ibp.js

70 lines
1.5 KiB
JavaScript
Raw Normal View History

import request from '@/utils/request';
// 创建草稿数据 ibp
export function createIbp(params) {
return request({
url: '/api/draftIbp',
method: 'post',
data: params
});
}
// 发布IBP盘数据
export function postIbpPublish(id) {
return request({
url: `/api/draftIbp/${id}/publish`,
method: 'post'
});
}
// 分页查询IBP数据基本信息
2020-03-13 19:01:59 +08:00
export function getIbpAllList(params) {
return request({
2020-03-13 19:01:59 +08:00
url: '/api/draftIbp/list/user',
method: 'get',
2020-03-13 19:01:59 +08:00
params: params
});
}
// 更新草稿IBP盘基本信息
export function putIbpBasicInfo(id, params) {
return request({
url: `/api/draftIbp/${id}/basic`,
method: 'put',
data: params
});
}
// 更新草稿IBP盘绘图数据
export function putIbpDrawData(id, params) {
return request({
url: `/api/draftIbp/${id}/data`,
method: 'put',
data: params
});
}
// 删除草稿IBP盘绘图数据
export function deleteIbpInfo(id) {
return request({
2020-03-13 19:01:59 +08:00
url: `/api/draftIbp/${id}/delete`,
method: 'delete'
});
}
2020-03-13 19:04:28 +08:00
// 根据id查询IBP数据
export function getIbpInfo(id) {
return request({
url: `/api/draftIbp/${id}`,
method: 'get'
});
}
2020-03-16 16:06:50 +08:00
// 根据线路编码和车站编码查询IBP数据
export function getIbpInfoByStation(mapId, stationCode) {
return request({
url: `/api/ibp/query?mapId=${mapId}&stationCode=${stationCode}`,
method: 'get'
});
}