mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-18 00:45:55 +08:00
添加前端基本功能
This commit is contained in:
61
vue/src/api/system/status.js
Normal file
61
vue/src/api/system/status.js
Normal file
@@ -0,0 +1,61 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询设备状态列表
|
||||
export function listStatus(query) {
|
||||
return request({
|
||||
url: '/system/status/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询设备状态详细
|
||||
export function getStatus(deviceStatusId) {
|
||||
return request({
|
||||
url: '/system/status/' + deviceStatusId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询设备最新状态
|
||||
export function getNewStatus(deviceId){
|
||||
return request({
|
||||
url:'/system/status/new/'+deviceId,
|
||||
method:'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增设备状态
|
||||
export function addStatus(data) {
|
||||
return request({
|
||||
url: '/system/status',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改设备状态
|
||||
export function updateStatus(data) {
|
||||
return request({
|
||||
url: '/system/status',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除设备状态
|
||||
export function delStatus(deviceStatusId) {
|
||||
return request({
|
||||
url: '/system/status/' + deviceStatusId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出设备状态
|
||||
export function exportStatus(query) {
|
||||
return request({
|
||||
url: '/system/status/export',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user