11-mes-new/src/api/basicData/Equipment/equipmentAlarmAttr.js

56 lines
1.2 KiB
JavaScript
Raw Normal View History

2022-11-07 08:45:49 +08:00
/*
* @Author: zwq
* @Date: 2020-12-29 16:00:14
* @LastEditors: zwq
* @LastEditTime: 2021-02-02 16:00:23
* @Description:
*/
import request from '@/utils/request'
export function equipmentAlarmAttrList(data) { // 获取设备报警列表
return request({
url: '/basic/equipment-alarm-type/page',
method: 'post',
data
})
}
export function equipmentAlarmAttrDetail(id) { // 获取设备报警单条数据
return request({
url: '/basic/equipment-alarm-type/get',
method: 'post',
data: { id }
})
}
export function equipmentAlarmAttrUpdate(data) { // 更新设备报警单条数据
return request({
url: '/basic/equipment-alarm-type/update',
method: 'post',
data
})
}
export function equipmentAlarmAttrAdd(data) { // 新增设备报警单条数据
return request({
url: '/basic/equipment-alarm-type/add',
method: 'post',
data
})
}
export function equipmentAlarmAttrCode() { // 获取设备报警code
return request({
url: '/basic/equipment-alarm-type/get-code',
method: 'post'
})
}
export function equipmentAlarmAttrDelete(id) { // 删除设备报警单条数据
return request({
url: '/basic/equipment-alarm-type/delete',
method: 'post',
data: { id }
})
}