fix
parent
f733add51a
commit
40f6f7365f
|
@ -18,13 +18,17 @@
|
|||
<div class="selector" *ngIf="this.uid == 'tvu'">
|
||||
<mat-form-field appearance="outline">
|
||||
<mat-label>انتخاب مرکز / دانشگاه</mat-label>
|
||||
<mat-select [(ngModel)]="namespace" multiple (selectionChange)="subscribe()" [disabled]="exporting">
|
||||
<mat-select
|
||||
[(ngModel)]="namespace"
|
||||
multiple
|
||||
(selectionChange)="subscribe()"
|
||||
[disabled]="exporting"
|
||||
>
|
||||
<mat-optgroup
|
||||
*ngFor="let group of univeristygroups"
|
||||
[label]="group.name"
|
||||
[disabled]="group.disabled"
|
||||
>
|
||||
|
||||
<mat-option
|
||||
*ngFor="let university of group.universities"
|
||||
[value]="university.value"
|
||||
|
@ -36,15 +40,18 @@
|
|||
</mat-form-field>
|
||||
</div>
|
||||
|
||||
|
||||
<mat-form-field appearance="outline">
|
||||
<mat-label>مقطع</mat-label>
|
||||
<mat-select [(ngModel)]="grade" (selectionChange)="Get($event)" [disabled]="exporting">
|
||||
<mat-select
|
||||
[(ngModel)]="grade"
|
||||
(selectionChange)="Get($event)"
|
||||
[disabled]="exporting"
|
||||
>
|
||||
<mat-option value="کاردانی"> کاردانی </mat-option>
|
||||
<mat-option value="کارشناسی"> کارشناسی </mat-option>
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
<mat-form-field appearance="outline" >
|
||||
<mat-form-field appearance="outline">
|
||||
<mat-label>جستجو بر اساس فیلد</mat-label>
|
||||
<mat-select
|
||||
[(ngModel)]="searchBy"
|
||||
|
@ -63,7 +70,7 @@
|
|||
<mat-form-field appearance="outline">
|
||||
<mat-label>جستجو داوطلب</mat-label>
|
||||
<input
|
||||
[disabled]="exporting"
|
||||
[disabled]="exporting"
|
||||
matInput
|
||||
[(ngModel)]="search"
|
||||
type="text"
|
||||
|
@ -81,10 +88,15 @@
|
|||
</p>
|
||||
<div class="flex-space"></div>
|
||||
|
||||
<button mat-raised-button color="green" (click)="exportExcel()" [disabled]="exporting">
|
||||
<button
|
||||
mat-raised-button
|
||||
color="green"
|
||||
(click)="exportExcel()"
|
||||
[disabled]="exporting"
|
||||
>
|
||||
<mat-icon>cloud_download</mat-icon>
|
||||
<span>دریافت خروجی اکسل</span>
|
||||
</button>
|
||||
</button>
|
||||
</mat-expansion-panel>
|
||||
<mat-progress-bar
|
||||
*ngIf="loading == true"
|
||||
|
@ -92,7 +104,12 @@
|
|||
></mat-progress-bar>
|
||||
<ng-container *ngIf="data != null">
|
||||
<mat-divider></mat-divider>
|
||||
<table matSort mat-table [dataSource]="data" (matSortChange)="Get($event, 'sort')">
|
||||
<table
|
||||
matSort
|
||||
mat-table
|
||||
[dataSource]="data"
|
||||
(matSortChange)="Get($event, 'sort')"
|
||||
>
|
||||
<ng-container matColumnDef="position">
|
||||
<th mat-header-cell *matHeaderCellDef mat-sort-header>ردیف</th>
|
||||
<td mat-cell *matCellDef="let element; let i = index">
|
||||
|
@ -148,21 +165,24 @@
|
|||
</ng-container>
|
||||
|
||||
<ng-container matColumnDef="waiting">
|
||||
<th mat-header-cell *matHeaderCellDef >وضعیت داوطلب</th>
|
||||
<th mat-header-cell *matHeaderCellDef>وضعیت داوطلب</th>
|
||||
<td mat-cell *matCellDef="let element">
|
||||
|
||||
<b style="color: rgb(151, 9, 9);" *ngIf="element.waiting == 'reject'">رد شده</b>
|
||||
<b style="color: rgb(1, 87, 27);" *ngIf="element.waiting == 'resolve'">تایید شده</b>
|
||||
<b style="color: rgb(212, 176, 14);" *ngIf="element.waiting == 'wait'">در انتظار تایید</b>
|
||||
|
||||
<b style="color: rgb(151, 9, 9)" *ngIf="element.waiting == 'reject'"
|
||||
>رد شده</b
|
||||
>
|
||||
<b style="color: rgb(1, 87, 27)" *ngIf="element.waiting == 'resolve'"
|
||||
>تایید شده</b
|
||||
>
|
||||
<b style="color: rgb(212, 176, 14)" *ngIf="element.waiting == 'wait'"
|
||||
>در انتظار تایید</b
|
||||
>
|
||||
</td>
|
||||
</ng-container>
|
||||
|
||||
<ng-container matColumnDef="grade">
|
||||
<th mat-header-cell *matHeaderCellDef mat-sort-header="grade">مقطع</th>
|
||||
<td mat-cell *matCellDef="let element">
|
||||
|
||||
<b style="color: rgb(10, 8, 105);">
|
||||
<b style="color: rgb(10, 8, 105)">
|
||||
{{ element.grade }}
|
||||
</b>
|
||||
</td>
|
||||
|
@ -188,6 +208,10 @@
|
|||
>
|
||||
<mat-icon>arrow_back</mat-icon>
|
||||
</a>
|
||||
|
||||
<button mat-icon-button (click)="verify()">
|
||||
<mat-icon>verified</mat-icon>
|
||||
</button>
|
||||
</td>
|
||||
</ng-container>
|
||||
<tr mat-header-row *matHeaderRowDef="columns"></tr>
|
||||
|
|
|
@ -142,6 +142,28 @@ export class TableComponent implements OnInit {
|
|||
this.data.data.unshift(data);
|
||||
}
|
||||
|
||||
async verify(uid) {
|
||||
const okBtn = confirm("آیا مراجعه حضوری کاربر را تایید میکنید ؟");
|
||||
if (okBtn == true) {
|
||||
|
||||
|
||||
await this.rayconnect.RequestBack({
|
||||
scope: 'kateb',
|
||||
uniqueID: 'profile',
|
||||
TokenID: '*',
|
||||
address: 'volunteers/user/accept',
|
||||
info: {
|
||||
method: 'ACCEPT',
|
||||
data: {
|
||||
uid
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
exportExcel() {
|
||||
|
||||
|
|
Loading…
Reference in New Issue