refactor: job vxe

This commit is contained in:
xingyu4j
2022-11-22 17:07:30 +08:00
parent 562282b2ad
commit 92bcaa04d1
6 changed files with 402 additions and 446 deletions

View File

@ -1,5 +1,16 @@
import request from '@/config/axios'
import type { JobVO } from './types'
export type JobVO = {
id: number
name: string
status: number
handlerName: string
handlerParam: string
cronExpression: string
retryCount: number
retryInterval: number
monitorTimeout: number
}
// 任务列表
export const getJobPageApi = (params) => {

View File

@ -1,5 +1,19 @@
import request from '@/config/axios'
export type JobLogVO = {
id: number
jobId: number
handlerName: string
handlerParam: string
cronExpression: string
executeIndex: string
beginTime: string
endTime: string
duration: string
status: number
createTime: string
}
// 任务日志列表
export const getJobLogPageApi = (params) => {
return request.get({ url: '/infra/job-log/page', params })