service.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import { HcApi } from '../../request/index'
  2. export default {
  3. //分页
  4. async getPage(form) {
  5. return HcApi({
  6. url: '/api/blade-manager/serviceplan/page',
  7. method: 'get',
  8. params: form,
  9. })
  10. },
  11. async getDetail(form) {
  12. return HcApi({
  13. url: '/api/blade-manager/serviceplan/detail',
  14. method: 'get',
  15. params: form,
  16. })
  17. },
  18. async save(form) {
  19. return HcApi({
  20. url: '/api/blade-manager/serviceplan/save',
  21. method: 'post',
  22. data: form,
  23. })
  24. },
  25. async update(form) {
  26. return HcApi({
  27. url: '/api/blade-manager/serviceplan/update',
  28. method: 'post',
  29. data: form,
  30. })
  31. },
  32. async remove(form) {
  33. return HcApi({
  34. url: '/api/blade-manager/serviceplan/remove',
  35. method: 'post',
  36. params: form,
  37. })
  38. },
  39. async getServiceHtml(form) {
  40. return HcApi({
  41. url: '/api/blade-manager/serviceplan/getServiceHtml',
  42. method: 'get',
  43. params: form,
  44. })
  45. },
  46. async saveServiceData(form) {
  47. return HcApi({
  48. url: '/api/blade-manager/serviceplan/saveServiceData',
  49. method: 'post',
  50. data: form,
  51. })
  52. },
  53. async getHtmlBus(form) {
  54. return HcApi({
  55. url: '/api//blade-manager/serviceplan/get-html-buss-cols',
  56. method: 'post',
  57. data: form,
  58. })
  59. },
  60. }