portalConfig.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import request from '@/utils/request'
  2. // 创建门户配置
  3. export function createPortalConfig(data) {
  4. return request({
  5. url: '/supplier/portal-config/create',
  6. method: 'post',
  7. data: data
  8. })
  9. }
  10. // 更新门户配置
  11. export function updatePortalConfig(data) {
  12. return request({
  13. url: '/supplier/portal-config/update',
  14. method: 'put',
  15. data: data
  16. })
  17. }
  18. // 删除门户配置
  19. export function deletePortalConfig(id) {
  20. return request({
  21. url: '/supplier/portal-config/delete?id=' + id,
  22. method: 'delete'
  23. })
  24. }
  25. // 获得门户配置
  26. export function getPortalConfig(id) {
  27. return request({
  28. url: '/supplier/portal-config/get?id=' + id,
  29. method: 'get'
  30. })
  31. }
  32. // 获得门户配置
  33. export function getThisConfig(id) {
  34. return request({
  35. url: '/supplier/portal-config/getThisConfig',
  36. method: 'get'
  37. })
  38. }
  39. // 获得门户配置分页
  40. export function getPortalConfigPage(query) {
  41. return request({
  42. url: '/supplier/portal-config/page',
  43. method: 'get',
  44. params: query
  45. })
  46. }
  47. // 导出门户配置 Excel
  48. export function exportPortalConfigExcel(query) {
  49. return request({
  50. url: '/supplier/portal-config/export-excel',
  51. method: 'get',
  52. params: query,
  53. responseType: 'blob'
  54. })
  55. }