<div nz-row class="search-form">
    <div nz-col nzSpan="16">
    </div>
    <div nz-col nzSpan="8" class="text-right">
        <input nz-input placeholder="角色/权限模块/资源权限">
        <button nz-button nzType="default"><i class="anticon anticon-search"></i>搜索</button>
    </div>
</div>
<nz-tabset [nzTabPosition]="'top'" [nzType]="'card'">
    <nz-tab nzTitle="待审批">
        <nz-table #basicTable [nzData]="noList">
            <thead>
            <tr>
                <th>操作用户</th>
                <th>操作内容</th>
                <th>提交时间</th>
                <th>审核状态</th>
                <th>审核人</th>
                <th>审核时间</th>
            </tr>
            </thead>
            <tbody>
            <tr *ngFor="let data of basicTable.data">
                <td>{{data.entityName}}</td>
                <td>{{data.key2}}</td>
                <td>{{data.createTime | date:"yyyy-MM-dd HH:mm:ss"}}</td>
                <td>
                    <span *ngIf="data.status == 0">审批通过</span>
                    <span *ngIf="data.status == 1">审批驳回</span>
                    <span *ngIf="data.status == 2">新增用户待审批</span>
                    <span *ngIf="data.status == 3">修改用户待审批</span>
                    <span *ngIf="data.status == 4">注销用户待审批</span>
                    <span *ngIf="data.status == 5">提交人主动撤回，进行重新提交或者删除当前提交</span>
                    <span *ngIf="data.status == 6">兼职待审批</span>
                    <span *ngIf="data.status == 7">撤销兼职待审批</span>
                    <span *ngIf="data.status == 8">改变组织待审批</span>
                    <span *ngIf="data.status == 9">改变组织退回</span>
                    <span *ngIf="data.status == 10">授予角色待审批</span>
                    <span *ngIf="data.status == 11">授予用户待审批</span>
                    <span *ngIf="data.status == 12">撤销角色待审批</span>
                    <span *ngIf="data.status == 13">撤销用户待审批</span>
                    <span *ngIf="data.status == 14">绑定组织待审批</span>
                    <span *ngIf="data.status == 15">冻结用户待审批</span>
                    <span *ngIf="data.status == 16">删除绑定组织待审批</span>
                    <span *ngIf="data.status == 17">恢复用户待审批</span>
                    <span *ngIf="data.status == 18">初始化密码待审批</span>
                    <span *ngIf="data.status == 19">复制用户待审批</span>
                    <span *ngIf="data.status == 20">置为临时角色待审批</span>
                    <span *ngIf="data.status == 21">置为永久角色待审批</span>
                </td>
                <td>{{data.key5}}</td>
                <td>{{data.key6}}</td>
            </tr>
            </tbody>
        </nz-table>
    </nz-tab>
    <nz-tab nzTitle="已审批">
        <nz-table #basicTable [nzData]="areadyList">
            <thead>
            <tr>
                <th>操作用户</th>
                <th>操作内容</th>
                <th>提交时间</th>
                <th>审核状态</th>
                <th>审核人</th>
                <th>审核时间</th>
            </tr>
            </thead>
            <tbody>
            <tr *ngFor="let data of basicTable.data">
                <td>{{data.entityName}}</td>
                <td>{{data.key2}}</td>
                <td>{{data.createTime | date:"yyyy-MM-dd HH:mm:ss"}}</td>
                <td>
                    <span *ngIf="data.status == 0">审批通过</span>
                    <span *ngIf="data.status == 1">审批驳回</span>
                    <span *ngIf="data.status == 2">新增用户待审批</span>
                    <span *ngIf="data.status == 3">修改用户待审批</span>
                    <span *ngIf="data.status == 4">注销用户待审批</span>
                    <span *ngIf="data.status == 5">提交人主动撤回，进行重新提交或者删除当前提交</span>
                    <span *ngIf="data.status == 6">兼职待审批</span>
                    <span *ngIf="data.status == 7">撤销兼职待审批</span>
                    <span *ngIf="data.status == 8">改变组织待审批</span>
                    <span *ngIf="data.status == 9">改变组织退回</span>
                    <span *ngIf="data.status == 10">授予角色待审批</span>
                    <span *ngIf="data.status == 11">授予用户待审批</span>
                    <span *ngIf="data.status == 12">撤销角色待审批</span>
                    <span *ngIf="data.status == 13">撤销用户待审批</span>
                    <span *ngIf="data.status == 14">绑定组织待审批</span>
                    <span *ngIf="data.status == 15">冻结用户待审批</span>
                    <span *ngIf="data.status == 16">删除绑定组织待审批</span>
                    <span *ngIf="data.status == 17">恢复用户待审批</span>
                    <span *ngIf="data.status == 18">初始化密码待审批</span>
                    <span *ngIf="data.status == 19">复制用户待审批</span>
                    <span *ngIf="data.status == 20">置为临时角色待审批</span>
                    <span *ngIf="data.status == 21">置为永久角色待审批</span>
                </td>
                <td>{{data.key5}}</td>
                <td>{{data.key6}}</td>
            </tr>
            </tbody>
        </nz-table>
    </nz-tab>
</nz-tabset>
