阅行客电子档案
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.

124 lines
2.4 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. import request from '@/utils/request'
  2. // 根据门类父id获取卷内列表列
  3. export function FetchInitCategoryViewTable(params) {
  4. return request({
  5. url: 'api/collect/initCategoryViewTable',
  6. method: 'get',
  7. params
  8. })
  9. }
  10. // 根据门类父id获取卷内列表
  11. export function FetchInitCategoryView(params) {
  12. return request({
  13. url: 'api/collect/initCategoryView',
  14. method: 'get',
  15. params
  16. })
  17. }
  18. // 添加项目/卷内/文件
  19. export function collectAdd(data) {
  20. return request({
  21. url: 'api/collect/addArchives',
  22. method: 'post',
  23. data
  24. })
  25. }
  26. // 编辑项目/卷内/文件
  27. export function collectEdit(data) {
  28. return request({
  29. url: 'api/collect/editArchives',
  30. method: 'post',
  31. data
  32. })
  33. }
  34. // 删除
  35. export function collectDel(data) {
  36. return request({
  37. url: 'api/collect/delArchives',
  38. method: 'post',
  39. data
  40. })
  41. }
  42. // 根据id获取详细信息
  43. export function FetchDetailsById(params) {
  44. return request({
  45. url: 'api/collect/getDetailsById',
  46. method: 'get',
  47. params
  48. })
  49. }
  50. // 收集库元数据
  51. export function FetchArchivesMetadata(params) {
  52. return request({
  53. url: 'api/collect/archivesMetadata',
  54. method: 'get',
  55. params
  56. })
  57. }
  58. // 根据门类父id获取电子原文列表
  59. export function FetchInitFileCategoryView(params) {
  60. return request({
  61. url: 'api/collect/initFileCategoryView',
  62. method: 'get',
  63. params
  64. })
  65. }
  66. // 移出卷内
  67. export function FetchRemoveArchivesSingle(data) {
  68. return request({
  69. url: 'api/collect/removeArchivesSingle',
  70. method: 'post',
  71. data
  72. })
  73. }
  74. // 添加电子原文
  75. export function FetchAddArchivesFile(data) {
  76. return request({
  77. url: 'api/collect/addArchivesFile',
  78. method: 'post',
  79. data
  80. })
  81. }
  82. // 删除电子原文
  83. export function FetchDeleteArchivesFile(data) {
  84. return request({
  85. url: 'api/collect/deleteArchivesFile',
  86. method: 'post',
  87. data
  88. })
  89. }
  90. // 批量修改
  91. export function FetchBatchUpdate(data) {
  92. return request({
  93. url: '/api/collect/batchUpdate',
  94. method: 'post',
  95. data
  96. })
  97. }
  98. export default {
  99. collectAdd,
  100. collectEdit,
  101. collectDel,
  102. FetchInitCategoryViewTable,
  103. FetchInitCategoryView,
  104. FetchDetailsById,
  105. FetchArchivesMetadata,
  106. FetchInitFileCategoryView,
  107. FetchRemoveArchivesSingle,
  108. FetchAddArchivesFile,
  109. FetchDeleteArchivesFile,
  110. FetchBatchUpdate
  111. }