Commit b009b0a8 authored by ibuler's avatar ibuler

[Bugfix] 修复资产树刷新的问题

parent ed730e6d
...@@ -70,7 +70,6 @@ export class ElementAssetTreeComponent implements OnInit, OnChanges { ...@@ -70,7 +70,6 @@ export class ElementAssetTreeComponent implements OnInit, OnChanges {
} }
if (changes['query'] && !changes['query'].firstChange) { if (changes['query'] && !changes['query'].firstChange) {
this.searchEvt$.next(this.query); this.searchEvt$.next(this.query);
// this.filter();
} }
} }
...@@ -125,11 +124,10 @@ export class ElementAssetTreeComponent implements OnInit, OnChanges { ...@@ -125,11 +124,10 @@ export class ElementAssetTreeComponent implements OnInit, OnChanges {
$.fn.zTree.init($('#ztree'), this.setting, this.nodes); $.fn.zTree.init($('#ztree'), this.setting, this.nodes);
const zTree = $.fn.zTree.getZTreeObj('ztree'); const zTree = $.fn.zTree.getZTreeObj('ztree');
const root = zTree.getNodes()[0]; const root = zTree.getNodes()[0];
zTree.expandNode(root); zTree.expandNode(root, true);
} }
Connect(host) { Connect(host) {
// console.log(host);
let user: any; let user: any;
if (host.system_users_granted.length > 1) { if (host.system_users_granted.length > 1) {
user = this.checkPriority(host.system_users_granted); user = this.checkPriority(host.system_users_granted);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment