|  |  | 
 |  |  |  | 
 |  |  | <div nz-row [nzGutter]="24" class="pt-lg" style="margin-top: -24px"> | 
 |  |  |     <div nz-col nzXs="24" nzSm="12" nzMd="12" nzLg="6"> | 
 |  |  |         <chart-card | 
 |  |  |             [title]="'监控仪台数'" | 
 |  |  |             total="{{totalDeviceCount}}" | 
 |  |  |             contentHeight="46px" | 
 |  |  |             [action]="action1" | 
 |  |  |             [footer]="footer1"> | 
 |  |  |         <chart-card [title]="'监控仪台数'" total="{{totalDeviceCount | number: '1.0'}}" contentHeight="46px" [action]="action1" [footer]="footer1"> | 
 |  |  |             <ng-template #action1> | 
 |  |  |                 <nz-tooltip [nzTitle]="'包括最近一年已安装的监控仪设备的总台数'"> | 
 |  |  |                     <nz-icon nz-tooltip nzType="info-circle-o"></nz-icon> | 
 |  |  | 
 |  |  |         </chart-card> | 
 |  |  |     </div> | 
 |  |  |     <div nz-col nzXs="24" nzSm="12" nzMd="12" nzLg="6"> | 
 |  |  |         <chart-card [title]="'正常运行占比'" | 
 |  |  |                     total="78%" | 
 |  |  |                     contentHeight="46px" | 
 |  |  |                     [action]="action2" | 
 |  |  |                     [footer]="footer2"> | 
 |  |  |         <chart-card [title]="'正常运行占比'" total="78%" contentHeight="46px" [action]="action2" [footer]="footer2"> | 
 |  |  |             <ng-template #action2> | 
 |  |  |                 <nz-tooltip [nzTitle]="'当前处于正常运行状态的监控设备的占比'"> | 
 |  |  |                     <nz-icon nz-tooltip nzType="info-circle-o"></nz-icon> | 
 |  |  |                 </nz-tooltip> | 
 |  |  |             </ng-template> | 
 |  |  |             <mini-progress | 
 |  |  |                 height="46" | 
 |  |  |                 percent="78" | 
 |  |  |                 strokeWidth="8" | 
 |  |  |                 target="80" | 
 |  |  |                 color="#13C2C2"></mini-progress> | 
 |  |  |             <mini-progress height="46" percent="78" strokeWidth="8" target="80" color="#13C2C2"></mini-progress> | 
 |  |  |             <ng-template #footer2> | 
 |  |  |                 <div class="d-flex justify-content-between"> | 
 |  |  |                     <trend flag="up">周同比<span class="pl-sm">8%</span></trend> | 
 |  |  | 
 |  |  |         </chart-card> | 
 |  |  |     </div> | 
 |  |  |     <div nz-col nzXs="24" nzSm="12" nzMd="12" nzLg="6"> | 
 |  |  |         <chart-card [title]="'报警次数'" | 
 |  |  |                     total="8,848" | 
 |  |  |                     contentHeight="46px" | 
 |  |  |                     [action]="action3" | 
 |  |  |                     [footer]="footer3"> | 
 |  |  |         <chart-card [title]="'报警次数'" total="2,847" contentHeight="46px" [action]="action3" [footer]="footer3"> | 
 |  |  |             <ng-template #action3> | 
 |  |  |                 <nz-tooltip [nzTitle]="'最近一年所属设备的报警次数统计'"> | 
 |  |  |                     <nz-icon nz-tooltip nzType="info-circle-o"></nz-icon> | 
 |  |  | 
 |  |  |         </chart-card> | 
 |  |  |     </div> | 
 |  |  |     <div nz-col nzXs="24" nzSm="12" nzMd="12" nzLg="6"> | 
 |  |  |         <chart-card [title]="'虚拟机台数'" | 
 |  |  |                     total="6,560" | 
 |  |  |                     contentHeight="46px" | 
 |  |  |                     [action]="action4" | 
 |  |  |                     [footer]="footer4"> | 
 |  |  |         <chart-card [title]="'虚拟机台数'" total="1,260" contentHeight="46px" [action]="action4" [footer]="footer4"> | 
 |  |  |             <ng-template #action4> | 
 |  |  |                 <nz-tooltip [nzTitle]="'最近一年新增的监控模拟设备总台数'"> | 
 |  |  |                     <nz-icon nz-tooltip nzType="info-circle-o"></nz-icon> | 
 |  |  | 
 |  |  |             </ng-template> | 
 |  |  |             <mini-bar | 
 |  |  |                 height="46" | 
 |  |  |                 color="orange" | 
 |  |  |                 color="gray" | 
 |  |  |                 [data]="data.visitData"></mini-bar> | 
 |  |  |             <ng-template #footer4> | 
 |  |  |                 <p class="text-truncate">月均新增台数:<span class="ml-sm">220</span></p> | 
 |  |  |                 <p class="text-truncate">月均新增台数:<span class="ml-sm">60</span></p> | 
 |  |  |             </ng-template> | 
 |  |  |         </chart-card> | 
 |  |  |     </div> | 
 |  |  | 
 |  |  |     <ng-template #body> | 
 |  |  |         <nz-tabset> | 
 |  |  |             <nz-tab> | 
 |  |  |                 <ng-template #nzTabHeading>销售额</ng-template> | 
 |  |  |                 <ng-template #nzTabHeading>所有警报</ng-template> | 
 |  |  |                 <div nz-row> | 
 |  |  |                     <div nz-col nzXs="24" nzSm="24" nzMd="12" nzLg="16"> | 
 |  |  |                         <div class="bar"> | 
 |  |  |                             <bar | 
 |  |  |                                 height="295" | 
 |  |  |                                 [title]="'销售额趋势'" | 
 |  |  |                                 [data]="data.salesData"></bar> | 
 |  |  |                             <bar height="295" [title]="'2018年月度所有警报统计'" [data]="data.alarmData" color="purple"></bar> | 
 |  |  |                         </div> | 
 |  |  |                     </div> | 
 |  |  |                     <div nz-col nzXs="24" nzSm="24" nzMd="12" nzLg="8"> | 
 |  |  |                         <div class="rank-list"> | 
 |  |  |                             <h4 class="rank-title">门店销售额排名</h4> | 
 |  |  |                             <h4 class="rank-title">本月警报排名</h4> | 
 |  |  |                             <ul> | 
 |  |  |                                 <li *ngFor="let i of rankingListData; let idx = index"> | 
 |  |  |                                     <div> | 
 |  |  |                                         <span class="icon" [ngClass]="{'active': idx < 3}">{{idx+1}}</span> | 
 |  |  |                                         {{i.title}} | 
 |  |  |                                     </div> | 
 |  |  |                                     <span>{{i.total | number: '3.0'}}</span> | 
 |  |  |                                     <span>{{i.total | number: '1.0'}}</span> | 
 |  |  |                                 </li> | 
 |  |  |                             </ul> | 
 |  |  |                         </div> | 
 |  |  |                     </div> | 
 |  |  |                 </div> | 
 |  |  |             </nz-tab> | 
 |  |  |  | 
 |  |  |             <nz-tab> | 
 |  |  |                 <ng-template #nzTabHeading>访问量</ng-template> | 
 |  |  |                 <ng-template #nzTabHeading>一级警报</ng-template> | 
 |  |  |                 <div nz-row> | 
 |  |  |                     <div nz-col nzXs="24" nzSm="24" nzMd="12" nzLg="16"> | 
 |  |  |                         <div class="bar"> | 
 |  |  |                             <bar | 
 |  |  |                                 height="295" | 
 |  |  |                                 [title]="'访问量趋势'" | 
 |  |  |                                 [data]="data.salesData"></bar> | 
 |  |  |                             <bar height="295" [title]="'2018年月度一级警报统计'" [data]="data.alarmData" color="yellow"></bar> | 
 |  |  |                         </div> | 
 |  |  |                     </div> | 
 |  |  |                     <div nz-col nzXs="24" nzSm="24" nzMd="12" nzLg="8"> | 
 |  |  |                         <div class="rank-list"> | 
 |  |  |                             <h4 class="rank-title">门店访问量排名</h4> | 
 |  |  |                             <h4 class="rank-title">本月警报排名</h4> | 
 |  |  |                             <ul> | 
 |  |  |                                 <li *ngFor="let i of rankingListData; let idx = index"> | 
 |  |  |                                     <div> | 
 |  |  |                                         <span class="icon" [ngClass]="{'active': idx < 3}">{{idx+1}}</span> | 
 |  |  |                                         {{i.title}} | 
 |  |  |                                     </div> | 
 |  |  |                                     <span>{{i.total | number: '3.0'}}</span> | 
 |  |  |                                     <span>{{i.total | number: '1.0'}}</span> | 
 |  |  |                                 </li> | 
 |  |  |                             </ul> | 
 |  |  |                         </div> | 
 |  |  |                     </div> | 
 |  |  |                 </div> | 
 |  |  |             </nz-tab> | 
 |  |  |             <ng-template #nzTabBarExtraContent> | 
 |  |  |                 <div class="sales-extra-wrap"> | 
 |  |  |                     <div class="sales-extra"> | 
 |  |  |                         <a (click)="setDate('today')">今日</a> | 
 |  |  |                         <a (click)="setDate('week')">本周</a> | 
 |  |  |                         <a (click)="setDate('month')">本月</a> | 
 |  |  |                         <a (click)="setDate('year')">全年</a> | 
 |  |  |  | 
 |  |  |             <nz-tab> | 
 |  |  |                 <ng-template #nzTabHeading>二级警报</ng-template> | 
 |  |  |                 <div nz-row> | 
 |  |  |                     <div nz-col nzXs="24" nzSm="24" nzMd="12" nzLg="16"> | 
 |  |  |                         <div class="bar"> | 
 |  |  |                             <bar height="295" [title]="'2018年月度二级警报统计'" [data]="data.alarmData" color="orange"></bar> | 
 |  |  |                     </div> | 
 |  |  |                     <nz-datepicker style="width:120px" class="mr-md" [(ngModel)]="q.start" [nzFormat]="'YYYY-MM-DD'" [nzPlaceHolder]="'开始日期'"></nz-datepicker> | 
 |  |  |                     <nz-datepicker style="width:120px" [(ngModel)]="q.end" [nzFormat]="'YYYY-MM-DD'" [nzPlaceHolder]="'结束日期'"></nz-datepicker> | 
 |  |  |                 </div> | 
 |  |  |             </ng-template> | 
 |  |  |                     <div nz-col nzXs="24" nzSm="24" nzMd="12" nzLg="8"> | 
 |  |  |                         <div class="rank-list"> | 
 |  |  |                             <h4 class="rank-title">本月警报排名</h4> | 
 |  |  |                             <ul> | 
 |  |  |                                 <li *ngFor="let i of rankingListData; let idx = index"> | 
 |  |  |                                     <div> | 
 |  |  |                                         <span class="icon" [ngClass]="{'active': idx < 3}">{{idx+1}}</span> | 
 |  |  |                                         {{i.title}} | 
 |  |  |                                     </div> | 
 |  |  |                                     <span>{{i.total | number: '1.0'}}</span> | 
 |  |  |                                 </li> | 
 |  |  |                             </ul> | 
 |  |  |                         </div> | 
 |  |  |                     </div> | 
 |  |  |                 </div> | 
 |  |  |             </nz-tab> | 
 |  |  |  | 
 |  |  |             <nz-tab> | 
 |  |  |                 <ng-template #nzTabHeading>三级警报</ng-template> | 
 |  |  |                 <div nz-row> | 
 |  |  |                     <div nz-col nzXs="24" nzSm="24" nzMd="12" nzLg="16"> | 
 |  |  |                         <div class="bar"> | 
 |  |  |                             <bar height="295" [title]="'2018年月度三级警报统计'" [data]="data.alarmData" color="red"></bar> | 
 |  |  |                         </div> | 
 |  |  |                     </div> | 
 |  |  |                     <div nz-col nzXs="24" nzSm="24" nzMd="12" nzLg="8"> | 
 |  |  |                         <div class="rank-list"> | 
 |  |  |                             <h4 class="rank-title">本月警报排名</h4> | 
 |  |  |                             <ul> | 
 |  |  |                                 <li *ngFor="let i of rankingListData; let idx = index"> | 
 |  |  |                                     <div> | 
 |  |  |                                         <span class="icon" [ngClass]="{'active': idx < 3}">{{idx+1}}</span> | 
 |  |  |                                         {{i.title}} | 
 |  |  |                                     </div> | 
 |  |  |                                     <span>{{i.total | number: '1.0'}}</span> | 
 |  |  |                                 </li> | 
 |  |  |                             </ul> | 
 |  |  |                         </div> | 
 |  |  |                     </div> | 
 |  |  |                 </div> | 
 |  |  |             </nz-tab> | 
 |  |  |         </nz-tabset> | 
 |  |  |     </ng-template> | 
 |  |  | </nz-card> | 
 |  |  | 
 |  |  |  | 
 |  |  | <div nz-row [nzGutter]="24"> | 
 |  |  |     <div nz-col nzXs="24" nzSm="24" nzMd="16"> | 
 |  |  |         <nz-card nzTitle="进行中的项目" [nzBordered]="false" [nzLoading]="loading" nzNoPadding class="mb-lg project-list"> | 
 |  |  |             <ng-template #extra> | 
 |  |  |                 <a (click)="msg.success('to')">全部项目</a> | 
 |  |  |             </ng-template> | 
 |  |  |             <div *ngFor="let item of notice" nz-card-grid class="project-grid"> | 
 |  |  |                 <nz-card nzNoPadding [nzBordered]="false" class="mb0"> | 
 |  |  |                     <nz-card-meta [nzTitle]="noticeTitle" [nzDescription]="item.description"> | 
 |  |  |                         <ng-template #noticeTitle> | 
 |  |  |                             <div class="card-title"> | 
 |  |  |                                 <nz-avatar [nzSrc]="item.logo" [nzSize]="'small'"></nz-avatar> | 
 |  |  |                                 <a (click)="msg.info('to' + item.href)">{{item.title}}</a> | 
 |  |  |                             </div> | 
 |  |  |                         </ng-template> | 
 |  |  |                     </nz-card-meta> | 
 |  |  |                     <div class="project-item"> | 
 |  |  |                         <a (click)="msg.info('show user: ' + item.member)">{{item.member}}</a> | 
 |  |  |                         <span *ngIf="item.updatedAt" class="datetime" title="{{item.updatedAt}}"> | 
 |  |  |                             {{item.updatedAt | _date: 'fn' }} | 
 |  |  |                         </span> | 
 |  |  |                     </div> | 
 |  |  |                 </nz-card> | 
 |  |  |             </div> | 
 |  |  |         </nz-card> | 
 |  |  |         <nz-card nzTitle="动态" [nzBordered]="false" [nzLoading]="loading" nzNoPadding class="mb-lg active-card"> | 
 |  |  |             <nz-list nzSize="large"> | 
 |  |  |                 <nz-list-item *ngFor="let item of activities" class="activities"> | 
 |  |  | 
 |  |  |         </nz-card> | 
 |  |  |     </div> | 
 |  |  |     <div nz-col nzXs="24" nzSm="24" nzMd="8"> | 
 |  |  |         <nz-card nzTitle="快速开始 / 便捷导航" [nzBordered]="false" nzNoPadding class="mb-lg"> | 
 |  |  |             <div class="links"> | 
 |  |  |                 <a *ngFor="let item of links" (click)="msg.success(item.title)">{{item.title}}</a> | 
 |  |  |                 <button nz-button (click)="links.push({title: 'new titel', href: 'href'})" [nzType]="'dashed'" [nzSize]="'small'"> | 
 |  |  |                     <i class="anticon anticon-plus"></i><span>添加</span> | 
 |  |  |                 </button> | 
 |  |  |             </div> | 
 |  |  |         </nz-card> | 
 |  |  |         <nz-card nzTitle="XX 指数" [nzBordered]="false" [nzLoading]="loading" class="mb-lg"> | 
 |  |  |             <ng-template #body><radar [data]="radarData" [height]="343" [hasLegend]="true"></radar></ng-template> | 
 |  |  |         </nz-card> | 
 |  |  |         <nz-card nzTitle="团队" [nzBordered]="false" [nzBodyStyle]="{'padding-top.px': 12, 'padding-bottom.px': 12 }" class="mb-lg"> | 
 |  |  |         <nz-card nzTitle="外链" [nzBordered]="false" [nzBodyStyle]="{'padding-top.px': 12, 'padding-bottom.px': 12 }" class="mb-lg"> | 
 |  |  |             <div class="members"> | 
 |  |  |                 <div nz-row [nzGutter]="48"> | 
 |  |  |                     <div nz-col [nzSpan]="12" *ngFor="let i of members"> |