index.ts 562 B

123456789101112131415161718192021
  1. import { defHttp } from '@/config/axios'
  2. import type { JobLogVO } from './types'
  3. // 任务日志列表
  4. export const getJobLogPageApi = ({ params }) => {
  5. return defHttp.get<PageResult<JobLogVO>>({ url: '/infra/job-log/page', params })
  6. }
  7. // 任务日志详情
  8. export const getJobLogApi = (id: number) => {
  9. return defHttp.get<JobLogVO>({ url: '/infra/job-log/get?id=' + id })
  10. }
  11. // 导出定时任务日志
  12. export const exportJobLogApi = (params) => {
  13. return defHttp.get({
  14. url: '/infra/job-log/export-excel',
  15. params,
  16. responseType: 'blob'
  17. })
  18. }