<div class="modal-header">
  <h4 class="modal-title pull-left">角色【{{currentEntity?.role_name}}】权限分配</h4>
</div>
<div class="modal-body">
  <div class="card card-default">
    <div class="card-body">
      <tree-root #tree [nodes]="nodes" [focused]="true" [options]="customTemplateStringOptions">
        <ng-template #treeNodeTemplate let-node>
          <span title="{{node.data.res_alias}}">{{ node.data.res_name }} ({{node.data.res_id}})</span>
        </ng-template>
      </tree-root>
    </div>
  </div>

</div>
<div class="modal-footer">
  <button class="btn btn-primary" type="button" (click)="saveRes()">确定进行权限分配</button>
  <button class="btn btn-secondary ml-5" type="button" (click)="closeWindow()">取消操作</button>
</div>
