committeeShowMessageInfo.js 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. import request from '@/utils/request'
  2. import qs from 'qs'
  3. export const getCommitteeShowMessageInfos = (params) => {
  4. return new request({
  5. url: './project/committeeShowMessageInfos/',
  6. method: 'get',
  7. params: params
  8. });
  9. }
  10. export const get = (id) => {
  11. return new request({
  12. url: './project/committeeShowMessageInfos/' + id,
  13. method: 'get',
  14. });
  15. }
  16. export function saveOrUpdate(committeeShowMessageInfo, token) {
  17. return new request({
  18. url: './project/committeeShowMessageInfos',
  19. method: (committeeShowMessageInfo.id ? 'put' : 'post'),
  20. headers: {
  21. token
  22. },
  23. data: {
  24. committeeShowMessageInfo
  25. }
  26. });
  27. }
  28. export function del(id) {
  29. return new request({
  30. url: './project/committeeShowMessageInfos/' + id,
  31. method: 'delete',
  32. });
  33. }
  34. export function saveCommitteeEnterprise(baseEntityId, token) {
  35. return new request ({
  36. url:'./project/committeeShowMessageInfos/saveCommitteeEnterprise',
  37. method:'post',
  38. headers: {
  39. token
  40. },
  41. data:{
  42. baseEntityId
  43. }
  44. });
  45. }
  46. export function saveCommitteePersonnel(baseEntityId, token) {
  47. return new request ({
  48. url:'./project/committeeShowMessageInfos/saveCommitteePersonnel',
  49. method:'post',
  50. headers: {
  51. token
  52. },
  53. data:{
  54. baseEntityId
  55. }
  56. });
  57. }
  58. export function getById(id) {
  59. return new request ({
  60. url:'./project/committeeShowMessageInfos/getById/' + id,
  61. method:'get',
  62. });
  63. }
  64. export function getShowMessageInfoDetail(params) {
  65. return new request ({
  66. url:'./project/committeeShowMessageInfos/getShowMessageInfoDetail',
  67. method:'get',
  68. params:params
  69. });
  70. }