query.js 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. import { httpApi } from '../../request/httpApi'
  2. export default {
  3. //分页
  4. async getarchiveQueryPage(form, msg = true) {
  5. return httpApi({
  6. url: '/api/blade-archive/archivesauto/pageByArchivesAuto',
  7. method: 'get',
  8. params: form,
  9. }, msg)
  10. },
  11. async getarchiveQueryPage2(form, msg = true) {
  12. return httpApi({
  13. url: '/api/blade-archive/archivesauto/pageByArchivesAuto2',
  14. method: 'get',
  15. params: form,
  16. }, msg)
  17. },
  18. //获取目录树 /blade-manager/archiveTreeContract/getArchiveTreeByNodeType
  19. async getArchiveTreeByNodeType(form, msg = true) {
  20. return httpApi({
  21. url: '/api/blade-manager/archiveTreeContract/getArchiveTreeByNodeType',
  22. method: 'get',
  23. params: form,
  24. }, msg)
  25. },
  26. //获取目录树子节点 GET/blade-manager/archiveTreeContract/getChildrenNodeByNodeId
  27. async getChildrenNodeByNodeId(form, msg = true) {
  28. return httpApi({
  29. url: '/api/blade-manager/archiveTreeContract/getChildrenNodeByNodeId',
  30. method: 'get',
  31. params: form,
  32. }, msg)
  33. },
  34. //获取档案查询类别/blade-archive/archivesauto/getCarrierTypeByDict
  35. async getCarrierTypeByDict(form, msg = true) {
  36. return httpApi({
  37. url: '/api/blade-archive/archivesauto/getCarrierTypeByDict',
  38. method: 'get',
  39. params: form,
  40. }, msg)
  41. },
  42. //档案柜切换档案查看权限
  43. async getArchivesAuthByUser(form, msg = true) {
  44. return httpApi({
  45. url: '/api/blade-archive/archivesauto/getArchivesAuthByUser',
  46. method: 'get',
  47. params: form,
  48. }, msg)
  49. },
  50. //语音搜索接口
  51. async micSearchInfo(form, msg = true) {
  52. return httpApi({
  53. url: '/api/blade-archive/archivesauto/search-info',
  54. method: 'post',
  55. data: form,
  56. }, msg)
  57. },
  58. //查询案卷里的文件
  59. async getArchiveFileList(form, msg = true) {
  60. return httpApi({
  61. url: '/api/blade-archive/archivesauto/getArchiveFileList',
  62. method: 'get',
  63. params: form,
  64. }, msg)
  65. },
  66. //批量下载档案
  67. async batchDownloadFileToZip(form, msg = true) {
  68. return httpApi({
  69. url: '/api/blade-archive/archivesauto/batchDownloadFileToZip',
  70. method: 'get',
  71. params: form,
  72. responseType: 'blob',
  73. }, msg)
  74. },
  75. }