-
+
diff --git a/src/pages/sys/task/page.ts b/src/pages/sys/task/page.ts
index 1d60ea5..d47594d 100644
--- a/src/pages/sys/task/page.ts
+++ b/src/pages/sys/task/page.ts
@@ -1,3 +1,3 @@
export default {
- component: () => import('@/pages/sys/task_execute_log/Task_execute_log.vue'),
+ component: () => import('@/pages/sys/task/Task.vue'),
} as RouterTypes.RouteConfig
diff --git a/src/pages/sys/task/task-api.ts b/src/pages/sys/task/task-api.ts
index 448044c..b4f908a 100644
--- a/src/pages/sys/task/task-api.ts
+++ b/src/pages/sys/task/task-api.ts
@@ -4,19 +4,19 @@ import {
} from '@/common/utils/http-util.ts'
export default {
- paging(data: Task_execute_logTypes.SearchTask_execute_logParam) {
- return get>('/sys_task_execute_log/paging', data)
+ paging(data: TaskTypes.SearchTaskParam) {
+ return get>('/sys_task/paging', data)
},
detail(id: string) {
- return get('/sys_task_execute_log/detail', {id})
+ return get('/sys_task/detail', {id})
},
- add(data: Task_execute_logTypes.AddTask_execute_logParam) {
- return post('/sys_task_execute_log/add', data)
+ add(data: TaskTypes.AddTaskParam) {
+ return post('/sys_task/add', data)
},
- modify(data: Task_execute_logTypes.ModifyTask_execute_logParam) {
- return post('/sys_task_execute_log/modify', data)
+ modify(data: TaskTypes.ModifyTaskParam) {
+ return post('/sys_task/modify', data)
},
del(ids: string[]) {
- return post('/sys_task_execute_log/del', ids)
+ return post('/sys_task/del', ids)
},
}
diff --git a/src/pages/sys/task/task.d.ts b/src/pages/sys/task/task.d.ts
index b280ac0..ac43707 100644
--- a/src/pages/sys/task/task.d.ts
+++ b/src/pages/sys/task/task.d.ts
@@ -1,80 +1,88 @@
export {}
declare global {
- namespace Task_execute_logTypes {
- interface SearchTask_execute_logParam extends G.PageParam {
+ namespace TaskTypes {
+ interface SearchTaskParam extends G.PageParam {
// Id
id?: string
- // 调度 Id
- scheduleId?: string
+ // 任务名称
+ taskName?: string
+ // 任务执行函数
+ fn?: string
// 日志等级
logLevel?: string
- // 日志时间
- logTime?: string
- // 位置
- place?: string
- // 行号
- line?: number
- // 日志信息
- msg?: string
- // 错误信息
- err?: string
+ // 调度方式
+ scheduleType?: string
+ // 调度配置
+ scheduleConf?: string
+ // 临界时间
+ criticalTiming?: string
+ // 是否禁用
+ disabled?: boolean
+ // 备注
+ memo?: string
}
- interface SearchTask_execute_logResult {
+ interface SearchTaskResult {
// Id
id?: string
- // 调度 Id
- scheduleId?: string
+ // 任务名称
+ taskName?: string
+ // 任务执行函数
+ fn?: string
// 日志等级
logLevel?: string
- // 日志时间
- logTime?: string
- // 位置
- place?: string
- // 行号
- line?: number
- // 日志信息
- msg?: string
- // 错误信息
- err?: string
+ // 调度方式
+ scheduleType?: string
+ // 调度配置
+ scheduleConf?: string
+ // 临界时间
+ criticalTiming?: string
+ // 是否禁用
+ disabled?: boolean
+ // 备注
+ memo?: string
}
- interface AddTask_execute_logParam {
+ interface AddTaskParam {
// Id
id?: string
- // 调度 Id
- scheduleId?: string
+ // 任务名称
+ taskName?: string
+ // 任务执行函数
+ fn?: string
// 日志等级
logLevel?: string
- // 日志时间
- logTime?: string
- // 位置
- place?: string
- // 行号
- line?: number
- // 日志信息
- msg?: string
- // 错误信息
- err?: string
+ // 调度方式
+ scheduleType?: string
+ // 调度配置
+ scheduleConf?: string
+ // 临界时间
+ criticalTiming?: string
+ // 是否禁用
+ disabled?: boolean
+ // 备注
+ memo?: string
}
- interface ModifyTask_execute_logParam {
+ interface ModifyTaskParam {
// Id
id?: string
- // 调度 Id
- scheduleId?: string
+ // 任务名称
+ taskName?: string
+ // 任务执行函数
+ fn?: string
// 日志等级
logLevel?: string
- // 日志时间
- logTime?: string
- // 位置
- place?: string
- // 行号
- line?: number
- // 日志信息
- msg?: string
- // 错误信息
- err?: string
+ // 调度方式
+ scheduleType?: string
+ // 调度配置
+ scheduleConf?: string
+ // 临界时间
+ criticalTiming?: string
+ // 是否禁用
+ disabled?: boolean
+ // 备注
+ memo?: string
}
}
}