mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-09 03:09:34 +00:00
This commit is contained in:
@@ -430,8 +430,7 @@ def host_del(request, offset):
|
||||
host_id = request.POST.get(key)
|
||||
db_host_delete(request, host_id)
|
||||
else:
|
||||
host_id = int(offset)
|
||||
db_host_delete(request, host_id)
|
||||
db_host_delete(request, offset)
|
||||
|
||||
return HttpResponseRedirect('/jasset/host_list/')
|
||||
|
||||
|
@@ -774,10 +774,9 @@ def get_apply_posts(request, status, username, dept_name, keyword=None):
|
||||
posts = post_all.filter(dept=dept_name)
|
||||
elif is_common_user(request):
|
||||
if keyword:
|
||||
posts = post_keyword_all.filter(user=username)
|
||||
posts = post_keyword_all.filter(applyer=username)
|
||||
else:
|
||||
posts = post_all.filter(user=username)
|
||||
|
||||
posts = post_all.filter(applyer=username)
|
||||
return posts
|
||||
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#coding: utf8
|
||||
|
||||
[base]
|
||||
ip = 192.168.0.129
|
||||
ip = 192.168.20.209
|
||||
port = 80
|
||||
key = 88aaaf7ffe3c6c04
|
||||
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 3.5 MiB After Width: | Height: | Size: 61 KiB |
Binary file not shown.
Before Width: | Height: | Size: 6.4 KiB |
@@ -31,6 +31,7 @@
|
||||
<div class="ibox-content">
|
||||
<div class="">
|
||||
<a target="_blank" href="/jasset/host_add" class="btn btn-sm btn-primary"> 添加主机 </a>
|
||||
<b class="pull-right">提示: 此页面删除只从本主机组中剔除主机 </b>
|
||||
</div>
|
||||
|
||||
<form id="contents_form" name="contents_form">
|
||||
|
Reference in New Issue
Block a user