Commit 683b1504 by sunchao

公司制度提出来单独的菜单&我的团队开放给所有经纪人

parent 20fdddaf
<div class="fileUploadLists">
<div class="nav">
<div class="nav" *ngIf="!fileUploadType">
<ul class="left">
<li *ngFor="let categoryItem of categoryList" (click)="switchCategory(categoryItem.id)"
[ngClass]="{'actived':selectedCategoryId===categoryItem.id}">
......
......@@ -14,14 +14,18 @@ export class FileUploadComponent implements OnInit {
type: string;
categoryList: Array<any>;
selectedCategoryId: number;
fileUploadType:any;
constructor(private myService: MyService, private activatedRoute: ActivatedRoute) {
}
ngOnInit() {
this.type = this.activatedRoute.snapshot.data[0]['type'];
this.fileUploadType = this.activatedRoute.snapshot.queryParams.fileUploadType ? this.activatedRoute.snapshot.queryParams.fileUploadType : null;
this.dropOptionsQuery();
if (this.type === 'fileUpload') {
this.fileUpload(3, 0, 19, 'yd_download_file_type', this.selectedCategoryId);
this.fileUpload(3, 0, 19, 'yd_download_file_type', this.selectedCategoryId);
} else if (this.type === 'training') {
this.fileUpload(3, 0, 23, 'yd_trainning_file_type', this.selectedCategoryId);
}
......@@ -44,7 +48,11 @@ export class FileUploadComponent implements OnInit {
if (res['success']) {
this.categoryList = res['data']['dropMasterInfoList'][0]['dropOptionsInfoList'];
if (this.categoryList.length > 0) {
this.selectedCategoryId = this.categoryList[0].id;
if(this.fileUploadType){
this.selectedCategoryId = 81;
}else{
this.selectedCategoryId = this.categoryList[0].id;
}
this.switchCategory(this.selectedCategoryId)
}
} else {
......
......@@ -99,7 +99,19 @@ export class MyCenterHomeComponent implements OnInit, AfterViewInit {
{ no: 18, subtitle: '招募海报', icon: 'poster_r', path: '', routerLink: '' },
{ no: '', subtitle: '', icon: 'default', path: '', routerLink: '' }
],
isShow: this.isShow
// isShow: this.isShow
isShow: true
},
{
title: '我的展业',
content: [
{ no: 12, subtitle: '我的保单', icon: 'policy', path: '', routerLink: '' },
{ no: 20, subtitle: '我的客户', icon: 'customer', path: '', routerLink: '' },
// { no: 14, subtitle: '我的佣金', icon: 'commission', path: '', routerLink: '' },
{ no: 19, subtitle: '薪资单', icon: 'salary', path: '', routerLink: 'salary' },
{ no: 21, subtitle: '公司制度', icon: 'management', path: '', routerLink: '' }
],
isShow: true
},
{
title: '教育培训',
......@@ -111,16 +123,6 @@ export class MyCenterHomeComponent implements OnInit, AfterViewInit {
],
isShow: true
}, {
title: '我的展业',
content: [
{ no: 12, subtitle: '我的保单', icon: 'policy', path: '', routerLink: '' },
{ no: 20, subtitle: '我的客户', icon: 'customer', path: '', routerLink: '' },
// { no: 14, subtitle: '我的佣金', icon: 'commission', path: '', routerLink: '' },
{ no: 19, subtitle: '薪资单', icon: 'salary', path: '', routerLink: 'salary' },
{ no: '', subtitle: '', icon: 'default', path: '', routerLink: '' }
],
isShow: true
}
];
}
......@@ -149,7 +151,9 @@ export class MyCenterHomeComponent implements OnInit, AfterViewInit {
return;
} else if (item.no === 18) {
this.router.navigate(['/material'], { queryParams: { recruit: 'recruit' } });
} else {
}else if(item.no === 21){
this.router.navigate(['/fileUpload'], { queryParams: { fileUploadType: 'management' } });
}else {
this.isNeedAlert = true;
this.dialogInfo = {
title: null,
......
......@@ -77,7 +77,15 @@ export class TeamPanelComponent implements OnInit {
}
this.myService.subordinateSystemMemberQuery(param).subscribe((res) => {
if (res['success']) {
this.statisticInfo = res['data']['statisticInfo']
this.statisticInfo = res['data']['statisticInfo'];
}
if(!this.statisticInfo){
this.statisticInfo = {
fyp:0,
fyc:0,
count:0,
completionRate:0
}
}
})
}
......
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