Browse Source

fx

master
drfelfel 1 year ago
parent
commit
d989ce0d07
2 changed files with 9 additions and 18 deletions
  1. +8
    -17
      src/routes/panel/volunteer/table/table.component.html
  2. +1
    -1
      src/routes/panel/volunteer/table/table.component.ts

+ 8
- 17
src/routes/panel/volunteer/table/table.component.html View File

@ -55,6 +55,12 @@
<ng-container *ngIf="data != null">
<mat-divider></mat-divider>
<table matSort mat-table [dataSource]="data">
<ng-container matColumnDef="uid">
<th mat-header-cell *matHeaderCellDef mat-sort-header="uid">
شناسه سیستمی یا تلفن همراه
</th>
<td mat-cell *matCellDef="let element">{{ element.uid }}</td>
</ng-container>
<ng-container matColumnDef="firstname">
<th mat-header-cell *matHeaderCellDef mat-sort-header="name">نام</th>
<td mat-cell *matCellDef="let element">{{ element.firstname }}</td>
@ -83,29 +89,14 @@
</th>
<td mat-cell *matCellDef="let element">{{ element.nationalcode }}</td>
</ng-container>
<ng-container matColumnDef="militaryserviceStatus">
<th
mat-header-cell
*matHeaderCellDef
mat-sort-header="militaryserviceStatus"
>
وضعیت نظام وظیفه
</th>
<td mat-cell *matCellDef="let element">
{{
element.militaryserviceStatus
? element.militaryserviceStatus
: "کاربر هنوز وارد این مرحله نشده است"
}}
</td>
</ng-container>
<ng-container matColumnDef="step">
<th mat-header-cell *matHeaderCellDef mat-sort-header="step">مرحله</th>
<td mat-cell *matCellDef="let element">{{ element.step }}</td>
</ng-container>
<ng-container matColumnDef="done">
<th mat-header-cell *matHeaderCellDef mat-sort-header="step">
<th mat-header-cell *matHeaderCellDef mat-sort-header="done">
تاریخ مراجعه حضوری
</th>
<td mat-cell *matCellDef="let element">

+ 1
- 1
src/routes/panel/volunteer/table/table.component.ts View File

@ -11,7 +11,7 @@ import * as moment from 'jalali-moment'
})
export class TableComponent implements OnInit {
public columns: string[] = ['firstname', 'lastname', 'fathername', 'major', 'nationalcode', 'militaryserviceStatus', 'step', 'done', 'options'];
public columns: string[] = ['uid', 'firstname', 'lastname', 'fathername', 'major', 'nationalcode', 'step', 'done', 'options'];
public data: MatTableDataSource<object> = new MatTableDataSource<object>();
public loading: boolean = false;
public search: string = '';

Loading…
Cancel
Save