70 lines
1.5 KiB
JavaScript
70 lines
1.5 KiB
JavaScript
|
|
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数据基本信息
|
|
export function getIbpAllList(params) {
|
|
return request({
|
|
url: '/api/draftIbp/list/user',
|
|
method: 'get',
|
|
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({
|
|
url: `/api/draftIbp/${id}/delete`,
|
|
method: 'delete'
|
|
});
|
|
}
|
|
|
|
// 根据id查询IBP数据
|
|
export function getIbpInfo(id) {
|
|
return request({
|
|
url: `/api/draftIbp/${id}`,
|
|
method: 'get'
|
|
});
|
|
}
|
|
|
|
// 根据线路编码和车站编码查询IBP数据
|
|
export function getIbpInfoByStation(mapId, stationCode) {
|
|
return request({
|
|
url: `/api/ibp/query?mapId=${mapId}&stationCode=${stationCode}`,
|
|
method: 'get'
|
|
});
|
|
}
|