<div class="treeWrap">
  <div class="leftBox">
    <nz-tree #nzTreeComponent [nzData]="functionList" (nzClick)="nzEvent($event)" nzCheckable
      [nzCheckedKeys]="defaultCheckedKeys" [nzExpandedKeys]="defaultExpandedKeys">
    </nz-tree>
  </div>
  <div class="rightBox">
    <nz-tabset [nzSize]="'small'">
      <!-- <nz-tab nzTitle="操作权限">
        <div *ngFor="let item of origin?.buttonInfoList">
          <label nz-checkbox [(ngModel)]="item.checked" (ngModelChange)="addAuthority(origin, node, item)">{{ item.title
            }}</label>
        </div>
        <nz-empty nzNotFoundImage="simple" *ngIf="origin?.buttonInfoList?.length === 0">
        </nz-empty>
      </nz-tab> -->
      <nz-tab nzTitle="操作权限">
        <div *ngIf="origin.buttonInfoList && origin.buttonInfoList.length">
          <label style="width: 100%"
            nz-checkbox
            [(ngModel)]="item.checked"
            *ngFor="let item of origin.buttonInfoList"
            (ngModelChange)="addAuthority(origin, node, item)"
            [disabled]="source === 'onlyAuth'"
            >{{ item.permissionsName }}</label
          >
        </div>
        <nz-empty nzNotFoundImage="simple" *ngIf="origin.buttonInfoList && origin.buttonInfoList.length === 0"> </nz-empty>
      </nz-tab>
      <nz-tab nzTitle="数据权限">
        <div *ngIf="origin.dictList?.length>0" se-container [labelWidth]="100">
          <se [col]="1" label="用户范围" style="margin-bottom: 8px;" required>
            <nz-select>
              <nz-option nzValue="仅可见自己创建的数据" nzLabel="仅可见自己创建的数据"></nz-option>
              <nz-option nzValue="可见全部人创建的数据" nzLabel="可见全部人创建的数据"></nz-option>
            </nz-select>
          </se>
          <se [col]="1" label="运营主体" style="margin-bottom: 8px;" required>
            <nz-select  nzMode="multiple" nzShowSearch>
              <nz-option nzValue="全部" nzLabel="全部"></nz-option>
              <nz-option nzValue="天津" nzLabel="天津"></nz-option>
              <nz-option nzValue="山西" nzLabel="山西"></nz-option>
              <nz-option nzValue="北京" nzLabel="北京"></nz-option>
            </nz-select>
          </se>
        </div>
        <p *ngIf="origin?.dictList?.length === 0">此应用功能模块无数据权限限制，如需添加，请联系系统管理员。</p>
      </nz-tab>
    </nz-tabset>
  </div>
</div>
<nz-empty nzNotFoundImage="simple" *ngIf="functionList.length === 0"></nz-empty>