fun.js 611 B

1234567891011121314151617181920212223242526272829303132333435
  1. import request from '@/utils/request'
  2. // 查询定时任务调度列表
  3. export function listJob(query) {
  4. return request({
  5. url: '/method/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询定时任务调度详细
  11. export function getJob(jobId) {
  12. return request({
  13. url: '/method/' + jobId,
  14. method: 'get'
  15. })
  16. }
  17. // 新增定时任务调度
  18. export function addJob(data) {
  19. return request({
  20. url: '/method',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 删除定时任务调度
  26. export function delJob(jobId) {
  27. return request({
  28. url: '/method/' + jobId,
  29. method: 'delete'
  30. })
  31. }