From 40d0ec202559be5df49ef1772abd9da20831607a Mon Sep 17 00:00:00 2001 From: lijiahang Date: Fri, 12 Apr 2024 10:37:03 +0800 Subject: [PATCH 1/4] =?UTF-8?q?:sparkles:=20=E8=AE=A1=E5=88=92=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E9=80=89=E6=8B=A9=E6=A8=A1=E6=9D=BF.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/ExecCommandServiceImpl.java | 1 + .../components/exec-command-panel-editor.vue | 16 ++-------- .../components/exec-command-panel.vue | 15 ++++++++-- .../components/exec-job-form-drawer.vue | 30 +++++++++++++++++-- .../src/views/exec/exec-job/index.vue | 8 ++++- 5 files changed, 50 insertions(+), 20 deletions(-) diff --git a/orion-ops-module-asset/orion-ops-module-asset-service/src/main/java/com/orion/ops/module/asset/service/impl/ExecCommandServiceImpl.java b/orion-ops-module-asset/orion-ops-module-asset-service/src/main/java/com/orion/ops/module/asset/service/impl/ExecCommandServiceImpl.java index 8328cae9..d4063294 100644 --- a/orion-ops-module-asset/orion-ops-module-asset-service/src/main/java/com/orion/ops/module/asset/service/impl/ExecCommandServiceImpl.java +++ b/orion-ops-module-asset/orion-ops-module-asset-service/src/main/java/com/orion/ops/module/asset/service/impl/ExecCommandServiceImpl.java @@ -221,6 +221,7 @@ public class ExecCommandServiceImpl implements ExecCommandService { // 添加内置参数 params.put("userId", request.getUserId()); params.put("username", request.getUsername()); + params.put("source", request.getSourceId()); params.put("sourceId", request.getSourceId()); params.put("seq", request.getExecSeq()); params.put("execId", execId); diff --git a/orion-ops-ui/src/views/exec/exec-command/components/exec-command-panel-editor.vue b/orion-ops-ui/src/views/exec/exec-command/components/exec-command-panel-editor.vue index 3173208c..3ae51380 100644 --- a/orion-ops-ui/src/views/exec/exec-command/components/exec-command-panel-editor.vue +++ b/orion-ops-ui/src/views/exec/exec-command/components/exec-command-panel-editor.vue @@ -5,7 +5,7 @@

执行命令

+ @click="emits('openTemplate')"> 从模板中选择 @@ -17,9 +17,6 @@
使用 @{{ xxx }} 来替换参数, 输入_可以获取全部变量
- - @@ -30,17 +27,8 @@ diff --git a/orion-ops-ui/src/views/exec/exec-command/components/exec-command-panel.vue b/orion-ops-ui/src/views/exec/exec-command/components/exec-command-panel.vue index 7c881a85..239d28c1 100644 --- a/orion-ops-ui/src/views/exec/exec-command/components/exec-command-panel.vue +++ b/orion-ops-ui/src/views/exec/exec-command/components/exec-command-panel.vue @@ -10,6 +10,7 @@