From 5ad15d5e999b91da4afcc358063f80f95eb66ed9 Mon Sep 17 00:00:00 2001
From: 沈斌 <bluelazysb@hotmail.com>
Date: Tue, 13 Mar 2018 16:03:09 +0800
Subject: [PATCH] 工作台数据统计页面

---
 src/app/routes/dashboard/workplace/workplace.component.html |   35 -----------------
 src/app/routes/dashboard/workplace/workplace.component.ts   |   26 -------------
 2 files changed, 0 insertions(+), 61 deletions(-)

diff --git a/src/app/routes/dashboard/workplace/workplace.component.html b/src/app/routes/dashboard/workplace/workplace.component.html
index 3d08c8c..af9599e 100644
--- a/src/app/routes/dashboard/workplace/workplace.component.html
+++ b/src/app/routes/dashboard/workplace/workplace.component.html
@@ -292,41 +292,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">
diff --git a/src/app/routes/dashboard/workplace/workplace.component.ts b/src/app/routes/dashboard/workplace/workplace.component.ts
index a2a21a6..6c5442a 100644
--- a/src/app/routes/dashboard/workplace/workplace.component.ts
+++ b/src/app/routes/dashboard/workplace/workplace.component.ts
@@ -130,22 +130,6 @@
             });
         }
 
-        const offlineData = [];
-        for (let i = 0; i < 10; i += 1) {
-            offlineData.push({
-                name: `������${i}`,
-                cvr: Math.ceil(Math.random() * 9) / 10
-            });
-        }
-        const offlineChartData = [];
-        for (let i = 0; i < 20; i += 1) {
-            offlineChartData.push({
-                x: new Date().getTime() + 1000 * 60 * 30 * i,
-                y1: Math.floor(Math.random() * 100) + 10,
-                y2: Math.floor(Math.random() * 100) + 10
-            });
-        }
-
         const radarOriginData = [
             {
                 name: '������',
@@ -216,16 +200,11 @@
             visitData: visitData,
             visitData2: visitData2,
 
-            offlineData: offlineData,
-            offlineChartData: offlineChartData,
             radarOriginData: radarOriginData,
             radarData: radarData,
             searchData: searchData
         };
 
-        res.offlineData.forEach((item: any) => {
-            item.chart = Object.assign([], res.offlineChartData);
-        });
         this.data = res;
         this.loading = false;
         this.changeSaleType();
@@ -400,10 +379,5 @@
 
     handlePieValueFormat(value: any) {
         return value + "���";
-    }
-
-    _activeTab = 0;
-    _tabChange(value: any) {
-        console.log('tab', this._activeTab, value);
     }
 }

--
Gitblit v1.8.0