whychdw
5 天以前 aa995b8564c6864d5c9f43273c0b303af8f9bd4d
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
import request from '@/utils/request';
import axios from "axios";
 
/**
 * 根据标准参数类型查询标准参数
 * @param powerType
 * @returns {*}
 */
export function getPwrStandParamApi(powerType) {
  return request({
    url: '/stand/getPwrStandParam',
    method: 'GET',
    params: {
      powerType
    }
  });
}
 
/**
 * 设置标准参数
 * @param data 设置值
 * @returns {*}
 */
export function setPwrStandParamApi(data) {
  return request({
    url: '/stand/setPwrStandParam',
    method: 'POST',
    data
  });
}
 
/**
 * 根据文件名称(模糊)和数据类型查询标准文件
 * @param fileName 文件名称
 * @param powerType 类型
 * @returns {*}
 */
export function getStandFileApi(fileName, powerType) {
  return request({
    url: '/stand/getStandFile',
    method: 'GET',
    params: {
      fileName,
      powerType
    }
  });
}
 
/**
 * 上传标准参数文件
 * @param data
 * @returns {Promise<axios.AxiosResponse<any>>}
 */
export function uploadStandFileApi(data) {
  return request({
    method: "POST",
    url: "/stand/uploadStandFile",
    headers: {
      "Content-Type": "multipart/form-data"
    },
    data
  });
}