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

44 lines
873 B
JavaScript
Raw Normal View History

import request from '@/utils/request';
// 保存ISCS数据
export function saveIscsElement(data) {
return request({
url: '/api/v1/iscs/saveElements',
method: 'post',
data
});
}
// 获取ISCS数据
export function getIscsData(params) {
return request({
url: '/api/v1/iscs',
method: 'get',
params
});
}
2020-12-29 15:20:01 +08:00
// 分页获取ISCS数据
export function getIscsDataByPage(params) {
return request({
url: '/api/v1/iscs/pagedQuery',
method: 'get',
params
});
}
// 复制iscs数据
export function copyIscsData(data) {
return request({
url: '/api/v1/iscs/copy',
method: 'post',
data
});
}
// 删除iscs数据绘图数据(发布的)
export function deleteIscs(id) {
return request({
url: `/api/v1/iscs/${id}`,
method: 'delete'
});
}