mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-22 19:06:06 +08:00
发布v1.1版本
This commit is contained in:
44
vue/src/api/iot/alertLog.js
Normal file
44
vue/src/api/iot/alertLog.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询设备告警列表
|
||||
export function listAlertLog(query) {
|
||||
return request({
|
||||
url: '/iot/alertLog/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询设备告警详细
|
||||
export function getAlertLog(alertLogId) {
|
||||
return request({
|
||||
url: '/iot/alertLog/' + alertLogId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增设备告警
|
||||
export function addAlertLog(data) {
|
||||
return request({
|
||||
url: '/iot/alertLog',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改设备告警
|
||||
export function updateAlertLog(data) {
|
||||
return request({
|
||||
url: '/iot/alertLog',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除设备告警
|
||||
export function delAlertLog(alertLogId) {
|
||||
return request({
|
||||
url: '/iot/alertLog/' + alertLogId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user