From 899bbe3ffb682dbed2b0c0bd1fd80808db2689c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=81=9A=E7=A0=81=E5=86=9C?= <599854767@qq.com> Date: Tue, 22 Mar 2022 17:49:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E6=97=A5=E5=BF=97=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E6=97=B6=E9=97=B4=E8=BD=B4=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ZR.Vue/src/views/monitor/job/index.vue | 32 ++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/ZR.Vue/src/views/monitor/job/index.vue b/ZR.Vue/src/views/monitor/job/index.vue index 2809c55..325f32c 100644 --- a/ZR.Vue/src/views/monitor/job/index.vue +++ b/ZR.Vue/src/views/monitor/job/index.vue @@ -28,7 +28,7 @@ 导出 - 日志 + 日志 @@ -52,8 +52,9 @@ @@ -162,6 +172,8 @@ import { runTasks, exportTasks } from '@/api/monitor/job' +import { listJobLog } from '@/api/monitor/jobLog' + export default { name: 'job', data() { @@ -210,6 +222,7 @@ export default { } } return { + drawer: false, // 选中数组 ids: [], // 非单个禁用 @@ -240,6 +253,8 @@ export default { }, // 计划任务列表 dataTasks: [], + // 任务日志列表 + jobLogList: [], // 任务状态字典 isStartOptions: [ { dictLabel: '运行中', dictValue: 'true' }, @@ -289,7 +304,7 @@ export default { // 时间的选择 pickerOptions: { disabledDate(time) { - return time.getTime() < Date.now() - 8.64e7; + return time.getTime() < Date.now() - 8.64e7 } } } @@ -346,7 +361,14 @@ export default { }, /** 任务日志列表查询 */ handleJobLog(param) { - this.$router.push({ path: 'job/log', params: param }) + if (param == undefined) { + this.$router.push({ path: 'job/log' }) + } else { + this.drawer = true + listJobLog({ id: param }).then((response) => { + this.jobLogList = response.data.result + }) + } }, // 启动按钮 handleStart(row) {