Commit 49ca2275 by zeyang

1.解决权限为null时触发的BUG

parent fda6107d
...@@ -55,8 +55,8 @@ export class MoreFeaturesComponent implements OnInit, OnDestroy { ...@@ -55,8 +55,8 @@ export class MoreFeaturesComponent implements OnInit, OnDestroy {
queryCanSee() { queryCanSee() {
this.myService.queryCanSee({ practitionerId: this.lifeCustomerInfo ? this.lifeCustomerInfo['practitionerId'] : null, }).subscribe((res) => { this.myService.queryCanSee({ practitionerId: this.lifeCustomerInfo ? this.lifeCustomerInfo['practitionerId'] : null, }).subscribe((res) => {
if (res['success']) { if (res['success']) {
this.canSeeSchool = res['data']['canSeeYdCollege']; this.canSeeSchool = res['data']['canSeeYdCollege'] || '';
this.cffpRoleCode = res['data']['cffpRoleCode']; this.cffpRoleCode = res['data']['cffpRoleCode'] || '';
} }
this.getMenu() this.getMenu()
}) })
......
...@@ -149,7 +149,7 @@ export class MyCenterHomeComponent implements OnInit { ...@@ -149,7 +149,7 @@ export class MyCenterHomeComponent implements OnInit {
queryCanSee() { queryCanSee() {
this.myService.queryCanSee({ practitionerId: this.lifeCustomerInfo ? this.lifeCustomerInfo['practitionerId'] : null, }).subscribe((res) => { this.myService.queryCanSee({ practitionerId: this.lifeCustomerInfo ? this.lifeCustomerInfo['practitionerId'] : null, }).subscribe((res) => {
if (res['success']) { if (res['success']) {
this.canSeeSchool = res['data']['canSeeYdCollege']; this.canSeeSchool = res['data']['canSeeYdCollege'] || '';
if (this.canSeeSchool.includes('insuranceABC') || this.canSeeSchool.includes('preJobTraining') || this.canSeeSchool.includes('newTraining') || this.canSeeSchool.includes('promotionTraining') if (this.canSeeSchool.includes('insuranceABC') || this.canSeeSchool.includes('preJobTraining') || this.canSeeSchool.includes('newTraining') || this.canSeeSchool.includes('promotionTraining')
|| this.canSeeSchool.includes('productTraining') || this.canSeeSchool.includes('myTraining')) { || this.canSeeSchool.includes('productTraining') || this.canSeeSchool.includes('myTraining')) {
this.featureLists.push({ key: '06', name: '银盾学院', icon: 'ydCollege', link: '/ydCollege', isOpen: true },); this.featureLists.push({ key: '06', name: '银盾学院', icon: 'ydCollege', link: '/ydCollege', isOpen: true },);
......
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