Newer
Older
KaiFengPC / src / api / document / dataClassify.js
@鲁yixuan 鲁yixuan on 19 Aug 1 KB updata
  1. import request from '@/utils/request';
  2.  
  3. // 分页搜索资料类型
  4. export function getDocumentTypePage(params) {
  5. return request({
  6. url: '/business/documentType/page',
  7. method: 'get',
  8. params,
  9. });
  10. }
  11.  
  12. // 列表搜索资料类型
  13. export function getDocumentTypeList(params) {
  14. return request({
  15. url: 'business/documentType/list',
  16. method: 'get',
  17. params,
  18. });
  19. }
  20.  
  21. // 新增资料类型
  22. export function documentTypeAdd(data) {
  23. return request({
  24. url: 'business/documentType/add',
  25. method: 'post',
  26. data,
  27. });
  28. }
  29.  
  30. // 修改资料类型
  31. export function documentTypeEdit(data) {
  32. return request({
  33. url: 'business/documentType/edit',
  34. method: 'put',
  35. data,
  36. });
  37. }
  38.  
  39. // 资料类型树结构
  40. export function documentTypeTree(params) {
  41. return request({
  42. url: 'business/documentType/tree',
  43. method: 'get',
  44. params,
  45. });
  46. }
  47.  
  48. // 删除
  49. export function documentTypeDel(ids) {
  50. return request({
  51. url: `business/documentType/${ids}`,
  52. method: 'delete',
  53. });
  54. }
  55.  
  56. // 资料类型详情
  57. export function documentTypeDetail(id) {
  58. return request({
  59. url: `business/documentType/${id}`,
  60. method: 'get',
  61. });
  62. }