approach.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. import { httpApi } from '../../../request/httpApi'
  2. export default {
  3. //分类新增或修改
  4. async getClassSubmit(form, msg = true) {
  5. return httpApi({
  6. url: '/api/blade-business/device/class-submit',
  7. method: 'post',
  8. data: form,
  9. }, msg)
  10. },
  11. //分类删除
  12. async setClassRemove(form, msg = true) {
  13. return httpApi({
  14. url: '/api/blade-business/device/class-remove',
  15. method: 'get',
  16. params: form,
  17. }, msg)
  18. },
  19. //分页条件查询
  20. async queryPage(form, msg = true) {
  21. return httpApi({
  22. url: '/api/blade-business/device/mobilization/page',
  23. method: 'get',
  24. params: form,
  25. }, msg)
  26. },
  27. //新增或修改
  28. async submitForm(form, msg = true) {
  29. return httpApi({
  30. url: '/api/blade-business/device/mobilization/submit',
  31. method: 'post',
  32. data: form,
  33. }, msg)
  34. },
  35. //批量删除
  36. async removeData(form, msg = true) {
  37. return httpApi({
  38. url: '/api/blade-business/device/mobilization/remove',
  39. method: 'get',
  40. params: form,
  41. }, msg)
  42. },
  43. //批量打印Pdf
  44. async exportPdf(form, msg = true) {
  45. return httpApi({
  46. url: '/api/blade-business/device/mobilization/print-pdf',
  47. method: 'post',
  48. params: form,
  49. }, msg)
  50. },
  51. //导入数据保存
  52. async samplingRecord(form, msg = true) {
  53. return httpApi({
  54. url: '/api/blade-business/device/mobilization/import-batch',
  55. method: 'post',
  56. data: form,
  57. }, msg)
  58. },
  59. }