| | |
| | | <p>8<span> / 24</span></p> |
| | | </div> |
| | | <div> |
| | | <p>监控点</p> |
| | | <p>监控站点</p> |
| | | <p>20</p> |
| | | </div> |
| | | <!-- |
| | |
| | | </ng-template> |
| | | </pro-header> |
| | | |
| | | <div nz-row [nzGutter]="24" class="pt-lg" style="margin-top: -24px"> |
| | | <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 | number: '1.0'}}" contentHeight="46px" [action]="action1" [footer]="footer1"> |
| | | <chart-card [title]="'监控仪台数'" total="{{totalDeviceCount | number: '1.0'}}" contentHeight="46px" [action]="action1" [footer]="footer1" |
| | | [loading]="deviceCountLoading"> |
| | | <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]="operNormalPercent + '%'" contentHeight="46px" [action]="action2" [footer]="footer2" |
| | | [loading] = "operationLoading"> |
| | | <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]="operNormalPercent" 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> |
| | | <trend flag="down">日环比<span class="pl-sm">2%</span></trend> |
| | | <trend flag="up">维保占比<span class="pl-sm">8%</span></trend> |
| | | <trend flag="down">故障占比<span class="pl-sm">2%</span></trend> |
| | | </div> |
| | | </ng-template> |
| | | </chart-card> |
| | | </div> |
| | | <div nz-col nzXs="24" nzSm="12" nzMd="12" nzLg="6"> |
| | | <chart-card [title]="'报警次数'" total="2,847" contentHeight="46px" [action]="action3" [footer]="footer3"> |
| | | <chart-card [title]="'月度报警总数'" [total]="alarmCountCurrMonth" [loading]="alarmCountLoading" contentHeight="46px" [action]="action3" [footer]="footer3"> |
| | | <ng-template #action3> |
| | | <nz-tooltip [nzTitle]="'最近一年所属设备的报警次数统计'"> |
| | | <nz-icon nz-tooltip nzType="info-circle-o"></nz-icon> |
| | |
| | | <mini-area |
| | | color="#975FE4" |
| | | height="46" |
| | | [data]="data.visitData"></mini-area> |
| | | [data]="alarmCountList"></mini-area> |
| | | <ng-template #footer3> |
| | | <p class="text-truncate">月度报警次数:<span class="ml-sm">1,234</span></p> |
| | | <p class="text-truncate">当天报警总数:<span class="ml-sm">{{ alarmCountCurrDay }}</span></p> |
| | | </ng-template> |
| | | </chart-card> |
| | | </div> |
| | | <div nz-col nzXs="24" nzSm="12" nzMd="12" nzLg="6"> |
| | | <chart-card [title]="'虚拟机台数'" total="1,260" 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> |
| | |
| | | </div> |
| | | <nz-card [nzLoading]="loading" [nzBordered]="false" nzNoPadding class="sales-card"> |
| | | <ng-template #body> |
| | | <nz-tabset> |
| | | <nz-tab> |
| | | <ng-template #nzTabHeading>所有警报</ng-template> |
| | | <nz-tabset (nzSelectedIndexChange)=selectedIndexChange($event) > |
| | | <nz-tab *ngFor="let alarmData of alarmDatas"> |
| | | <ng-template #nzTabHeading>{{alarmData.title}}警报</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="purple"></bar> |
| | | <bar height="295" [title]="alarmData.title+'警报月度统计'" [data]="alarmData.data" color="{{alarmData.color}}"></bar> |
| | | </div> |
| | | </div> |
| | | <div nz-col nzXs="24" nzSm="24" nzMd="12" nzLg="8"> |
| | |
| | | <h4 class="rank-title">本月警报排名</h4> |
| | | <ul> |
| | | <li *ngFor="let i of rankingListData; let idx = index"> |
| | | <div> |
| | | <div *ngIf="idx < 7"> |
| | | <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="yellow"></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-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> |
| | | </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-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> |
| | | <span *ngIf="idx < 7">{{i.total | number: '1.0'}}</span> |
| | | </li> |
| | | </ul> |
| | | </div> |
| | |
| | | </nz-card> |
| | | </div> |
| | | <div nz-col nzXs="24" nzSm="24" nzMd="24" nzLg="12"> |
| | | <nz-card [nzLoading]="loading" [nzBordered]="false" nzTitle="销售额类别占比" [nzBodyStyle]="{'padding.px': 24}" class="sales-card" style="min-height: 482px;"> |
| | | <nz-card [nzLoading]="loading" [nzBordered]="false" nzTitle="警报类别占比" [nzBodyStyle]="{'padding.px': 24}" class="sales-card" style="min-height: 482px;"> |
| | | <ng-template #extra> |
| | | <div class="sales-card-extra"> |
| | | <nz-dropdown> |
| | | <nz-icon class="icon-group" nz-dropdown nzType="ellipsis"></nz-icon> |
| | | <ul nz-menu> |
| | | <li nz-menu-item>操作一</li> |
| | | <li nz-menu-item>操作二</li> |
| | | </ul> |
| | | </nz-dropdown> |
| | | <div class="sales-type-radio"> |
| | | <nz-radio-group [(ngModel)]="salesType" (ngModelChange)="changeSaleType()" [nzSize]="'large'"> |
| | | <label nz-radio-button [nzValue]="'all'"><span>全部渠道</span></label> |
| | | <label nz-radio-button [nzValue]="'online'"><span>线上</span></label> |
| | | <label nz-radio-button [nzValue]="'offline'"><span>门店</span></label> |
| | | <label nz-radio-button [nzValue]="'0'"><span>全部</span></label> |
| | | <label nz-radio-button [nzValue]="'1'"><span>一级</span></label> |
| | | <label nz-radio-button [nzValue]="'2'"><span>二级</span></label> |
| | | <label nz-radio-button [nzValue]="'3'"><span>三级</span></label> |
| | | </nz-radio-group> |
| | | </div> |
| | | </div> |
| | | </ng-template> |
| | | <ng-template #body> |
| | | <h4 class="margin:8px 0 32px 0;">销售额</h4> |
| | | <pie |
| | | [hasLegend]="true" |
| | | subTitle="销售额" |
| | | [height]="248" |
| | | [lineWidth]="4" |
| | | [total]="salesTotal" |
| | | [data]="salesPieData" |
| | | [valueFormat]="handlePieValueFormat"> |
| | | </pie> |
| | | <h4 class="margin:8px 0 32px 0;">警报占比</h4> |
| | | <pie [hasLegend]="true" subTitle="警报数量" [height]="248" [lineWidth]="4" [total]="salesTotal" [data]="salesPieData" [valueFormat]="handlePieValueFormat"></pie> |
| | | </ng-template> |
| | | </nz-card> |
| | | </div> |
| | | </div> |
| | | <nz-card [nzLoading]="loading" [nzBordered]="false" [nzBodyStyle]="{'padding': '0 0 32px'}" class="offline-card mt-lg"> |
| | | <ng-template #body> |
| | | <nz-tabset [(nzSelectedIndex)]="_activeTab" (nzSelectChange)="_tabChange($event)"> |
| | | <nz-tab *ngFor="let tab of data.offlineData; let i = index;"> |
| | | <ng-template #nzTabHeading> |
| | | <div nz-row [nzGutter]="8" style="width: 138px; margin: 8px 0"> |
| | | <div nz-col [nzSpan]="12"> |
| | | <number-info |
| | | [title]="tab.name" |
| | | subTitle="转化率" |
| | | gap="2" |
| | | [total]="(tab.cvr * 100) + '%'" |
| | | [theme]="i !== _activeTab && 'light'"></number-info> |
| | | </div> |
| | | <div nz-col [nzSpan]="12" style="padding-top: 36px"> |
| | | <pie |
| | | [animate]="false" |
| | | [color]="i !== _activeTab && '#BDE4FF'" |
| | | [inner]="0.55" |
| | | [tooltip]="false" |
| | | [padding]="[0, 0, 0, 0]" |
| | | [percent]="tab.cvr * 100" |
| | | [height]="64"> |
| | | </pie> |
| | | </div> |
| | | </div> |
| | | </ng-template> |
| | | <div class="px-lg"> |
| | | <timeline [data]="tab.chart" |
| | | [titleMap]="{ y1: '客流量', y2: '支付笔数' }"></timeline> |
| | | </div> |
| | | </nz-tab> |
| | | </nz-tabset> |
| | | </ng-template> |
| | | </nz-card> |
| | | |
| | | <div nz-row [nzGutter]="24"> |
| | | <div nz-col nzXs="24" nzSm="24" nzMd="16"> |