From a5a2d68e0f339a4dbdc739a0a004eb5f32b397e4 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Mon, 23 Oct 2023 18:17:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=20=E8=B0=83=E5=BA=A6=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E6=98=AF=E5=90=A6=E8=BF=9B=E8=A1=8C=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/monitor/job/index.vue | 119 +++++++++++++++++++++----------- 1 file changed, 79 insertions(+), 40 deletions(-) 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秒执行任务 + + + + + + + + + 生成表达式 + + + + + + + + + + + +