gather.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. import request from '@/utils/request'
  2. // 查询竞争产品信息收集列表
  3. export function listGather(query) {
  4. return request({
  5. url: '/mk/bo/gathercg/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询竞争产品信息收集详细
  11. export function getGather(id) {
  12. return request({
  13. url: '/mk/bo/gathercg/' + id,
  14. method: 'get'
  15. })
  16. }
  17. // 新增竞争产品信息收集
  18. export function addGather(data) {
  19. return request({
  20. url: '/mk/bo/gathercg',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改竞争产品信息收集
  26. export function updateGather(data) {
  27. return request({
  28. url: '/mk/bo/gathercg',
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 删除竞争产品信息收集
  34. export function delGather(ids) {
  35. return request({
  36. url: '/mk/bo/gathercg/delete',
  37. method: 'post',
  38. data: ids
  39. })
  40. }
  41. // 导入明细
  42. export function upload(data) {
  43. return request({
  44. url: `/mk/bo/gathercg/upload`,
  45. method: 'post',
  46. data: data,
  47. headers: {
  48. 'Content-Type': 'multipart/form-data'
  49. }
  50. })
  51. }
  52. //有效
  53. export function effective(id) {
  54. return request({
  55. url: '/mk/bo/gathercg/effective/' + id,
  56. method: 'post'
  57. })
  58. }
  59. //失效
  60. export function loseEffective(id) {
  61. return request({
  62. url: '/mk/bo/gathercg/loseEffective/' + id,
  63. method: 'post'
  64. })
  65. }