baseContactsInfo.js 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. import request from '@/utils/request'
  2. import qs from 'qs'
  3. export const getBaseContactsInfos = (params) => {
  4. return new request({
  5. url: './project/baseContactsInfos/',
  6. method: 'get',
  7. params: params
  8. });
  9. }
  10. export const getMemberUnit = (params) => {
  11. return new request({
  12. url: './project/baseUnitViews/getMemberUnit',
  13. method: 'get',
  14. params: params
  15. });
  16. }
  17. // 我的收藏
  18. export const getPortalMyCollecModel = (params) => {
  19. return new request({
  20. url: './op/basePortalModelCollectInfos/getPortalMyCollecModel',
  21. method: 'get',
  22. params: params
  23. });
  24. }
  25. export const get = (id) => {
  26. return new request({
  27. url: './project/baseContactsInfos/' + id,
  28. method: 'get',
  29. });
  30. }
  31. export function saveOrUpdate(baseContactsInfo, token) {
  32. return new request({
  33. url: './project/baseContactsInfos',
  34. method: (baseContactsInfo.id ? 'put' : 'post'),
  35. headers: {
  36. token
  37. },
  38. data: {
  39. baseContactsInfo
  40. }
  41. });
  42. }
  43. export function getMemberInformation(params) {
  44. return new request({
  45. url: './personnel/baseMemberInfos/searchByType',
  46. method: 'get',
  47. params: params
  48. });
  49. }
  50. export function getnetworkData(baseContactsInfo, token) {
  51. return new request({
  52. url: './personnel/baseMemberInfos/showMemeberNumber',
  53. method: 'get',
  54. });
  55. }
  56. export function del(id) {
  57. return new request({
  58. url: './project/baseContactsInfos/' + id,
  59. method: 'delete',
  60. });
  61. }
  62. export function getMemberLeagueUnit(unitId) {
  63. return new request({
  64. url: './personnel/baseMemberInfos/getMemberLeagueUnit',
  65. method: 'get',
  66. params:{
  67. unitId:unitId
  68. }
  69. });
  70. }