From 4c34246750e2c1d27b6c7038c6928089ba43856a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=AB=E5=8D=83=E6=B5=81?= <40739051+jym503558564@users.noreply.github.com> Date: Mon, 8 Jul 2019 10:44:53 +0800 Subject: [PATCH 1/7] =?UTF-8?q?[Bugfix]=20=E4=BF=AE=E5=A4=8D=E6=89=B9?= =?UTF-8?q?=E9=87=8F=E6=89=A7=E8=A1=8C=E5=91=BD=E4=BB=A4=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E8=B5=84=E4=BA=A7bug=20(#2894)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [Bugfix] 修复批量执行命令没有选择资产bug * [Bugfix] 修复批量执行命令没有选择资产bug(2) --- apps/ops/templates/ops/command_execution_create.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/apps/ops/templates/ops/command_execution_create.html b/apps/ops/templates/ops/command_execution_create.html index a9cce3d5a..3e4436e41 100644 --- a/apps/ops/templates/ops/command_execution_create.html +++ b/apps/ops/templates/ops/command_execution_create.html @@ -136,10 +136,12 @@ function getSelectedAssetsNode() { nodes.forEach(function (node) { if (node.meta.type === 'asset' && !node.isHidden) { var protocols = node.meta.asset.protocols; - if (assetsNodeId.indexOf(node.id) === -1 && protocols.indexOf("ssh") > -1) { - assetsNodeId.push(node.id); - assetsNode.push(node) - } + protocols.forEach(function (val) { + if (assetsNodeId.indexOf(node.id) === -1 && val.indexOf("ssh") > -1) { + assetsNodeId.push(node.id); + assetsNode.push(node) + } + }); } }); return assetsNode; From 522d19a7e731e1ced0309cecdbb16f478b4c7f7a Mon Sep 17 00:00:00 2001 From: jym503558564 <503558564@qq.com> Date: Mon, 8 Jul 2019 15:08:17 +0800 Subject: [PATCH 2/7] =?UTF-8?q?[Update]=20=E4=BC=98=E5=8C=96=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E7=94=A8=E6=88=B7=E7=9A=84=E8=B5=84=E4=BA=A7=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E9=A1=B5=E6=98=BE=E7=A4=BA=E4=B8=8D=E5=8F=8B=E5=A5=BD?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/assets/templates/assets/admin_user_assets.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/assets/templates/assets/admin_user_assets.html b/apps/assets/templates/assets/admin_user_assets.html index f34495dad..7c97259ab 100644 --- a/apps/assets/templates/assets/admin_user_assets.html +++ b/apps/assets/templates/assets/admin_user_assets.html @@ -23,7 +23,7 @@