From 28d493edb2a1bac346309ef507a17dabf5a8e381 Mon Sep 17 00:00:00 2001 From: Syahsing <50352905+Syahsing@users.noreply.github.com> Date: Mon, 6 Feb 2023 20:22:00 +0800 Subject: [PATCH] Easy to click button, refresh list on cancel copy. Make buttons in "more dropdown list" easy to click, Automatically refresh job list after cancel(In actually it has copied) --- src/components/views/JobManager.vue | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/src/components/views/JobManager.vue b/src/components/views/JobManager.vue index 88918a5..4176e0e 100644 --- a/src/components/views/JobManager.vue +++ b/src/components/views/JobManager.vue @@ -57,21 +57,13 @@ @@ -265,7 +257,7 @@ {{$t('message.save')}} - {{$t('message.cancel')}} + {{$t('message.cancel')}} @@ -477,6 +469,10 @@ this.runLoading = false }); }, + // 处理下拉命令 + handleCommand(command, e) { + this[command](e.$attrs.row); + }, // 参数运行 onClickRunByParameter(data) { this.temporaryRowData = data;