faultStatistics.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 getExclusionList = async (data) => {
  8. return await get('/als/faultStatistics/exclusionList', data)
  9. }
  10. // 查询故障统计列表不分页
  11. export const getExclusionListAll = async (data) => {
  12. return await get('/als/faultStatistics/exclusionListAll', data)
  13. }
  14. // 查询故障统计列表
  15. export const getFaultStatisticsEcharts = async (data) => {
  16. return await get('/als/faultStatistics/statistics', data)
  17. }
  18. // 新增故障统计
  19. export const addFaultStatistics = async (data) => {
  20. return await post('/als/faultStatistics', data)
  21. }
  22. // 修改故障统计
  23. export const updateFaultStatistics = async (data) => {
  24. return await put('/als/faultStatistics', data)
  25. }
  26. // 删除故障统计
  27. export const removeFaultStatistics = async (id) => {
  28. return await deletes('/als/faultStatistics/' + id)
  29. }
  30. // 获取机种和机型树
  31. export const getAircaftTypeAndModelTree = async (data) => {
  32. return await get('/basicdata/aircaftCatalog/getAircaftTypeAndModelTree', data)
  33. }
  34. //下载模板
  35. export const downLoadFaultStatistics = async (data) => {
  36. window.open(process.env.VUE_APP_BASE_API + '/als/faultStatistics/importTemplate')
  37. }
  38. //导出
  39. export const exportFaultStatisticsExcel = async (data) => {
  40. window.open(process.env.VUE_APP_BASE_API + '/als/faultStatistics/export', data)
  41. }
  42. // 查询故障统计列表
  43. export const getFaultStatisticsListAll = async (data) => {
  44. return await post('/als/faultStatistics/listAll', data)
  45. }
  46. // 同步
  47. export const getSync = async (data) => {
  48. return await get('/als/faultStatistics/extra/statistics', data)
  49. }