fix: 统一状态检查逻辑并增强任务日志记录

修复多处状态检查不一致的问题,统一使用字符串"0"和"1"表示状态
增强任务调度器的日志记录功能,提供更详细的执行信息
修正前端任务状态显示标签样式和文案
更新Cron表达式解析逻辑以兼容APScheduler
This commit is contained in:
zhangtao
2026-01-13 23:18:57 +08:00
parent cbb9a2c5f5
commit 59c1ce1104
9 changed files with 138 additions and 62 deletions
@@ -153,8 +153,8 @@
<el-table-column label="任务组名" prop="job_group" min-width="120" show-overflow-tooltip />
<el-table-column label="执行状态" prop="status" min-width="100" show-overflow-tooltip>
<template #default="scope">
<el-tag :type="scope.row.status === '0' ? 'primary' : 'success'">
{{ scope.row.status === "0" ? "运行中" : "完成" }}
<el-tag :type="scope.row.status === '0' ? 'success' : 'danger'">
{{ scope.row.status === "0" ? "成功" : "失败" }}
</el-tag>
</template>
</el-table-column>
@@ -243,8 +243,8 @@
{{ detailFormData.job_group }}
</el-descriptions-item>
<el-descriptions-item label="执行状态" :span="2">
<el-tag :type="detailFormData.status === '0' ? 'primary' : 'success'">
{{ detailFormData.status === "0" ? "运行中" : "完成" }}
<el-tag :type="detailFormData.status === '0' ? 'success' : 'danger'">
{{ detailFormData.status === "0" ? "成功" : "失败" }}
</el-tag>
</el-descriptions-item>
<el-descriptions-item label="执行信息" :span="2">