diff --git a/src/app/pages/lockscreen/lockscreen.component.html b/src/app/pages/lockscreen/lockscreen.component.html index 186a5ac..58a1ba8 100644 --- a/src/app/pages/lockscreen/lockscreen.component.html +++ b/src/app/pages/lockscreen/lockscreen.component.html @@ -6,8 +6,8 @@
- +
diff --git a/src/app/pages/lockscreen/lockscreen.component.ts b/src/app/pages/lockscreen/lockscreen.component.ts index 2d0edf9..fff6625 100644 --- a/src/app/pages/lockscreen/lockscreen.component.ts +++ b/src/app/pages/lockscreen/lockscreen.component.ts @@ -20,7 +20,7 @@ export class LockscreenComponent implements OnInit { } - roleType:string = '1'; //登录角色 + roleType:string = '2'; //登录角色 errmsg :string = ''; //错误信息 diff --git a/src/app/ui/eharts-statistics/eharts-statistics.component.ts b/src/app/ui/eharts-statistics/eharts-statistics.component.ts index 4493ff2..1c67a6c 100644 --- a/src/app/ui/eharts-statistics/eharts-statistics.component.ts +++ b/src/app/ui/eharts-statistics/eharts-statistics.component.ts @@ -138,9 +138,9 @@ export class EhartsStatisticsComponent implements OnInit { return b.count - a.count } ) newData.forEach(element => { - postNames.push(element.postName) - catalogs.push(element.catalog) - counts.push(element.count) + postNames.push(element.postName ? element.postName : '暂无数据') + catalogs.push(element.catalog ? element.catalog : '暂无数据') + counts.push(element.count ? element.count : 0) }); this.echartsInit(postNames,catalogs,counts) }