Newer
Older
safe_production_front / src / api / alarm / dangerAssessment / statistics.ts
/**
 * 安全生产隐患评估
 */
import request from '../../index'

// 单位近一个月报警分析
export function getDeptAlarmRecord() {
  return request({
    url: 'statistics/dept/record',
    method: 'get',
  })
}

// 单位报警时间曲线
export function getDeptAlarmDate() {
  return request({
    url: 'statistics/dept/alarm/date',
    method: 'get',
  })
}

// 隐患分类
export function getDangerCategory() {
  return request({
    url: 'statistics/dangerCategory',
    method: 'get',
  })
}

// 区域隐患分类
export function getAreaDanger() {
  return request({
    url: 'statistics/areaDanger',
    method: 'get',
  })
}

// 单位安全隐患分类
export function getDeptDanger() {
  return request({
    url: 'statistics/deptDanger',
    method: 'get',
  })
}