62 lines
1.2 KiB
JavaScript
62 lines
1.2 KiB
JavaScript
import request from '@/utils/request';
|
|
|
|
/** 分页查询真实线路*/
|
|
export function getSkinCodePageList(params) {
|
|
return request({
|
|
url: `/api/realLine`,
|
|
method: 'get',
|
|
params: params
|
|
});
|
|
}
|
|
|
|
/** 添加真实线路*/
|
|
export function addSkinCode(data) {
|
|
return request({
|
|
url: `/api/realLine`,
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
}
|
|
|
|
/** 删除真实线路*/
|
|
export function delSkinCode(id) {
|
|
return request({
|
|
url: `/api/realLine/${id}`,
|
|
method: 'delete'
|
|
});
|
|
}
|
|
|
|
/** 修改真实线路*/
|
|
export function updateSkinCode(data) {
|
|
return request({
|
|
url: `/api/realLine/${data.id}`,
|
|
method: 'put',
|
|
data: data
|
|
});
|
|
}
|
|
|
|
// 根据code获取线路配置
|
|
export function getRealLineConfigList(id) {
|
|
return request({
|
|
url: `/api/realLine/config/${id}`,
|
|
method: 'get'
|
|
});
|
|
}
|
|
|
|
// 根据id修改线路配置
|
|
export function putRealLineConfig(id, data) {
|
|
return request({
|
|
url: `/api/realLine/config/${id}`,
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
}
|
|
|
|
/** 获取真实线路列表*/
|
|
export function getLineCodeList() {
|
|
return request({
|
|
url: `/api/realLine/list`,
|
|
method: 'get'
|
|
});
|
|
}
|