mirror of https://github.com/jumpserver/jumpserver
fix: 修复授权树api数据结构
parent
d46f1080f8
commit
5cd23b843a
|
@ -26,7 +26,7 @@ class SerializeToTreeNodeMixin:
|
||||||
'isParent': True,
|
'isParent': True,
|
||||||
'open': node.is_org_root(),
|
'open': node.is_org_root(),
|
||||||
'meta': {
|
'meta': {
|
||||||
'node': {
|
'data': {
|
||||||
"id": node.id,
|
"id": node.id,
|
||||||
"key": node.key,
|
"key": node.key,
|
||||||
"value": node.value,
|
"value": node.value,
|
||||||
|
@ -65,7 +65,7 @@ class SerializeToTreeNodeMixin:
|
||||||
'chkDisabled': not asset.is_active,
|
'chkDisabled': not asset.is_active,
|
||||||
'meta': {
|
'meta': {
|
||||||
'type': 'asset',
|
'type': 'asset',
|
||||||
'asset': {
|
'data': {
|
||||||
'id': asset.id,
|
'id': asset.id,
|
||||||
'hostname': asset.hostname,
|
'hostname': asset.hostname,
|
||||||
'ip': asset.ip,
|
'ip': asset.ip,
|
||||||
|
|
Loading…
Reference in New Issue