myPeriodical.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. import request from '@/utils/request'
  2. import qs from 'qs'
  3. export const getPeriodicalInformationByUserCenter = (items, token) => {
  4. return new request({
  5. url: './project/infoJournalViews/getPeriodicalInformationByUserCenter',
  6. method: 'get',
  7. headers: {
  8. token
  9. },
  10. params: items
  11. });
  12. }
  13. export const getAllJournalClassificationByUserCenter = (params) => {
  14. return new request({
  15. url: './project/journalClassifications/getAllJournalClassificationByUserCenter/',
  16. method: 'get',
  17. params: params
  18. });
  19. }
  20. export function saveOrUpdateByUserCenter(infoJournalView, token) {
  21. return new request({
  22. url: './project/infoJournalViews/saveOrUpdateByUserCenter',
  23. method: (infoJournalView.id ? 'put' : 'post'),
  24. headers: {
  25. token
  26. },
  27. data: {
  28. infoJournalView
  29. }
  30. });
  31. }
  32. export const getInfoDataByUserCenter = (params) => {
  33. return new request({
  34. url: './project/infoJournalViews/getInfoDataByUserCenter/',
  35. method: 'get',
  36. params: params
  37. });
  38. }
  39. export const deleteJournalByUserCenter = (params) => {
  40. return new request({
  41. url: './project/infoJournalViews/deleteJournalByUserCenter/',
  42. method: 'get',
  43. params: params
  44. });
  45. }
  46. export const commitJournalByUserCenter = (params) => {
  47. return new request({
  48. url: './project/infoJournalViews/commitJournalByUserCenter/',
  49. method: 'get',
  50. params: params
  51. });
  52. }