Commit 878d2947 by sunchao

职位bug

parent daeff3d6
...@@ -18,5 +18,9 @@ ...@@ -18,5 +18,9 @@
<footer class="fixed" (click)="next()" *ngIf="!approvalIdentity"> <footer class="fixed" (click)="next()" *ngIf="!approvalIdentity">
我自愿签订经纪人合同书 我自愿签订经纪人合同书
</footer> </footer>
<div id="page" *ngIf="approvalIdentity">
<div (click)="goBack()">上一页</div>
<div (click)="viewNext()">下一页</div>
</div>
</div> </div>
<ydlife-alert *ngIf="isNeedAlert" [dialogInfo]="dialogInfo" (popInfo)="getPopInfo()"></ydlife-alert> <ydlife-alert *ngIf="isNeedAlert" [dialogInfo]="dialogInfo" (popInfo)="getPopInfo()"></ydlife-alert>
\ No newline at end of file
...@@ -126,4 +126,12 @@ export class SignatureComponent implements OnInit { ...@@ -126,4 +126,12 @@ export class SignatureComponent implements OnInit {
this.signaturePad.clear(); this.signaturePad.clear();
} }
} }
viewNext(){
this.router.navigate(['/contract'],{ queryParams: { hiringBasicInfoId:this.hiringBasicInfoId,approvalIdentity:this.approvalIdentity} });
}
goBack(){
history.go(-1)
}
} }
...@@ -40,12 +40,10 @@ export class WorkExperienceComponent implements OnInit { ...@@ -40,12 +40,10 @@ export class WorkExperienceComponent implements OnInit {
} }
next(){ next(){
if(this.experienceList.length ==0){ if(this.addExperience.workingCompany || this.addExperience.position || this.addExperience.workingStart || this.addExperience.workingEnd){
if(this.addExperience.workingCompany || this.addExperience.position || this.addExperience.workingStart || this.addExperience.workingEnd){ this.experienceList.push(this.addExperience)
this.experienceList.push(this.addExperience) }else{
}else{ this.experienceList = [];
this.experienceList = [];
}
} }
const experienceParam = { const experienceParam = {
workingExperienceList:this.experienceList, workingExperienceList:this.experienceList,
...@@ -119,7 +117,16 @@ export class WorkExperienceComponent implements OnInit { ...@@ -119,7 +117,16 @@ export class WorkExperienceComponent implements OnInit {
queryWholeInfo(hiringBasicInfoId){ queryWholeInfo(hiringBasicInfoId){
this.myService.queryWholeInfo({hiringBasicInfoId:hiringBasicInfoId}).subscribe((res)=>{ this.myService.queryWholeInfo({hiringBasicInfoId:hiringBasicInfoId}).subscribe((res)=>{
if(res['success']){ if(res['success']){
this.experienceList = res['data']['hiringWorkingExperienceList']; const experienceList = res['data']['hiringWorkingExperienceList'];
for(let i=0;i<experienceList.length;i++){
this.experienceList.push({workingCompany:experienceList[i].workingCompany,
position:experienceList[i].position,
workingStart:experienceList[i].workingStart,
workingEnd:experienceList[i].workingEnd
})
}
} }
}) })
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment