mirror of https://github.com/jumpserver/jumpserver
简单修改
parent
c8d91884c8
commit
e96053ba20
|
@ -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">
|
||||
|
|
Loading鈥
Reference in New Issue