schedule.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. import request from '@/utils/request'
  2. // 获取日程安排列表
  3. export function List(data) {
  4. return request({
  5. url: '/api/system/Schedule/AppList',
  6. method: 'get',
  7. data,
  8. options: {
  9. load: false
  10. }
  11. })
  12. }
  13. // 新建日程安排
  14. export function ScheduleCreate(data) {
  15. return request({
  16. url: '/api/system/Schedule',
  17. method: 'post',
  18. data,
  19. options: {
  20. load: false
  21. }
  22. })
  23. }
  24. // 删除日程安排
  25. export function ScheduleDelete(id, type) {
  26. return request({
  27. url: `/api/system/Schedule/${id}/${type}`,
  28. method: 'DELETE',
  29. options: {
  30. load: false
  31. }
  32. })
  33. }
  34. // 获取日程安排信息
  35. export function ScheduleInfo(id) {
  36. return request({
  37. url: `/api/system/Schedule/${id}`,
  38. method: 'get',
  39. options: {
  40. load: false
  41. }
  42. })
  43. }
  44. // 更新日程安排
  45. export function ScheduleUpdate(data, type) {
  46. return request({
  47. url: `/api/system/Schedule/${data.id}/${type}`,
  48. method: 'PUT',
  49. data,
  50. options: {
  51. load: false
  52. }
  53. })
  54. }
  55. //查看日程详情
  56. export function ScheduleDetail(groupId, id) {
  57. return request({
  58. url: `/api/system/Schedule/detail?groupId=${groupId}&id=${id}`,
  59. method: 'get',
  60. options: {
  61. load: false
  62. }
  63. })
  64. }