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

165 lines
3.6 KiB
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'
});
}
// 查询地图下是否有ISCS数据
export function queryHasIscs(params) {
return request({
url: `/api/v1/iscs/hasData`,
method: 'get',
params
});
}
// iscs设备创建
export function createIscsDevcie(data) {
return request({
url: `/api/iscsDevice`,
method: 'post',
data
});
}
// 查询所有iscs设备
export function queryAllIscsDevice() {
return request({
url: `/api/iscsDevice/all`,
method: 'get'
});
}
// 根据id查询iscs设备
export function queryIscsDevcieById(id) {
return request({
url:
`/api/iscsDevice/${id}`,
method: 'get'
});
}
// 根据mapId获取Iscs设备list
export function queryIscsDeviceListByMapId(mapId) {
return request({
url: `/api/iscsDevice/list/mapId/${mapId}`,
method: 'get'
});
}
// 分页查询ISCS设备
export function pagedIscsDevice(params) {
return request({
url: `/api/iscsDevice/paged`,
method: 'get',
params
});
}
// 删除ISCS设备
export function deleteIscsDevice(id) {
return request({
url: `/api/iscsDevice/${id}`,
method: 'delete'
});
}
2022-01-14 17:23:25 +08:00
// 根据mapId查询设备列表
export function getIscsDeviceListByMapId(mapId) {
return request({
url: `/api/iscsDevice/list/mapId/${mapId}`,
method: 'get'
});
}
// 根据条件查询设备列表
export function queryIscsDeviceCod(params) {
return request({
url: `/api/iscsDevice/list/criteria`,
method: 'get',
params
});
}
2022-01-17 14:19:03 +08:00
// 批量创建ISCS设备
export function batchCreateIscsDevcie(data) {
return request({
url: `/api/iscsDevice/create/batch`,
method: 'post',
data
});
}
// 创建ISCS系统资源
export function createIscsResources(data) {
return request({
url: `/api/systemRes`,
method: 'post',
data
});
}
// 查询所有ISCS系统资源
export function queryAllIscsResources() {
return request({
url: `/api/systemRes/all`,
method: 'get'
});
}
// 根据id查询ISCS系统资源
export function queryIscsResourcesById(id) {
return request({
url: `/api/systemRes/${id}`,
method: 'get'
});
}
// 分页查询ISCS系统资源
export function pagedIscsResources(params) {
return request({
url: `/api/systemRes/paged`,
method: 'get',
params
});
}
// 删除ISCS系统资源
export function deleteIscsResources(id) {
return request({
url: `/api/systemRes/${id}`,
method: 'delete'
});
}
2022-01-14 17:23:25 +08:00
// 按条件查询ISCS系统资源
export function queryIscsResourcesCod(params) {
return request({
url: `/api/systemRes/list/criteria`,
method: 'get',
params
});
}