/*
 * @Author: liuJie
 * @Date: 2026-03-12 16:06:18
 * @LastEditors: liuJie
 * @LastEditTime: 2026-03-19 17:19:27
 * @Describe: 告警列表
 */
import { http } from '@/utils/http/axios';

export interface QueryParamType {
    pageNumber: number;
    pageSize: number;
    queryParam: {
      //设备编码
      deviceNo?: string | undefined;
      //设备名称
      deviceName?: string | undefined;
      // 设备类型
      deviceType?: string | undefined;
      // 告警类型
      alarmType?: string | undefined;
      // 所属部门
      deptName?: string | undefined;
      // 开始时间
      startTime: string | undefined,
      // 结束
      endTime: string | undefined,
    };
  }
  // 列表数据
export const equipmentHighAlertList = (query: QueryParamType)=>{
  return http.request({
    url: '/prodAlarm/queryProdAlarm',
    method: 'post',
    data: query,
  });
}
  // 设备类型
export const DeviceTypeList = ()=>{
  return http.request({
    url: '/prodAlarm/queryAllDeviceType',
    method: 'get',
  });
}


  // 所属部门
export const deptList = ()=>{
  return http.request({
    url: '/prodAlarm/queryDept',
    method: 'post',
  });
}

// 导出接口
export const exportTableData = (params)=>{
    return http.request({
        url: '/prodAlarm/export',
        method: 'post',
        data: params,
        responseType: 'blob',
    }, {
        isTransformResponse: false,
    });
}