profile.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. import request from '@/utils/request' //引入axios请求及拦截器
  2. export default {
  3. //查询资料字段列表
  4. inquirebaseprofilefieldlist(data) {
  5. return request({
  6. url: '/base/profile/field/list',
  7. method: 'get',
  8. params: data
  9. })
  10. },
  11. //获取资料字段详细信息
  12. obtainbaseprofilefield(data) {
  13. return request({
  14. url: `/base/profile/field/` + data,
  15. method: 'get',
  16. })
  17. },
  18. //新增资料模板
  19. appbaseprofiletp(data) {
  20. return request({
  21. url: '/base/profile/tp',
  22. method: 'post',
  23. data
  24. })
  25. },
  26. //获取所有使用商品ID
  27. inquirebaseprofilefieldgoods_list(data) {
  28. return request({
  29. url: '/base/profile/tp/goods_list',
  30. method: 'get',
  31. params: data
  32. })
  33. },
  34. //修改资料模板
  35. editbaseprofile(data) {
  36. return request({
  37. url: '/base/profile/tp/edit',
  38. method: 'post',
  39. data
  40. })
  41. },
  42. //查询资料模板列表
  43. inquirebaseprofiletplist(data) {
  44. return request({
  45. url: '/base/profile/tp/list',
  46. method: 'get',
  47. params: data
  48. })
  49. },
  50. //获取资料模板详细信息
  51. obtainbaseprofiletp(data) {
  52. return request({
  53. url: `/base/profile/tp/` + data,
  54. method: 'get',
  55. })
  56. },
  57. }