Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
jumpserver
Commits
4c342467
Commit
4c342467
authored
Jul 08, 2019
by
八千流
Committed by
老广
Jul 08, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bugfix] 修复批量执行命令没有选择资产bug (#2894)
* [Bugfix] 修复批量执行命令没有选择资产bug * [Bugfix] 修复批量执行命令没有选择资产bug(2)
parent
0809916b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
command_execution_create.html
apps/ops/templates/ops/command_execution_create.html
+6
-4
No files found.
apps/ops/templates/ops/command_execution_create.html
View file @
4c342467
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment