imageData.js 3.2 KB

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