项目列表
This commit is contained in:
@ -1,10 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 获取节点列表
|
||||
export function list (params) {
|
||||
return request({
|
||||
url: '/system/node/list',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
// 查询节点详细
|
||||
export function Info (nodeId) {
|
||||
return request({
|
||||
url: '/system/node/' + nodeId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增节点
|
||||
export function addNode(data) {
|
||||
export function addNode (data) {
|
||||
return request({
|
||||
url: '/system/node/saveNode',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除节点
|
||||
export function del (ids) {
|
||||
return request({
|
||||
url: '/system/node/' + ids,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取节点下拉
|
||||
export function select (params) {
|
||||
return request({
|
||||
url: '/system/node/select',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
54
src/api/hardware/project.js
Normal file
54
src/api/hardware/project.js
Normal file
@ -0,0 +1,54 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询项目列表
|
||||
export function list(params) {
|
||||
return request({
|
||||
url: '/system/project/list',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
// 查询项目详细
|
||||
export function Info(projectId) {
|
||||
return request({
|
||||
url: '/system/project/' + projectId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增项目
|
||||
export function add(data) {
|
||||
return request({
|
||||
url: '/system/project',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改项目
|
||||
export function update(data) {
|
||||
return request({
|
||||
url: '/system/project',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除项目
|
||||
export function del(ids) {
|
||||
return request({
|
||||
url: '/system/project/' + ids,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取项目下拉
|
||||
export function select (params) {
|
||||
return request({
|
||||
url: '/system/project/select',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user