feat(sj_1.0.0_beta3): 定时任务导出执行条件筛选

This commit is contained in:
opensnail 2024-05-30 22:52:43 +08:00
parent f8ce3b70d6
commit 5b6cd8a47c
2 changed files with 15 additions and 1 deletions

View File

@ -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;

View File

@ -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>