Newer
Older
import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import {ChangeApplySurePage} from "../change-apply-sure/change-apply-sure";
/**
* Generated class for the SelectRelayPersonPage page.
*
* See https://ionicframework.com/docs/components/#navigation for more info on
* Ionic pages and navigation.
*/
@IonicPage()
@Component({
selector: 'page-select-relay-person',
templateUrl: 'select-relay-person.html',
})
export class SelectRelayPersonPage {
constructor(public navCtrl: NavController, public navParams: NavParams,
public appService: AppService) {
this.getPerson();
}
getPerson(){
const data = {
date:'2018/10/01',
id:''
};
this.appService.ObserverHttpGetOption('/wisdomgroup/dutyPerson/getPersonListOutOfMine',data)
.subscribe((res)=>{
//替班
selectPerson(item){
this.navCtrl.push('ChangeApplySurePage',{