whychdw
5 天以前 aa995b8564c6864d5c9f43273c0b303af8f9bd4d
src/api/standardParams.js
@@ -1,4 +1,5 @@
import request from '@/utils/request';
import axios from "axios";
/**
 * 根据标准参数类型查询标准参数
@@ -27,3 +28,36 @@
    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
  });
}