diff --git a/src/views/monitor/job/index.vue b/src/views/monitor/job/index.vue index dcc5a17e..c18856dc 100644 --- a/src/views/monitor/job/index.vue +++ b/src/views/monitor/job/index.vue @@ -32,9 +32,12 @@ let dict: { sysJobGroup: DictType[]; /**任务状态 */ sysJobStatus: DictType[]; + /**任务记录日志 */ + sysJobSaveLog: DictType[]; } = reactive({ sysJobGroup: [], sysJobStatus: [], + sysJobSaveLog: [], }); /**查询参数 */ @@ -125,6 +128,12 @@ let tableColumns: ColumnsType = [ key: 'status', align: 'center', }, + { + title: '记录日志', + dataIndex: 'saveLog', + key: 'saveLog', + align: 'center', + }, { title: '操作', key: 'jobId', @@ -205,6 +214,7 @@ let modalState: ModalStateType = reactive({ concurrent: '0', jobGroup: 'DEFAULT', status: '0', + saveLog: '0', targetParams: '', remark: '', }, @@ -537,6 +547,7 @@ onMounted(() => { Promise.allSettled([ getDict('sys_job_group'), getDict('sys_job_status'), + getDict('sys_job_save_log'), ]).then(resArr => { if (resArr[0].status === 'fulfilled') { dict.sysJobGroup = resArr[0].value; @@ -544,6 +555,9 @@ onMounted(() => { if (resArr[1].status === 'fulfilled') { dict.sysJobStatus = resArr[1].value; } + if (resArr[2].status === 'fulfilled') { + dict.sysJobSaveLog = resArr[2].value; + } }); // 获取列表数据 fnGetList(); @@ -745,6 +759,9 @@ onMounted(() => { :value="record.status" /> + + + @@ -857,20 +874,27 @@ onMounted(() => { - {{ - modalState.from.cronExpression - }} + + {{ modalState.from.cronExpression }} + - - - {{ parseDateToStr(+modalState.from.createTime) }} - + + + + + {{ parseDateToStr(+modalState.from.createTime) }} + + + {{ modalState.from.targetParams }} @@ -990,40 +1014,55 @@ onMounted(() => { - - - - - - - 表达式示例:0/20 * * * * ? - 示例说明:每20秒执行任务 - - - - - - - + + + - - 生成表达式 - - - - + + + + + 表达式示例:0/20 * * * * ? + 示例说明:每20秒执行任务 + + + + + + + + + 生成表达式 + + + + + + + + + + + +