index.js 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. import {httpApi} from "../../request/httpApi";
  2. export default {
  3. //获取类型列表(类型主页)
  4. async getClassIfyList(form) {
  5. return httpApi({
  6. url: '/api/blade-business/imageClassificationFile/getClassIfyList',
  7. method: 'get',
  8. params: form,
  9. })
  10. },
  11. async queryTreeList(form) {
  12. return httpApi({
  13. url: '/api/blade-manager/wbsTreeContract/image/lazyQueryContractWbsTree',
  14. method: 'get',
  15. params: form,
  16. });
  17. },
  18. async queryWorksTree(form) {
  19. return httpApi({
  20. url: '/api/blade-manager/wbsTreeContract/getConcealedWorksNodeTree',
  21. method: 'post',
  22. params: form,
  23. });
  24. },
  25. //获取当前项目类型的显隐配置列表
  26. async getClassifyShowConfigList(form) {
  27. return httpApi({
  28. url: '/api/blade-business/imageClassificationFile/getClassifyShowConfigList',
  29. method: 'get',
  30. params: form,
  31. })
  32. },
  33. //保存客户端分类显隐记录
  34. async saveClassifyShowConfig(form) {
  35. return httpApi({
  36. url: '/api/blade-business/imageClassificationFile/saveClassifyShowConfig',
  37. method: 'post',
  38. data: form,
  39. })
  40. },
  41. //获取时间结构
  42. async getYearDateTree(form) {
  43. return httpApi({
  44. url: '/api/blade-business/imageClassificationFile/getYearDateTree',
  45. method: 'get',
  46. params: form,
  47. })
  48. },
  49. //获取当前合同段的工程划分
  50. async getWbsTreeList(form) {
  51. return httpApi({
  52. url: '/api/blade-business/imageClassificationFile/queryContractWbsTreeByContractIdAndType',
  53. method: 'get',
  54. params: form,
  55. })
  56. },
  57. //获取分页数据
  58. async getPageList(form) {
  59. return httpApi({
  60. url: '/api/blade-business/imageClassificationFile/page',
  61. method: 'get',
  62. params: form,
  63. })
  64. },
  65. //新增影音资料信息
  66. async addImageclassifyFile(form) {
  67. return httpApi({
  68. url: '/api/blade-business/imageClassificationFile/save',
  69. method: 'post',
  70. data: form,
  71. })
  72. },
  73. //修改影音资料信息
  74. async updateImageclassifyFile(form) {
  75. return httpApi({
  76. url: '/api/blade-business/imageClassificationFile/update',
  77. method: 'post',
  78. data: form,
  79. })
  80. },
  81. //详情
  82. async queryById(form) {
  83. return httpApi({
  84. url: '/api/blade-business/imageClassificationFile/queryById',
  85. method: 'post',
  86. params: form,
  87. })
  88. },
  89. //影音资料信息逻辑删除
  90. async removeImageclassifyFile(form) {
  91. return httpApi({
  92. url: '/api/blade-business/imageClassificationFile/remove',
  93. method: 'post',
  94. params: form,
  95. })
  96. },
  97. //影音资料览(图片)
  98. async imageClassificationFile(form) {
  99. return httpApi({
  100. url: '/api/blade-business/imageClassificationFile/preview',
  101. method: 'post',
  102. params: form,
  103. })
  104. },
  105. //下载
  106. async batchDownloadFileToZip(form) {
  107. return httpApi({
  108. url: '/api/blade-business/imageClassificationFile/batchDownloadFileToZip',
  109. method: 'post',
  110. params: form,
  111. responseType: 'blob',
  112. })
  113. },
  114. //接口获取题名
  115. async getFileTitleName(form) {
  116. return httpApi({
  117. url: '/api/blade-business/imageClassificationFile/getFileTitleName',
  118. method: 'get',
  119. params: form,
  120. })
  121. },
  122. }