设备列表&产品列表

This commit is contained in:
hh
2020-11-10 08:59:22 +08:00
parent 70887ab4dc
commit 2ded8ff672
7 changed files with 692 additions and 4 deletions

View File

@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询产品列表
export function list(params) {
return request({
url: '/system/product/list',
method: 'get',
params
})
}
// 查询产品详细
export function Info(productId) {
return request({
url: '/system/product/' + productId,
method: 'get'
})
}
// 新增产品
export function add(data) {
return request({
url: '/system/device',
method: 'post',
data
})
}
// 修改产品
export function update(data) {
return request({
url: '/system/product',
method: 'post',
data
})
}
// 删除产品
export function del(ids) {
return request({
url: '/system/product/' + ids,
method: 'delete'
})
}