Newer
Older
import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import {ChangeApplySurePage} from "../change-apply-sure/change-apply-sure";
import { Storage } from "@ionic/storage";
import { DatePipe } from "@angular/common";
@IonicPage()
@Component({
selector: 'page-select-relay-person',
templateUrl: 'select-relay-person.html',
})
export class SelectRelayPersonPage {
public appService: AppService,public storage: Storage,private datepipe: DatePipe) {
this.scheduleId = this.navParams.get('scheduleId');
this.date = this.datepipe.transform( this.navParams.get('date'),'yyyy/MM/dd');
this.storage.get("user").then((res)=>{
this.gender = res.userDetail.user.gender;
this.getPerson();
});
id:''
};
this.appService.ObserverHttpGetOption('/wisdomgroup/dutyPerson/getPersonListOutOfMine',data)
.subscribe((res)=>{
//替班
selectPerson(item){
this.navCtrl.push('ChangeApplySurePage',{