龚焕茏
2024-03-15 de2f2613ffd98786bc7252a35ceb6a4d165849ef
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
69
70
71
72
73
74
75
76
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { IndicatorInfoVO, IndicatorInfoForm, IndicatorInfoQuery } from '@/api/indicatorInfo/types';
import { IndicatorStatus } from '@/api/indicatorInfo/status';
 
/**
 * 查询指标取值列表
 * @param query
 * @returns {*}
 */
 
export const listIndicatorInfo = (query?: IndicatorInfoQuery): AxiosPromise<IndicatorInfoVO[]> => {
  return request({
    url: '/demo/indicatorInfo/list',
    method: 'get',
    params: query
  });
};
 
/**
 * 查询指标取值状态
 * @returns {*}
 */
 
export const getIndicatorInfoStatus = (): AxiosPromise<IndicatorStatus[]> => {
  return request({
    url: '/demo/indicatorInfo/status',
    method: 'get',
  });
};
 
/**
 * 查询指标取值详细
 * @param id
 */
export const getIndicatorInfo = (id: string | number): AxiosPromise<IndicatorInfoVO> => {
  return request({
    url: '/demo/indicatorInfo/' + id,
    method: 'get'
  });
};
 
/**
 * 新增指标取值
 * @param data
 */
export const addIndicatorInfo = (data: IndicatorInfoForm) => {
  return request({
    url: '/demo/indicatorInfo',
    method: 'post',
    data: data
  });
};
 
/**
 * 修改指标取值
 * @param data
 */
export const updateIndicatorInfo = (data: IndicatorInfoForm) => {
  return request({
    url: '/demo/indicatorInfo',
    method: 'put',
    data: data
  });
};
 
/**
 * 删除指标取值
 * @param id
 */
export const delIndicatorInfo = (id: string | number | Array<string | number>) => {
  return request({
    url: '/demo/indicatorInfo/' + id,
    method: 'delete'
  });
};