56 lines
1.2 KiB
JavaScript
56 lines
1.2 KiB
JavaScript
/*
|
|
* @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 }
|
|
})
|
|
}
|