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 @@