From 9a2fed61d29bc7aad56c723d7c2af9eb85c195a8 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: Thu, 15 Dec 2022 10:54:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=BB=E5=8A=A1=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E6=8C=89=E9=92=AE=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/monitor/job/index.vue | 133 +++++++++++++++++--------------- src/views/monitor/job/log.vue | 5 +- 2 files changed, 74 insertions(+), 64 deletions(-) diff --git a/src/views/monitor/job/index.vue b/src/views/monitor/job/index.vue index a41b205..4b44569 100644 --- a/src/views/monitor/job/index.vue +++ b/src/views/monitor/job/index.vue @@ -66,11 +66,7 @@ label="任务分组" width="80" v-if="columns.showColumn('jobGroup')" /> - + @@ -84,67 +80,61 @@ :show-overflow-tooltip="true" v-if="columns.showColumn('lastRunTime')" /> - + @@ -646,4 +636,25 @@ function handleDetails(row) { btnVisible.value = false }) } + +function handleCommand(command, row) { + console.log(command, row) + switch (command) { + case 'update': + handleUpdate(row) + break + case 'start': + handleStart(row) + break + case 'stop': + handleStop(row) + break + case 'delete': + handleDelete(row) + break + case 'run': + handleRun(row) + break + } +} diff --git a/src/views/monitor/job/log.vue b/src/views/monitor/job/log.vue index 39b777e..be63b78 100644 --- a/src/views/monitor/job/log.vue +++ b/src/views/monitor/job/log.vue @@ -17,9 +17,8 @@