WXL
3 天以前 4c9fdc87987140e8b2c3f0dfc2f6608cdb6be774
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import request from '@/utils/request'
import { isStatisticsMock } from '@/utils/statisticsMode'
import { mockTotals } from './statisticsMock'
 
// mock 模式下返回模拟数据,否则请求真实接口
function post(url, data) {
  if (isStatisticsMock()) {
    return Promise.resolve({ code: 200, msg: '操作成功', data: mockTotals(url, data) })
  }
  return request({
    url,
    method: 'post',
    data
  })
}
 
// 案例趋势区域
export function caseTrendArea(data) {
  return post('/opo/totals/caseTrendArea', data)
}
// 案例趋势
export function caseTrend(data) {
  return post('/opo/totals/caseTrend', data)
}
// 案例趋势月份
export function caseTrendMoon(data) {
  return post('/opo/totals/caseTrendMoon', data)
}
// 平均年龄
export function caseAvgAge(data) {
  return post('/opo/totals/caseAvgAge', data)
}
// 性别与血型分布
export function caseBloodType(data) {
  return post('/opo/totals/caseBloodType', data)
}
// 捐献者年龄性别分布
export function caseSex(data) {
  return post('/opo/totals/caseSex', data)
}
// 捐献器官统计明细
export function organ(data) {
  return post('/opo/totals/organ', data)
}
// 器官获取/移植趋势
export function organMoon(data) {
  return post('/opo/totals/organMoon', data)
}
// 器官类型分布
export function organType(data) {
  return post('/opo/totals/organType', data)
}
// 总统计(总潜在捐献案例 / 总完成捐献数)
export function totals(data) {
  return post('/opo/totals/totals', data)
}
// 案例明细列表
export function trendList(data) {
  return post('/opo/totals/trendList', data)
}
// 器官移植总统计(数据概览:总获取/总移植/总回纳/总弃用)
export function organTotals(data) {
  return post('/opo/totals/organTotals', data)
}
// 捐献器官统计明细列表(器官明细详情)
export function organList(data) {
  return post('/opo/totals/organList', data)
}