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.
55 lines
1.0 KiB
JavaScript
55 lines
1.0 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
// 查询生产告警信息列表
|
|
export function listAlarmInfo(query) {
|
|
return request({
|
|
url: '/mes/alarmInfo/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 查询生产告警信息详细
|
|
export function getAlarmInfo(alarmInfoId) {
|
|
return request({
|
|
url: '/mes/alarmInfo/' + alarmInfoId,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 新增生产告警信息
|
|
export function addAlarmInfo(data) {
|
|
return request({
|
|
url: '/mes/alarmInfo',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改生产告警信息
|
|
export function updateAlarmInfo(data) {
|
|
return request({
|
|
url: '/mes/alarmInfo',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除生产告警信息
|
|
export function delAlarmInfo(alarmInfoId) {
|
|
return request({
|
|
url: '/mes/alarmInfo/' + alarmInfoId,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|
|
|
|
// 查询生产告警信息列表
|
|
export function listStockAlarmDetail(query) {
|
|
return request({
|
|
url: '/mes/alarmInfo/listStockAlarmDetail',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|