43 lines
839 B
JavaScript
43 lines
839 B
JavaScript
import request from '@/utils/request.js'
|
|
|
|
// 获取topoList
|
|
export const getTopoList = (params) => {
|
|
return request({
|
|
url: '/custom/query/topo/uni',
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
// 获取topo详情
|
|
export const getTopoDetails = (topoId) => {
|
|
return request({
|
|
url: '/custom/query/topo/uni/' + topoId,
|
|
method: 'get'
|
|
})
|
|
}
|
|
// 新增topo
|
|
export const addTopo = (data) => {
|
|
return request({
|
|
url: '/custom/query/topo/uni',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 修改topo
|
|
export const editTopo = (data) => {
|
|
return request({
|
|
url: '/custom/query/topo/uni',
|
|
method: 'put',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 删除topo
|
|
export const delTopo =(idList) => {
|
|
return request({
|
|
url: '/custom/query/topo/uni/' + idList,
|
|
method: 'delete'
|
|
})
|
|
}
|