From 5e502e366836b3577884bca89372541b42124cd3 Mon Sep 17 00:00:00 2001 From: fengxiang <110431245@qq.com> Date: Wed, 02 May 2018 16:03:59 +0800 Subject: [PATCH] 工作台 数据填充,监控点 改监控站点 --- src/app/routes/dashboard/workplace/workplace.component.html | 59 +++++++++++++---------------------------------------------- 1 files changed, 13 insertions(+), 46 deletions(-) diff --git a/src/app/routes/dashboard/workplace/workplace.component.html b/src/app/routes/dashboard/workplace/workplace.component.html index 3d08c8c..f39e81c 100644 --- a/src/app/routes/dashboard/workplace/workplace.component.html +++ b/src/app/routes/dashboard/workplace/workplace.component.html @@ -21,7 +21,7 @@ <p>8<span> / 24</span></p> </div> <div> - <p>���������</p> + <p>������������</p> <p>20</p> </div> <!-- @@ -38,9 +38,10 @@ </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> @@ -57,23 +58,24 @@ </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> @@ -82,14 +84,14 @@ <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> @@ -292,41 +294,6 @@ </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"> -- Gitblit v1.8.0