fix
This commit is contained in:
@@ -37,7 +37,7 @@ export class MermsDashPage implements OnInit {
|
|||||||
};
|
};
|
||||||
|
|
||||||
cardData: any;
|
cardData: any;
|
||||||
pendingEncounterData:any;
|
pendingEncounterData: any;
|
||||||
|
|
||||||
getDashData() {
|
getDashData() {
|
||||||
console.log('MermsServiceProviderService::getDashData() ######## @@@@ ########');
|
console.log('MermsServiceProviderService::getDashData() ######## @@@@ ########');
|
||||||
@@ -77,21 +77,35 @@ export class MermsDashPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
goSettings() {
|
goSettings() {
|
||||||
this.router.navigateByUrl('/merms-settings')
|
this.router.navigateByUrl('/merms-settings');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
goPatient() {
|
goPatient(selPatData: any) {
|
||||||
this.router.navigateByUrl('/merms-patient')
|
// Set our navigation extras object
|
||||||
|
// that passes on our global query params and fragment
|
||||||
|
console.log(selPatData);
|
||||||
|
let navigationExtras2: NavigationExtras = {
|
||||||
|
queryParams: selPatData,
|
||||||
|
state: [0]
|
||||||
|
};
|
||||||
|
|
||||||
|
let navigationExtras: NavigationExtras = {
|
||||||
|
queryParams: {
|
||||||
|
special: JSON.stringify(selPatData)
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
this.router.navigateByUrl('/merms-patient', navigationExtras);
|
||||||
}
|
}
|
||||||
goHome() {
|
goHome() {
|
||||||
|
|
||||||
}
|
}
|
||||||
goCalendar() {
|
goCalendar() {
|
||||||
this.router.navigateByUrl('/merms-calendar')
|
this.router.navigateByUrl('/merms-calendar');
|
||||||
}
|
}
|
||||||
goWallet() {
|
goWallet() {
|
||||||
this.router.navigateByUrl('/merms-wallet')
|
this.router.navigateByUrl('/merms-wallet');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { Router, NavigationExtras } from '@angular/router'
|
import { Router, NavigationExtras, ActivatedRoute } from '@angular/router'
|
||||||
import {
|
import {
|
||||||
NavController,
|
NavController,
|
||||||
AlertController,
|
AlertController,
|
||||||
@@ -13,15 +13,31 @@ import {
|
|||||||
styleUrls: ['./merms-patient.page.scss'],
|
styleUrls: ['./merms-patient.page.scss'],
|
||||||
})
|
})
|
||||||
export class MermsPatientPage implements OnInit {
|
export class MermsPatientPage implements OnInit {
|
||||||
patient_name:string ="Selected Patient";
|
patient_name: string = "Selected Patient";
|
||||||
constructor(public navCtrl: NavController,private router: Router) { }
|
patientData: any;
|
||||||
|
constructor(public navCtrl: NavController, private router: Router, private route: ActivatedRoute) {
|
||||||
|
console.log('-----------------------------xxxx-----------------------------');
|
||||||
|
console.log(this.route.data);
|
||||||
|
|
||||||
|
this.route.queryParams.subscribe(params => {
|
||||||
|
console.log(params);
|
||||||
|
this.patient_name = params.firstname + ' ' + params.lastname;
|
||||||
|
if (params && params.special) {
|
||||||
|
this.patientData = JSON.parse(params.special);
|
||||||
|
console.log(this.patientData);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
}
|
console.log('-----------------------------yyyyy-----------------------------');
|
||||||
goBack(){
|
|
||||||
|
|
||||||
}
|
}
|
||||||
goHome(){
|
goBack() {
|
||||||
|
this.navCtrl.pop()
|
||||||
|
}
|
||||||
|
goHome() {
|
||||||
this.router.navigateByUrl('/merms-dash')
|
this.router.navigateByUrl('/merms-dash')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user