[DEV] update some sort in group and season
This commit is contained in:
parent
4fe781da00
commit
ecbc1dc083
@ -10,8 +10,8 @@
|
||||
</div>
|
||||
<div class="fill-all colomn_mutiple" *ngIf="saisons.length != 0">
|
||||
<div class="sub-title">Saisons:</div>
|
||||
<div *ngFor="let data of saisons" class="item-list" (click)="onSelectSaison($event, data)" (auxclick)="onSelectSaison($event, data)">
|
||||
<app-element-saison [id_saison]="data"></app-element-saison>
|
||||
<div *ngFor="let data of saisons" class="item-list" (click)="onSelectSaison($event, data.id)" (auxclick)="onSelectSaison($event, data.id)">
|
||||
<app-element-saison [id_saison]="data.id"></app-element-saison>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
@ -67,7 +67,7 @@ export class GroupComponent implements OnInit {
|
||||
self.covers = [];
|
||||
});
|
||||
console.log("get parameter id: " + this.id_group);
|
||||
this.groupService.getSaison(this.id_group)
|
||||
this.groupService.getSaison(this.id_group, ["id", "name"])
|
||||
.then(function(response) {
|
||||
self.saisons_error = "";
|
||||
self.saisons = response
|
||||
|
@ -9,14 +9,14 @@
|
||||
{{description}}
|
||||
</div>
|
||||
<div class="fill-all colomn_mutiple">
|
||||
<div *ngFor="let data of groups" class="item" (click)="onSelectGroup($event, data)" (auxclick)="onSelectGroup($event, data)">
|
||||
<app-element-group [id_type]="type_id" [id_group]="data"></app-element-group>
|
||||
<div *ngFor="let data of groups" class="item" (click)="onSelectGroup($event, data.id)" (auxclick)="onSelectGroup($event, data.id)">
|
||||
<app-element-group [id_type]="type_id" [id_group]="data.id"></app-element-group>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div class="fill-all colomn_mutiple">
|
||||
<div *ngFor="let data of videos" class="item item-video" (click)="onSelectVideo($event, data)" (auxclick)="onSelectVideo($event, data)">
|
||||
<app-element-video [id_video]="data"></app-element-video>
|
||||
<app-element-video [id_video]="data.id"></app-element-video>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
@ -58,7 +58,7 @@ export class TypeComponent implements OnInit {
|
||||
self.name = "???";
|
||||
self.description = "";
|
||||
});
|
||||
this.typeService.getSubGroup(this.type_id)
|
||||
this.typeService.getSubGroup(this.type_id, ["id", "name"])
|
||||
.then(function(response) {
|
||||
self.groups_error = "";
|
||||
self.groups = response
|
||||
@ -66,7 +66,7 @@ export class TypeComponent implements OnInit {
|
||||
self.groups_error = "Wrong e-mail/login or password";
|
||||
self.groups = []
|
||||
});
|
||||
this.typeService.getSubVideo(this.type_id)
|
||||
this.typeService.getSubVideo(this.type_id, ["id", "name"])
|
||||
.then(function(response) {
|
||||
self.videos_error = "";
|
||||
self.videos = response
|
||||
|
@ -36,7 +36,7 @@ export class DataInterface {
|
||||
}
|
||||
|
||||
gets_where(_select, _filter=undefined, _orderBy=undefined){
|
||||
console.log("[I] gets " + this.name);
|
||||
//console.log("[I] gets_where " + this.name + " select " + _select);
|
||||
let tmp_list = this.get_sub_list(this.bdd, _select);
|
||||
tmp_list = this.order_by(tmp_list, _orderBy);
|
||||
return this.filter_object_values(tmp_list, _filter);
|
||||
@ -219,6 +219,7 @@ export class DataInterface {
|
||||
}
|
||||
out.push(_values[iii]);
|
||||
}
|
||||
//console.log("order in list by : " + value_order);
|
||||
//out = sorted(out, key=lambda x{ x[value_order])
|
||||
out.sort(function (a, b) {
|
||||
//const name1 = t1.name.toLowerCase();
|
||||
|
Loading…
x
Reference in New Issue
Block a user