阅行客电子档案
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

108 lines
2.1 KiB

  1. import request from '@/utils/request'
  2. // 获取门类树状菜单
  3. export function FetchCategoryMenu() {
  4. return request({
  5. url: 'api/category/menu',
  6. method: 'get'
  7. })
  8. }
  9. // 获取门类下的子门类
  10. export function FetchCategoryMenuChildren(cid) {
  11. return request({
  12. url: 'api/category/getChildren?categoryId=' + cid,
  13. method: 'get'
  14. })
  15. }
  16. // 新增门类
  17. export function add(data) {
  18. return request({
  19. url: 'api/category/editCategory',
  20. method: 'post',
  21. data
  22. })
  23. }
  24. // 编辑门类
  25. export function edit(data) {
  26. return request({
  27. url: 'api/category/editCategory',
  28. method: 'post',
  29. data
  30. })
  31. }
  32. // 删除门类
  33. export function del(ids) {
  34. const params = { id: ids[0] }
  35. return request({
  36. url: 'api/category/delete',
  37. method: 'delete',
  38. params
  39. })
  40. }
  41. // 修改门类树状菜单
  42. export function sort(data) {
  43. return request({
  44. url: 'api/category/sort',
  45. method: 'put',
  46. data
  47. })
  48. }
  49. // 获取归档章版式
  50. export function FetchGetFilingsealFormat() {
  51. return request({
  52. url: 'api/category/getFilingsealFormat',
  53. method: 'get'
  54. })
  55. }
  56. // 获取归档章详情
  57. export function FetchGetFilingsealFormatDtails(filingId) {
  58. return request({
  59. url: 'api/category/getFilingsealFormatDtails?filingId=' + filingId,
  60. method: 'get'
  61. })
  62. }
  63. // 保存归档章
  64. export function FetchEditCategoryFilingseal(data) {
  65. return request({
  66. url: 'api/category/editCategoryFilingseal',
  67. method: 'post',
  68. data
  69. })
  70. }
  71. // 启用 / 关闭归档章
  72. export function FetchEnabledFilingseal(data) {
  73. return request({
  74. url: 'api/category/enabledFilingseal',
  75. method: 'post',
  76. data
  77. })
  78. }
  79. // 新增公共筛选
  80. export function FetchAddCategoryScreen(data) {
  81. return request({
  82. url: 'api/category/addCategoryScreen',
  83. method: 'post',
  84. data
  85. })
  86. }
  87. // 删除公共筛选
  88. export function FetchDelCategoryScreen(data) {
  89. return request({
  90. url: 'api/category/delCategoryScreen',
  91. method: 'post',
  92. data
  93. })
  94. }
  95. export default { add, edit, del, FetchCategoryMenu }