<div class="modal-header">
  <div class="modal-title">{{ i.id === 0 ? '新增角色' : '编辑角色' }}</div>
</div>
<nz-spin *ngIf="!i" class="modal-spin"></nz-spin>
<div *ngIf="i">
  <sf #sf [compact]="true" [ui]="ui" [schema]="schema" [button]="'none'"> </sf>
</div>
<div class="box">
  <se-container se-container="1">
    <se label="角色权限" required [labelWidth]="120">
      <app-cuc-menu #menu (changeData)="getData($event)" [type]="i.id === 0 ? 'add' : 'edit'" [source]="source"
        [roleId]="i.id" [isAuthorityIdDTOList]="roleInfoData.authority"
        [authorityAssistId]="roleInfoData.authorityAssistId">
      </app-cuc-menu>
    </se>
  </se-container>
</div>

<div class="modal-footer">
  <button nz-button type="button" (click)="close()">{{ source === 'onlyAuth' ? '关闭' : '取消' }}</button>
  <button nz-button type="button" nzType="primary" (click)="sure()" *ngIf="source !== 'onlyAuth'"
    [disabled]="!sf?.valid">确定</button>
</div>