exceltab.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. import { HcApi } from '../../request/index'
  2. export default {
  3. async page(form) {
  4. return HcApi({
  5. url: '/api/blade-manager/exceltab/page',
  6. method: 'get',
  7. params: form,
  8. })
  9. },
  10. //详情
  11. async detail(id) {
  12. return HcApi({
  13. url: '/api/blade-manager/exceltab/detail',
  14. method: 'get',
  15. params: { id },
  16. })
  17. },
  18. async submit(form) {
  19. return HcApi({
  20. url: '/api/blade-manager/exceltab/submit',
  21. method: 'post',
  22. data: form,
  23. })
  24. },
  25. async del(ids) {
  26. return HcApi({
  27. url: '/api/blade-manager/exceltab/remove',
  28. method: 'post',
  29. params: { ids },
  30. })
  31. },
  32. //清表树(懒加载)
  33. async tabLazyTree(form) {
  34. return HcApi({
  35. url: '/api/blade-manager/exceltab/tab-lazytree',
  36. method: 'get',
  37. params: form,
  38. })
  39. },
  40. //清表树(全加载)
  41. async tabLazyTreeAll(form) {
  42. return HcApi({
  43. url: '/api/blade-manager/exceltab/tab-lazytree-all',
  44. method: 'get',
  45. params: form,
  46. })
  47. },
  48. //获取清表详情
  49. async detailExcel(id) {
  50. return HcApi({
  51. url: '/api/blade-manager/exceltab/detail',
  52. method: 'get',
  53. params: { id },
  54. })
  55. },
  56. //清表编辑 wbs 下拉框选择
  57. async getWbsTypeList(form) {
  58. return HcApi({
  59. url: '/api/blade-manager/exceltab/getWbsTypeList',
  60. method: 'get',
  61. params: form,
  62. })
  63. },
  64. }