History page
This commit is contained in:
@@ -10,5 +10,37 @@
|
|||||||
</ion-header>
|
</ion-header>
|
||||||
|
|
||||||
<ion-content>
|
<ion-content>
|
||||||
|
<div class="boxed_contents">
|
||||||
|
<ion-grid>
|
||||||
|
<ion-row>
|
||||||
|
<ion-col>
|
||||||
|
Select Report
|
||||||
|
</ion-col>
|
||||||
|
</ion-row>
|
||||||
|
|
||||||
|
<ion-row>
|
||||||
|
<ion-col>
|
||||||
|
<ion-select label="Select Report"
|
||||||
|
[(ngModel)]="slected_report_type"
|
||||||
|
label-placement="stacked">
|
||||||
|
<ion-select-option *ngFor="let item of historyTypes;" value="{{item.id}}">{{item.ty}}</ion-select-option>
|
||||||
|
</ion-select>
|
||||||
|
</ion-col>
|
||||||
|
<ion-col style="max-width: 150px;">
|
||||||
|
<ion-button
|
||||||
|
(click)="refreshReport()"
|
||||||
|
expand="block"
|
||||||
|
size="small">
|
||||||
|
Refresh
|
||||||
|
</ion-button>
|
||||||
|
</ion-col>
|
||||||
|
</ion-row>
|
||||||
|
</ion-grid>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</ion-content>
|
</ion-content>
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import {Component, OnInit, ViewChild} from '@angular/core';
|
||||||
import {NavController} from "@ionic/angular";
|
import {LoadingController, NavController} from "@ionic/angular";
|
||||||
|
import {SessionDataProviderService} from "../../store/session-data-provider.service";
|
||||||
|
import {WrenchService} from "../../services/wrench.service";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-history',
|
selector: 'app-history',
|
||||||
@@ -7,11 +9,21 @@ import {NavController} from "@ionic/angular";
|
|||||||
styleUrls: ['./history.page.scss'],
|
styleUrls: ['./history.page.scss'],
|
||||||
})
|
})
|
||||||
export class HistoryPage implements OnInit {
|
export class HistoryPage implements OnInit {
|
||||||
|
@ViewChild('slected_report_type') slected_report_type;
|
||||||
|
|
||||||
|
historyTypes:any=[];
|
||||||
constructor(
|
constructor(
|
||||||
private navctr: NavController
|
private navctr: NavController,
|
||||||
) { }
|
public sessionDataProviderService:SessionDataProviderService,
|
||||||
|
private loadingCtrl: LoadingController,
|
||||||
|
private wrenchService: WrenchService,
|
||||||
|
) {
|
||||||
|
this.historyTypes= this.sessionDataProviderService.history_types;
|
||||||
|
}
|
||||||
|
|
||||||
|
refreshReport(){
|
||||||
|
|
||||||
|
}
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -145,11 +145,11 @@
|
|||||||
<ion-icon name="chevron-forward-outline" color="medium"></ion-icon>
|
<ion-icon name="chevron-forward-outline" color="medium"></ion-icon>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
|
|
||||||
<!-- <ion-item lines="none" (click)="onLanguage()">
|
<ion-item lines="none" (click)="onMyJobs()">
|
||||||
<ion-icon name="language-outline" color="dark"></ion-icon>
|
<ion-icon name="language-outline" color="dark"></ion-icon>
|
||||||
<ion-label>Language</ion-label>
|
<ion-label>My Jobs</ion-label>
|
||||||
<ion-icon name="chevron-forward-outline" color="medium"></ion-icon>
|
<ion-icon name="chevron-forward-outline" color="medium"></ion-icon>
|
||||||
</ion-item> -->
|
</ion-item>
|
||||||
|
|
||||||
|
|
||||||
<!-- <ion-item lines="none">
|
<!-- <ion-item lines="none">
|
||||||
|
|||||||
@@ -86,6 +86,10 @@ export class ProfilePage implements OnInit {
|
|||||||
onRewards(){
|
onRewards(){
|
||||||
this.router.navigate(['mycoupons']);
|
this.router.navigate(['mycoupons']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onMyJobs(){
|
||||||
|
this.router.navigate(['jobmanager']);
|
||||||
|
}
|
||||||
onLanguage() {
|
onLanguage() {
|
||||||
this.router.navigate(['language']);
|
this.router.navigate(['language']);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,6 +81,7 @@ export class SessionDataProviderService {
|
|||||||
session_image_server: string='';
|
session_image_server: string='';
|
||||||
family_uid:string='';
|
family_uid:string='';
|
||||||
family_types:any=[];
|
family_types:any=[];
|
||||||
|
history_types:any=[];
|
||||||
|
|
||||||
session_contructed:boolean = false;
|
session_contructed:boolean = false;
|
||||||
|
|
||||||
@@ -159,6 +160,7 @@ export class SessionDataProviderService {
|
|||||||
this.session_image_server = loginResult.session_image_server;
|
this.session_image_server = loginResult.session_image_server;
|
||||||
this.refresh = loginResult.refresh;
|
this.refresh = loginResult.refresh;
|
||||||
this.family_types= loginResult.family_types;
|
this.family_types= loginResult.family_types;
|
||||||
|
this.history_types =loginResult.history_types;
|
||||||
|
|
||||||
//this.pushNotificationProvider.tagUser(this.session);
|
//this.pushNotificationProvider.tagUser(this.session);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user