role-access.component.html 2.34 KB
<mat-expansion-panel>
  <mat-expansion-panel-header [expandedHeight]="expandedHeight" [collapsedHeight]="collapsedHeight">
    <mat-panel-title>Select Role</mat-panel-title>
  </mat-expansion-panel-header>
  <ng-template matExpansionPanelContent>
  </ng-template>
  <mat-form-field>
    <mat-select placeholder="Role">
      <mat-option>--</mat-option>
      <mat-option value="SUPERADMIN">Super Admin</mat-option>
      <mat-option value="ADMIN">Admin</mat-option>
      <mat-option value="MARKETING">Marketing</mat-option>
      <mat-option value="DEVELOPER">Developer</mat-option>
      <mat-option value="QA">QA</mat-option>
      <mat-option value="CS">CS</mat-option>
    </mat-select>
  </mat-form-field>
  <button mat-raised-button color="primary">Search</button>
</mat-expansion-panel>
<br>
<div fxLayout="row" fxLayoutWrap="wrap">
  <div fxFlex="100" fxFlex.gt-sm="100" fxFlex.sm="100">
    <div class="mat-box-shadow">
      <ngx-datatable class="material bg-white" [columnMode]="'force'" [headerHeight]="50" [footerHeight]="50"
        [rowHeight]="50" [limit]="10" [rows]="operatorDataSource" [columns]="columns">

        <ngx-datatable-column name="Role Name">
          <ng-template let-row="row" ngx-datatable-cell-template>
            {{ row?.userName }}
          </ng-template>
        </ngx-datatable-column>

        <ngx-datatable-column name="Menu">
          <ng-template let-row="row" ngx-datatable-cell-template>
            {{ row?.createTime }}
          </ng-template>
        </ngx-datatable-column>

        <ngx-datatable-column name="Child Menu">
          <ng-template let-row="row" ngx-datatable-cell-template>
            {{ row?.updateTime}}
          </ng-template>
        </ngx-datatable-column>

        <ngx-datatable-column name="Status">
          <ng-template let-row="row" ngx-datatable-cell-template>
            {{ row?.lastLoginTime}}
          </ng-template>
        </ngx-datatable-column>

        <ngx-datatable-column name="Operation">
          <ng-template let-row="row" ngx-datatable-cell-template>
            {{ row?.lastLoginIp}}
          </ng-template>
        </ngx-datatable-column>

        <ngx-datatable-column name="Action">
          <ng-template let-row="row" ngx-datatable-cell-template>
            {{ row?.status }}
          </ng-template>
        </ngx-datatable-column>

      </ngx-datatable>
    </div>
  </div>
</div>