faultStatistics.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import { get, put, post, deletes } from '@/http/index'
  2. // 查询故障统计列表
  3. export const getFaultStatistics = async (data) => {
  4. return await get('/als/faultStatistics/list', data)
  5. }
  6. // 查询故障统计列表
  7. export const getFaultStatisticsEcharts = async (data) => {
  8. return await get('/als/faultStatistics/statistics', data)
  9. }
  10. // 新增故障统计
  11. export const addFaultStatistics = async (data) => {
  12. return await post('/als/faultStatistics', data)
  13. }
  14. // 修改故障统计
  15. export const updateFaultStatistics = async (data) => {
  16. return await put('/als/faultStatistics', data)
  17. }
  18. // 删除故障统计
  19. export const removeFaultStatistics = async (id) => {
  20. return await deletes('/als/faultStatistics/' + id)
  21. }
  22. // 获取机种和机型树
  23. export const getAircaftTypeAndModelTree = async (data) => {
  24. return await get('/basicdata/aircaftCatalog/getAircaftTypeAndModelTree', data)
  25. }
  26. //下载模板
  27. export const downLoadFaultStatistics = async (data) => {
  28. window.open(process.env.VUE_APP_BASE_API + '/als/faultStatistics/importTemplate')
  29. }
  30. //导出
  31. export const exportFaultStatisticsExcel = async (data) => {
  32. window.open(process.env.VUE_APP_BASE_API + '/als/faultStatistics/export', data)
  33. }
  34. // 查询故障统计列表
  35. export const getFaultStatisticsListAll = async (data) => {
  36. return await get('/als/faultStatistics/listAll', data)
  37. }