From 60abdf1dbcfbaf1b11414c1890d98490a65dedb7 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Wed, 14 Jul 2021 09:53:26 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=8D=87=E7=BA=A7oshi=E5=88=B0=E6=9C=80?= =?UTF-8?q?=E6=96=B0=E7=89=88=E6=9C=ACv5.7.5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 60c01e2e..471a8c90 100644 --- a/pom.xml +++ b/pom.xml @@ -25,7 +25,7 @@ 2.1.4 1.3.1 1.2.76 - 5.7.4 + 5.7.5 5.8.0 2.10.0 1.4 From b616a2f2e74fde2abf23133e2a5c76851bc49489 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Thu, 15 Jul 2021 17:35:33 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=9B=B4=E5=A4=9A=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/monitor/job/index.vue | 50 +++++++++++++++++++----- ruoyi-ui/src/views/monitor/job/log.vue | 26 +++++++++++- 2 files changed, 65 insertions(+), 11 deletions(-) diff --git a/ruoyi-ui/src/views/monitor/job/index.vue b/ruoyi-ui/src/views/monitor/job/index.vue index c8fcd6dc..a1bb4e20 100644 --- a/ruoyi-ui/src/views/monitor/job/index.vue +++ b/ruoyi-ui/src/views/monitor/job/index.vue @@ -115,17 +115,30 @@ 执行一次 + icon="el-icon-edit" + @click="handleUpdate(scope.row)" + v-hasPermi="['monitor:job:edit']" + >修改 详细 + icon="el-icon-delete" + @click="handleDelete(scope.row)" + v-hasPermi="['monitor:job:remove']" + >删除 + + + 更多 + + + 执行一次 + 任务详细 + 调度日志 + + @@ -385,6 +398,22 @@ export default { this.single = selection.length != 1; this.multiple = !selection.length; }, + // 更多操作触发 + handleCommand(command, row) { + switch (command) { + case "handleRun": + this.handleRun(row); + break; + case "handleView": + this.handleView(row); + break; + case "handleJobLog": + this.handleJobLog(row); + break; + default: + break; + } + }, // 任务状态修改 handleStatusChange(row) { let text = row.status === "0" ? "启用" : "停用"; @@ -420,8 +449,9 @@ export default { }); }, /** 任务日志列表查询 */ - handleJobLog() { - this.$router.push("/job/log"); + handleJobLog(row) { + const jobId = row.jobId || 0; + this.$router.push({ path: '/job/log', query: { jobId: jobId } }) }, /** 新增按钮操作 */ handleAdd() { diff --git a/ruoyi-ui/src/views/monitor/job/log.vue b/ruoyi-ui/src/views/monitor/job/log.vue index fa5976fe..e3a427ee 100644 --- a/ruoyi-ui/src/views/monitor/job/log.vue +++ b/ruoyi-ui/src/views/monitor/job/log.vue @@ -94,6 +94,15 @@ v-hasPermi="['monitor:job:export']" >导出 + + 关闭 + @@ -168,6 +177,7 @@