feat(sj_1.0.0_beta3): 定时任务导出执行条件筛选
This commit is contained in:
parent
f8ce3b70d6
commit
5b6cd8a47c
5
src/typings/api.d.ts
vendored
5
src/typings/api.d.ts
vendored
@ -987,6 +987,11 @@ declare namespace Api {
|
||||
/** JobTask list */
|
||||
type JobList = Common.PaginatingQueryRecord<Job>;
|
||||
|
||||
type ExportJob = Common.CommonRecord<{
|
||||
jobIds: string[];
|
||||
}> &
|
||||
JobSearchParams;
|
||||
|
||||
/** 2、固定时间 3、CRON表达式 99、工作流 */
|
||||
type TriggerType = 2 | 3 | 99;
|
||||
|
||||
|
@ -253,8 +253,17 @@ function goToBatch(jobId: string) {
|
||||
routerPushByKey('job_batch', { query: { jobId } });
|
||||
}
|
||||
|
||||
function body(): Api.Job.ExportJob {
|
||||
return {
|
||||
jobIds: checkedRowKeys.value,
|
||||
groupName: searchParams.groupName,
|
||||
jobName: searchParams.jobName,
|
||||
jobStatus: searchParams.jobStatus
|
||||
};
|
||||
}
|
||||
|
||||
function handleExport() {
|
||||
downloadFetch('/job/export', checkedRowKeys.value, $t('page.jobTask.title'));
|
||||
downloadFetch('/job/export', body(), $t('page.jobTask.title'));
|
||||
}
|
||||
</script>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user