scheduling.js 1001 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import ajax from '@/utils/request.js';
  2. export function getUsers() {
  3. return ajax({
  4. url: 'http://172.16.101.11:8081/user-list',
  5. method: 'GET',
  6. urlType: 'default',
  7. next: true,
  8. errorToast: '当前访问人数过多,请重试。',
  9. });
  10. }
  11. export function createScheduling(data) {
  12. return ajax({
  13. url: 'http://172.16.101.11:8081/create-duty',
  14. method: 'GET',
  15. urlType: 'default',
  16. next: true,
  17. errorToast: '当前访问人数过多,请重试。',
  18. data: data,
  19. });
  20. }
  21. export function getHistory(data) {
  22. return ajax({
  23. url: 'http://172.16.101.11:8081/history',
  24. method: 'POST',
  25. urlType: 'default',
  26. next: true,
  27. errorToast: '当前访问人数过多,请重试。',
  28. data: data,
  29. });
  30. }
  31. export function createUser(data) {
  32. return ajax({
  33. url: 'http://172.16.101.11:8081/custom-create-duty',
  34. method: 'POST',
  35. urlType: 'default',
  36. next: true,
  37. errorToast: '当前访问人数过多,请重试。',
  38. data: data,
  39. });
  40. }