Browse Source

fixing

master
drfelfel 1 year ago
parent
commit
e5ca854ee1
1 changed files with 37 additions and 31 deletions
  1. +37
    -31
      src/routes/panel/volunteer/table/table.component.ts

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

@ -22,6 +22,9 @@ export class TableComponent implements OnInit {
public uuid = "";
public university = "فعلی"
public sort = 'nationalcode'
public sortDirection = 'asc'
public filters = {
university: ""
}
@ -96,7 +99,9 @@ export class TableComponent implements OnInit {
}
subscribe() {
this.rayconnect.RequestBack({
this.Get(null, 'no')
/*this.rayconnect.RequestBack({
scope: 'kateb',
uniqueID: 'profile',
TokenID: '*',
@ -110,7 +115,7 @@ export class TableComponent implements OnInit {
}
}).then(res => {
if (res['data']['status'] == true) { }
})
})*/
}
addNewUser(data: object) {
@ -146,39 +151,40 @@ export class TableComponent implements OnInit {
if ((x == 'sort') && (e.direction != '')) {
switch (e.active) {
case 'name':
Query['sort'] = "information.firstname"
break;
case 'nationalcode':
Query['sort'] = "information.nationalcode"
break;
case 'lastname':
Query['sort'] = "information.lastname"
break;
case 'fathername':
Query['sort'] = "information.fathername"
case 'major':
Query['sort'] = "educationalInformation.major"
break;
case 'grade':
Query['sort'] = "educationalInformation.grade"
break;
case 'step':
Query['sort'] = "step"
break;
case 'done':
Query['sort'] = "done"
break;
default:
break;
}
Query['sortDirection'] = e.direction
}
switch (e.active) {
case 'name':
Query['sort'] = "information.firstname"
break;
case 'nationalcode':
Query['sort'] = "information.nationalcode"
break;
case 'lastname':
Query['sort'] = "information.lastname"
break;
case 'fathername':
Query['sort'] = "information.fathername"
case 'major':
Query['sort'] = "educationalInformation.major"
break;
case 'grade':
Query['sort'] = "educationalInformation.grade"
break;
case 'step':
Query['sort'] = "step"
break;
case 'done':
Query['sort'] = "done"
break;
default:
break;
}
Query['sortDirection'] = e.direction

Loading…
Cancel
Save