From 6c376d5b0df252a8dd9c1e98ed7932dc65c5ec35 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 | 38 ++++++++++++++++++++++---- 1 file changed, 32 insertions(+), 6 deletions(-) diff --git a/ZR.Vue/src/views/monitor/job/index.vue b/ZR.Vue/src/views/monitor/job/index.vue index 2809c55..40315b0 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 +173,8 @@ import { runTasks, exportTasks } from '@/api/monitor/job' +import { listJobLog } from '@/api/monitor/jobLog' + export default { name: 'job', data() { @@ -210,6 +223,7 @@ export default { } } return { + drawer: false, // 选中数组 ids: [], // 非单个禁用 @@ -240,6 +254,9 @@ export default { }, // 计划任务列表 dataTasks: [], + // 任务日志列表 + jobLogList: [], + logTitle: "", // 任务状态字典 isStartOptions: [ { dictLabel: '运行中', dictValue: 'true' }, @@ -289,7 +306,7 @@ export default { // 时间的选择 pickerOptions: { disabledDate(time) { - return time.getTime() < Date.now() - 8.64e7; + return time.getTime() < Date.now() - 8.64e7 } } } @@ -345,8 +362,17 @@ export default { this.title = '修改计划任务' }, /** 任务日志列表查询 */ - handleJobLog(param) { - this.$router.push({ path: 'job/log', params: param }) + handleJobLog(id, title) { + if (id == undefined) { + this.$router.push({ path: 'job/log' }) + } else { + this.drawer = true + this.jobLogList = [] + this.logTitle = title + listJobLog({ JobId: id }).then((response) => { + this.jobLogList = response.data.result + }) + } }, // 启动按钮 handleStart(row) {