[Update] 用户权限增加cache

This commit is contained in:
ibuler
2019-03-05 19:47:14 +08:00
parent dfd26d88d4
commit 58c4a46f6e
16 changed files with 261 additions and 72 deletions

View File

@@ -922,3 +922,16 @@ function initSelectedAssets2Table(){
});
}
}
function rootNodeAddDom(ztree, callback) {
var refreshIcon = "<a id='tree-refresh'><i class='fa fa-refresh'></i></a>";
var rootNode = ztree.getNodes()[0];
var $rootNodeRef = $("#" + rootNode.tId + "_a");
$rootNodeRef.after(refreshIcon);
var refreshIconRef = $('#tree-refresh');
refreshIconRef.bind('click', function () {
ztree.destroy();
callback()
})
}