设备节点
This commit is contained in:
47
src/api/hardware/deviceNode.js
Normal file
47
src/api/hardware/deviceNode.js
Normal file
@ -0,0 +1,47 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 获取设备节点列表
|
||||
export function deviceNodeList (params) {
|
||||
return request({
|
||||
url: '/system/device/node/list',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
// 新增节点
|
||||
export function deviceNodeSave (data) {
|
||||
return request({
|
||||
url: '/system/device/node/save',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询设备节点详细
|
||||
* @param {*} nodeId
|
||||
*/
|
||||
export function deviceNodeInfo (nodeId) {
|
||||
return request({
|
||||
url: '/system/device/node/' + nodeId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 删除节点
|
||||
export function deviceNodeDel (ids) {
|
||||
return request({
|
||||
url: '/system/device/node/' + ids,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取节点下拉
|
||||
export function deviceNodeSelect (params) {
|
||||
return request({
|
||||
url: '/system/device/node/select',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
@ -3,7 +3,7 @@ import request from '@/utils/request'
|
||||
// 获取节点列表
|
||||
export function nodeList (params) {
|
||||
return request({
|
||||
url: '/system/node/list',
|
||||
url: '/system/product/node/list',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
|
||||
47
src/api/hardware/productNode.js
Normal file
47
src/api/hardware/productNode.js
Normal file
@ -0,0 +1,47 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 获取产品节点列表
|
||||
export function productNodeList (params) {
|
||||
return request({
|
||||
url: '/system/product/node/list',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询产品节点详细
|
||||
* @param { Object } params
|
||||
*/
|
||||
|
||||
export function productNodeInfo (nodeId) {
|
||||
return request({
|
||||
url: '/system/product/node/' + nodeId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function productNodeSelect (params) {
|
||||
return request({
|
||||
url: '/system/product/node/select',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
// 新增节点
|
||||
export function productNodeAdd (data) {
|
||||
return request({
|
||||
url: '/system/product/node/save',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除节点
|
||||
export function productNodeDel (ids) {
|
||||
return request({
|
||||
url: '/system/product/node/' + ids,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user