dictbiz.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. import { HcApi } from '../../request/index'
  2. export default {
  3. async page(form) {
  4. return HcApi({
  5. url: '/api/blade-system/dict-biz/parent-list',
  6. method: 'get',
  7. params: form,
  8. }, false)
  9. },
  10. async detail(id) {
  11. return HcApi({
  12. url: '/api/blade-system/dict-biz/detail',
  13. method: 'get',
  14. params: {
  15. id,
  16. },
  17. }, false)
  18. },
  19. async submit(form) {
  20. return HcApi({
  21. url: '/api/blade-system/dict-biz/submit',
  22. method: 'post',
  23. data: form,
  24. }, false)
  25. },
  26. async del(ids) {
  27. return HcApi({
  28. url: '/api/blade-system/dict-biz/remove',
  29. method: 'post',
  30. params: {
  31. ids,
  32. },
  33. }, false)
  34. },
  35. async getList(form) {
  36. return HcApi({
  37. url: '/api/blade-system/dict-biz/list',
  38. method: 'get',
  39. params: form,
  40. }, false)
  41. },
  42. async getChildList(form) {
  43. return HcApi({
  44. url: '/api/blade-system/dict-biz/child-list',
  45. method: 'get',
  46. params: form,
  47. }, false)
  48. },
  49. async getDictTree() {
  50. return HcApi({
  51. url: '/api/blade-system/dict-biz/tree?code=DICT',
  52. method: 'get',
  53. params: {},
  54. }, false)
  55. },
  56. async getDictionary(params) {
  57. return HcApi({
  58. url: '/api/blade-system/dict-biz/dictionary',
  59. method: 'get',
  60. params,
  61. }, false)
  62. },
  63. }