Commit 878d2947 by sunchao

职位bug

parent daeff3d6
......@@ -18,5 +18,9 @@
<footer class="fixed" (click)="next()" *ngIf="!approvalIdentity">
我自愿签订经纪人合同书
</footer>
<div id="page" *ngIf="approvalIdentity">
<div (click)="goBack()">上一页</div>
<div (click)="viewNext()">下一页</div>
</div>
</div>
<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 {
this.signaturePad.clear();
}
}
viewNext(){
this.router.navigate(['/contract'],{ queryParams: { hiringBasicInfoId:this.hiringBasicInfoId,approvalIdentity:this.approvalIdentity} });
}
goBack(){
history.go(-1)
}
}
......@@ -40,13 +40,11 @@ export class WorkExperienceComponent implements OnInit {
}
next(){
if(this.experienceList.length ==0){
if(this.addExperience.workingCompany || this.addExperience.position || this.addExperience.workingStart || this.addExperience.workingEnd){
this.experienceList.push(this.addExperience)
}else{
this.experienceList = [];
}
}
const experienceParam = {
workingExperienceList:this.experienceList,
hiringBasicInfoId:this.hiringBasicInfoId
......@@ -119,7 +117,16 @@ export class WorkExperienceComponent implements OnInit {
queryWholeInfo(hiringBasicInfoId){
this.myService.queryWholeInfo({hiringBasicInfoId:hiringBasicInfoId}).subscribe((res)=>{
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