Newer
Older
Nanping_sponge_SJJC / src / api / business / deviceAlarmHistoty.js
@liyingjing liyingjing on 25 Oct 2023 1 KB 数据检测
import request from '@/utils/request'

// 查询报警历史分页
export function pagedeviceAlarmHistoty (query) {
  return request({
    url: '/business/deviceAlarmHistoty/page',
    method: 'get',
    params: query
  })
}

// 查询报警历史列表
export function listdeviceAlarmHistoty (query) {
  return request({
    url: '/business/deviceAlarmHistoty/list',
    method: 'get',
    params: query
  })
}

// 查询报警历史详细
export function getdeviceAlarmHistoty (id) {
  return request({
    url: '/business/deviceAlarmHistoty/' + id,
    method: 'get'
  })
}

// 新增报警历史
export function adddeviceAlarmHistoty (data) {
  return request({
    url: '/business/deviceAlarmHistoty/add',
    method: 'post',
    data: data
  })
}

// 修改报警历史
export function updatedeviceAlarmHistoty (data) {
  return request({
    url: '/business/deviceAlarmHistoty/edit',
    method: 'put',
    data: data
  })
}

// 删除报警历史
export function deldeviceAlarmHistoty (id) {
  return request({
    url: '/business/deviceAlarmHistoty/' + id,
    method: 'delete'
  })
}

// 列表数据
export const getList3 = (params) => {
  return request({
    url: `/business/deviceAlarmHistoty/numberList`,
    method: "get",
    params: params
  });
};