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
69aba464
Commit
69aba464
authored
9 years ago
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
f849ffef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
63 deletions
+4
-63
asset_cu_list.html
templates/jasset/asset_cu_list.html
+4
-52
jasset.html
templates/jasset/jasset.html
+0
-11
No files found.
templates/jasset/asset_cu_list.html
View file @
69aba464
...
...
@@ -110,8 +110,8 @@
});
$
(
'#exec_cmd'
).
click
(
function
(){
var
url
=
'
/jperm/role/get/
'
;
var
new_url
=
'
/exec_cmd/
?role='
;
var
url
=
'
{% url "role_get" %}
'
;
var
new_url
=
'
{% url "exec_cmd" %}
?role='
;
var
check_array
=
[];
$
(
".gradeX input:checked"
).
closest
(
'tr'
).
find
(
'.hostname a'
).
each
(
function
()
{
check_array
.
push
(
$
(
this
).
text
())
...
...
@@ -155,9 +155,9 @@
});
$
(
'.conn'
).
click
(
function
(){
var
url
=
'
/jperm/role/get/
?id='
+
$
(
this
).
attr
(
'value'
);
var
url
=
'
{% url "role_get" %}
?id='
+
$
(
this
).
attr
(
'value'
);
var
href
=
$
(
this
).
attr
(
'href'
);
var
new_url
=
'
/jlog/web_terminal/
?id='
+
$
(
this
).
attr
(
'value'
)
+
'&role='
;
var
new_url
=
'
{% url "terminal" %}
?id='
+
$
(
this
).
attr
(
'value'
)
+
'&role='
;
var
hostname
=
$
(
this
).
closest
(
'tr'
).
find
(
'.hostname a'
)[
0
].
innerHTML
;
$
.
ajax
({
type
:
'GET'
,
...
...
@@ -263,50 +263,6 @@
});
$
(
'#asset_del'
).
click
(
function
()
{
var
asset_id_all
=
getIDall
();
if
(
asset_id_all
==
''
){
alert
(
"请至少选择一行!"
);
return
false
;
}
if
(
confirm
(
"确定删除?"
))
{
$
.
ajax
({
type
:
"post"
,
data
:
{
asset_id_all
:
asset_id_all
},
url
:
"/jasset/asset_del/?arg=batch"
,
success
:
function
()
{
parent
.
location
.
reload
();
}
});
}
});
$
(
'#asset_update'
).
click
(
function
()
{
var
asset_id_all
=
getIDall
();
if
(
asset_id_all
==
''
){
if
(
confirm
(
"更新全部资产信息?"
))
{
layer
.
msg
(
'玩命更新中...'
,
{
time
:
200000
});
$
.
ajax
({
type
:
"post"
,
url
:
"/jasset/asset_update_batch/?arg=all"
,
success
:
function
()
{
parent
.
location
.
reload
();
}
});
}
}
else
{
layer
.
msg
(
'玩命更新中...'
,
{
time
:
200000
});
$
.
ajax
({
type
:
"post"
,
data
:
{
asset_id_all
:
asset_id_all
},
url
:
"/jasset/asset_update_batch/"
,
success
:
function
()
{
parent
.
location
.
reload
();
}
});
}
});
{
#
$
(
'#asset_update_all'
).
click
(
function
()
{
#
}
{
#
layer
.
msg
(
'玩命更新中...'
,
{
time
:
200000
});
#
}
...
...
@@ -319,10 +275,6 @@
{
#
});
#
}
{
#
});
#
}
function
change_info
(){
var
args
=
$
(
"#asset_form"
).
serialize
();
window
.
location
=
"/jasset/asset_list/?"
+
args
}
$
(
"#search_input"
).
keydown
(
function
(
e
){
if
(
e
.
keyCode
==
13
){
...
...
This diff is collapsed.
Click to expand it.
templates/jasset/jasset.html
deleted
100644 → 0
View file @
f849ffef
<!DOCTYPE html>
<html>
<head
lang=
"en"
>
<meta
charset=
"UTF-8"
>
<title>
资产管理
</title>
</head>
<body>
<h1>
welocome!
</h1>
</body>
</html>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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