You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
805 B
JavaScript
45 lines
805 B
JavaScript
import request from '@/utils/request'
|
|
|
|
// 查询水阈值信息列表
|
|
export function listThreshold(query) {
|
|
return request({
|
|
url: '/ems/threshold/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 查询水阈值信息详细
|
|
export function getThreshold(objid) {
|
|
return request({
|
|
url: '/ems/threshold/' + objid,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 新增水阈值信息
|
|
export function addThreshold(data) {
|
|
return request({
|
|
url: '/ems/threshold',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改水阈值信息
|
|
export function updateThreshold(data) {
|
|
return request({
|
|
url: '/ems/threshold',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除水阈值信息
|
|
export function delThreshold(objid) {
|
|
return request({
|
|
url: '/ems/threshold/' + objid,
|
|
method: 'delete'
|
|
})
|
|
}
|