Newer
Older
urbanLifeline_YanAn / src / api / RQWarning.js
@zhangzhihui zhangzhihui on 20 Oct 1 KB 燃气接口
import request from '@/utils/request';

// 列表查询预警等级响应
export function warningLevelResposeList(params) {
  return request({
    url: `/business/warningLevelRespose/list`,
    method: 'get',
    params,
  });
}

// 分页查询部门人员表
export function personnelPage(params) {
  return request({
    url: `/business/personnel/page`,
    method: 'get',
    params,
  });
}

// 新增预警发布明细
export const warningReleaseDatailAdd = data => {
  return request({
    url: '/business/warningReleaseDatail/add',
    method: 'POST',
    data: data,
  });
};
// 查询预警发布明细
export function warningReleaseDatailPage(params) {
  return request({
    url: `/business/warningReleaseDatail/page`,
    method: 'get',
    params,
  });
}

// 发布-解除接口
export function warningReleaseDatailEditfb(data) {
  return request({
    url: `/business/warningReleaseDatail/editfb`,
    method: 'POST',
    data: data,
  });
}


// /commonWarning/list
export function commonWarningList(query) {
  return request({
    url: "/business/commonWarning/list",
    method: "get",
    params: query,
  });
}

// /commonWarning/{id}
export function commonWarningGet(id) {
  return request({
    url: `/business/commonWarning/${id}`,
    method: "get",
  });
}

// /alarmWorkOrder/add
export function alarmWorkOrderAdd(data) {
  return request({
    url: "/business/alarmWorkOrder/add",
    method: "POST",
    data: data,
  });
}

// /alarmWorkOrder/list
export function alarmWorkOrderList(query) {
  return request({
    url: "/business/alarmWorkOrder/list",
    method: "get",
    params: query,
  });
}