| | |
| | | import request from '@/utils/request'; |
| | | import axios from "axios"; |
| | | |
| | | /** |
| | | * 根据标准参数类型查询标准参数 |
| | |
| | | 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 |
| | | }); |
| | | } |