188 lines
3.9 KiB
JavaScript
188 lines
3.9 KiB
JavaScript
/*
|
|
* @Date: 2021-02-01 19:33:11
|
|
* @LastEditors: gtz
|
|
* @LastEditTime: 2021-04-23 15:45:32
|
|
* @FilePath: \basic-admin\src\api\equipment\param.js
|
|
* @Description: 设备类型参数
|
|
*/
|
|
import request from '@/utils/request'
|
|
|
|
// 获取设备类型列表
|
|
export function getDeviceList(data) {
|
|
return request({
|
|
url: '/basic/equipment/page',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 获取设备类型详情
|
|
export function getDeviceInfo(data) {
|
|
return request({
|
|
url: '/basic/equipment/get',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 获取设备类型参数列表
|
|
export function getDeviceParamList(data) {
|
|
return request({
|
|
url: '/equipment/equipment-parameter/findAllByIdOrName',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 新增设备类型参数
|
|
export function addDeviceParam(data) {
|
|
return request({
|
|
url: '/equipment/equipment-parameter/create',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 编辑设备类型参数
|
|
export function editDeviceParam(data) {
|
|
return request({
|
|
url: '/equipment/equipment-parameter/update',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 删除设备类型参数
|
|
export function delDeviceParam(data) {
|
|
return request({
|
|
url: '/equipment/equipment-parameter/delete',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 查询设备类型参数
|
|
export function getDeviceParam(data) {
|
|
return request({
|
|
url: '/equipment/equipment-parameter/findById',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 获取设备类型参数code
|
|
export function getDeviceParamCode(data) {
|
|
return request({
|
|
url: '/equipment/equipment-parameter/getEquipmentParamCode',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 获取设备类型参数 事件配置列表
|
|
export function getDeviceEventSettingList(data) {
|
|
return request({
|
|
url: '/equipment/equipment-event/findAllByIdOrName',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 获取设备类型参数 事件配置详细
|
|
export function getDeviceEventSetting(data) {
|
|
return request({
|
|
url: '/equipment/equipment-event/findById',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 添加设备类型参数事件配置
|
|
export function addDeviceEventSetting(data) {
|
|
return request({
|
|
url: '/equipment/equipment-event/create',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 编辑设备类型参数事件配置
|
|
export function editDeviceEventSetting(data) {
|
|
return request({
|
|
url: 'equipment/equipment-event/update',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 删除设备类型参数事件配置
|
|
export function delDeviceEventSetting(data) {
|
|
return request({
|
|
url: '/equipment/equipment-event/delete',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 获取设备类型参数事件code
|
|
export function getDeviceEventCode(data) {
|
|
return request({
|
|
url: '/equipment/equipment-event/getEquipmentEventCode',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 获取设备类型报警列表
|
|
export function getDeviceAlarmSettingList(data) {
|
|
return request({
|
|
url: '/equipment/equipment-manage-alarm/findAllByALID',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
// 获取设备类型报警详细
|
|
export function getDeviceAlarmSetting(data) {
|
|
return request({
|
|
url: '/equipment/equipment-manage-alarm/findById',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 新增设备类型报警详细
|
|
export function addDeviceAlarmSetting(data) {
|
|
return request({
|
|
url: '/equipment/equipment-manage-alarm/create',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 编辑设备类型报警详细
|
|
export function editDeviceAlarmSetting(data) {
|
|
return request({
|
|
url: '/equipment/equipment-manage-alarm/update',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 删除设备类型报警详细
|
|
export function delDeviceAlarmSetting(data) {
|
|
return request({
|
|
url: '/equipment/equipment-manage-alarm/delete',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 获取设备类型报警编码
|
|
export function getDeviceAlarmCode(data) {
|
|
return request({
|
|
url: '/equipment/equipment-manage-alarm/getEquipmentAlarmCode',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|