Merge remote-tracking branch 'origin/master'

master^2
YunaiV 2026-06-14 01:24:00 +08:00
commit 8b2dcc2b99
2 changed files with 8 additions and 3 deletions

View File

@ -67,8 +67,7 @@ export const getJobNextTimes = (id: number) => {
return request.get({ url: '/infra/job/get_next_times?id=' + id })
}
// 同步定时任务到 Quartz
export const syncJob = () => {
return request.post({ url: '/infra/job/sync' })
}
}

View File

@ -77,7 +77,13 @@
<el-button type="info" plain @click="handleJobLog()" v-hasPermi="['infra:job:query']">
<Icon icon="ep:zoom-in" class="mr-5px" /> 执行日志
</el-button>
<el-button type="warning" plain @click="handleSyncJob()" :loading="syncLoading">
<el-button
type="warning"
plain
@click="handleSyncJob()"
:loading="syncLoading"
v-hasPermi="['infra:job:create']"
>
<Icon icon="ep:refresh" class="mr-5px" /> 同步任务
</el-button>
</el-form-item>