mirror of https://github.com/jumpserver/jumpserver
[Update] 修改操作日志搜索字段没清空的问题
parent
d969563e43
commit
48fa26a3bc
|
@ -44,7 +44,7 @@
|
|||
<select class="select2 form-control" name="action">
|
||||
<option value="">{% trans 'Action' %}</option>
|
||||
{% for k, v in actions.items %}
|
||||
<option value="{{ k }}" {% if k == action %} selected {% endif %}>{{ v }}</option>
|
||||
<option value="{{ k }}" {% if k == search_action %} selected {% endif %}>{{ v }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
|
|
|
@ -122,6 +122,7 @@ class OperateLogListView(PermissionsMixin, DatetimeSearchMixin, ListView):
|
|||
context = {
|
||||
'user_list': current_org.get_org_members(),
|
||||
'actions': self.actions_dict,
|
||||
'search_action': self.action,
|
||||
'resource_type_list': get_resource_type_list(),
|
||||
'date_from': self.date_from,
|
||||
'date_to': self.date_to,
|
||||
|
|
Loading…
Reference in New Issue