smartReport.js 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. import http from "@/api/http.js"
  2. //智能研报模块
  3. const apiSmartReport={
  4. //报告列表
  5. reportList:params=>{
  6. return http.get('/smart_report/list',params)
  7. },
  8. //分类数据
  9. classifyList:params=>{
  10. return http.get('/classify/list',params)
  11. },
  12. //删除报告
  13. delReport:params=>{
  14. return http.post('/smart_report/remove',params)
  15. },
  16. //报告推送
  17. reportMsgSend:params=>{
  18. return http.post('/smart_report/send_msg',params)
  19. },
  20. // 作者
  21. reportAuthor:params=>{
  22. return http.get('/report/author',params)
  23. },
  24. //新增报告
  25. reportAdd:params=>{
  26. return http.post('/smart_report/add',params)
  27. },
  28. //编辑报告
  29. reportEdit:params=>{
  30. return http.post('/smart_report/edit',params)
  31. },
  32. //报告详情
  33. reportDetail:params=>{
  34. return http.get('/smart_report/detail',params)
  35. },
  36. //保存报告内容
  37. saveReportContent:params=>{
  38. return http.post('/smart_report/save_content',params)
  39. },
  40. //定时发布报告
  41. prePublishReport:params=>{
  42. return http.post('/smart_report/pre_publish',params)
  43. },
  44. //发布/取消发布报告
  45. publishReport:params=>{
  46. return http.post('/smart_report/publish',params)
  47. },
  48. //编辑状态
  49. markReport:params=>{
  50. return http.post('/smart_report/mark_edit',params)
  51. },
  52. //音频上传
  53. voiceupload:params=>{
  54. return http.post('/smart_report/voice_upload',params)
  55. },
  56. //报告导出图片
  57. getReportImg:params=>{
  58. return http.get('/smart_report/detail_img',params)
  59. },
  60. //获取上期已发布报告
  61. getLastReport:params=>{
  62. return http.get('/smart_report/last_published_report',params)
  63. },
  64. // 资源库列表
  65. imgReourceList:params=>{
  66. return http.get('/smart_report/resource/list',params)
  67. },
  68. //新增资源库图片
  69. imgReourceAdd:params=>{
  70. return http.post('/smart_report/resource/add',params)
  71. },
  72. //根据条件查询ppt图片素材
  73. pptMaterialList:params=>{
  74. return http.get('/image_conf/get/image/material',params)
  75. },
  76. //新增图片素材
  77. pptAddMaterial:params=>{
  78. return http.post('/image_conf/add/image/material',params)
  79. },
  80. //删除图片素材
  81. pptDeleteMaterial:params=>{
  82. return http.post('/image_conf/delete/image/material',params)
  83. },
  84. //修改图片素材
  85. pptEditMaterial:params=>{
  86. return http.post('/image_conf/edit/image/material',params)
  87. },
  88. // //资源库图片重命名
  89. // imgReourceRename:params=>{
  90. // return http.post('/smart_report/resource/rename',params)
  91. // },
  92. //资源库图片编辑
  93. imgReourceEdit:params=>{
  94. return http.post('/smart_report/resource/edit',params)
  95. },
  96. //资源库图片删除
  97. imgReourceDel:params=>{
  98. return http.post('/smart_report/resource/remove',params)
  99. }
  100. }
  101. export {
  102. apiSmartReport
  103. }