Browse Source

fx

master
drfelfel 1 year ago
parent
commit
851daaeb6d
1 changed files with 9 additions and 3 deletions
  1. +9
    -3
      src/routes/panel/volunteer/table/table.component.ts

+ 9
- 3
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[] = ['firstname', 'lastname', 'fathername', 'major', 'nationalcode', 'militaryserviceStatus', 'step', 'done', 'options'];
public data: MatTableDataSource<object> = new MatTableDataSource<object>();
public loading: boolean = false;
public search: string = '';
@ -45,7 +45,13 @@ export class TableComponent implements OnInit {
user.step = list[i]['step']
user.options = true
user.uid = list[i]['uid']
user.done = moment(user.done).format("jYYYY/jMM/jDD")
if (user.done) {
console.log(user.done)
user.done = moment(user.done).format("jYYYY/jMM/jDD")
} else {
user.done = null
}
user.major = list[i]["educationalInformation"]["major"]
@ -76,7 +82,7 @@ export class TableComponent implements OnInit {
info: {
method: "GET",
data: {
page: (this.page ),
page: (this.page),
limit: this.limit
}
}

Loading…
Cancel
Save