mirror of https://github.com/jumpserver/jumpserver
[Update] 修改去掉一些print
parent
1448d23ca6
commit
2d07eeb16b
|
@ -106,8 +106,6 @@ class AdminUserAssetsView(PermissionsMixin, SingleObjectMixin, ListView):
|
||||||
context = {
|
context = {
|
||||||
'app': _('Assets'),
|
'app': _('Assets'),
|
||||||
'action': _('Admin user detail'),
|
'action': _('Admin user detail'),
|
||||||
"total_amount": len(self.queryset),
|
|
||||||
'unreachable_amount': len([asset for asset in self.queryset if asset.connectivity is False])
|
|
||||||
}
|
}
|
||||||
kwargs.update(context)
|
kwargs.update(context)
|
||||||
return super().get_context_data(**kwargs)
|
return super().get_context_data(**kwargs)
|
||||||
|
|
|
@ -32,8 +32,6 @@ class BulkSerializerMixin(object):
|
||||||
id_value = id_field.to_internal_value(data.get("id"))
|
id_value = id_field.to_internal_value(data.get("id"))
|
||||||
else:
|
else:
|
||||||
id_value = id_field.to_internal_value(data.get("pk"))
|
id_value = id_field.to_internal_value(data.get("pk"))
|
||||||
print(">>>>>>>>>>>>>>>>>>>")
|
|
||||||
print(id_attr)
|
|
||||||
ret[id_attr] = id_value
|
ret[id_attr] = id_value
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
#
|
#
|
||||||
|
|
||||||
|
import traceback
|
||||||
from django.db import models
|
from django.db import models
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
from django.core.exceptions import ValidationError
|
from django.core.exceptions import ValidationError
|
||||||
|
|
|
@ -513,7 +513,6 @@ class AssetPermissionUtil(AssetPermissionCacheMixin):
|
||||||
"""
|
"""
|
||||||
self.get_assets_without_cache()
|
self.get_assets_without_cache()
|
||||||
nodes_assets = self.tree.get_nodes_with_assets()
|
nodes_assets = self.tree.get_nodes_with_assets()
|
||||||
print(nodes_assets.keys())
|
|
||||||
return nodes_assets
|
return nodes_assets
|
||||||
|
|
||||||
def get_system_users_without_cache(self):
|
def get_system_users_without_cache(self):
|
||||||
|
|
|
@ -608,7 +608,10 @@ jumpserver.initServerSideDataTable = function (options) {
|
||||||
search_list.map(function (val, index) {
|
search_list.map(function (val, index) {
|
||||||
var kv = val.split(":");
|
var kv = val.split(":");
|
||||||
if (kv.length === 2) {
|
if (kv.length === 2) {
|
||||||
search_attr[kv[0]] = kv[1]
|
var value = kv[1];
|
||||||
|
value = value.replace("+", " ");
|
||||||
|
console.log(value);
|
||||||
|
search_attr[kv[0]] = value
|
||||||
} else {
|
} else {
|
||||||
search_raw.push(kv)
|
search_raw.push(kv)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue