dealerProductBrand.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. import { axios } from '@/utils/request'
  2. // 产品品牌列表 分页
  3. export const dealerProductBrandList = (params) => {
  4. const url = `/dealerProductBrand/queryPage/${params.pageNo}/${params.pageSize}`
  5. delete params.pageNo
  6. delete params.pageSize
  7. return axios({
  8. url: url,
  9. data: params,
  10. method: 'post',
  11. headers: {
  12. 'module': encodeURIComponent('列表查询')
  13. }
  14. })
  15. }
  16. // 产品品牌列表 无分页
  17. export const dealerProductBrandQuery = (params) => {
  18. const url = `/dealerProductBrand/queryList`
  19. return axios({
  20. url: url,
  21. data: params,
  22. method: 'post'
  23. })
  24. }
  25. // 新增/编辑产品品牌
  26. export const dealerProductBrandSave = params => {
  27. return axios({
  28. url: '/dealerProductBrand/save',
  29. data: params,
  30. method: 'post',
  31. headers: {
  32. 'module': encodeURIComponent(!params.id ? '新增' : '编辑')
  33. }
  34. })
  35. }
  36. // 产品品牌 更改状态
  37. export const dealerProductBrandUpdate = params => {
  38. return axios({
  39. url: '/dealerProductBrand/updateStatus',
  40. data: params,
  41. method: 'post',
  42. headers: {
  43. 'module': encodeURIComponent(params.enabledFlag == 0 ? '禁用' : '启用')
  44. }
  45. })
  46. }