From 2c1aeee4df81271e5fc65445d2248ca05d4c31ee Mon Sep 17 00:00:00 2001 From: cpf <1105965053@qq.com> Date: Mon, 8 Mar 2021 16:11:04 +0800 Subject: [PATCH 1/8] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E7=B4=A0=E6=9D=90=E5=BA=93=E6=A8=A1=E7=B3=8A=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../collection-tools.component.html | 46 ++++++++++++------- .../collection-tools.component.ts | 19 +++++++- .../ui/collection-tools-building/panel.scss | 12 +++++ .../collection-tools.component.html | 43 ++++++++++------- .../collection-tools.component.ts | 17 +++++++ src/app/ui/collection-tools-plan/panel.scss | 12 +++++ .../collection-tools.component.html | 44 +++++++++++------- .../collection-tools.component.ts | 17 +++++++ src/app/ui/collection-tools/panel.scss | 12 +++++ 9 files changed, 172 insertions(+), 50 deletions(-) diff --git a/src/app/ui/collection-tools-building/collection-tools.component.html b/src/app/ui/collection-tools-building/collection-tools.component.html index d253c0f..b79704f 100644 --- a/src/app/ui/collection-tools-building/collection-tools.component.html +++ b/src/app/ui/collection-tools-building/collection-tools.component.html @@ -61,7 +61,7 @@
{{items.name}}
-{{items.name}}
{{items.name}}
+{{items.name}}
-{{items.name}}
{{items.name}}
+{{items.name}}
-{{items.name}}
{{items.name}}
+'+this.tishiData.organizationStatistics.organizations[i].organizationName+' | ' - this.res+=''+this.tishiData.organizationStatistics.organizations[i].count+' | ' - this.res+='10 | ' + this.res+=''+this.tishiData[i].organizationName+' | ' + this.res+=''+this.tishiData[i].count+' | ' + this.res+=''+countbi+'% | ' } this.res+='总计 | 1356 | 19% | ' + this.res+='总计 | '+countall+' | '+allCountbi.toFixed(2)+'% | ' this.res+='
名称 | '; this.res+='数量 | ' this.res+='总占比 | ' this.res+=''+this.tishiData.companyStatistics.organizationStatistics.organizations[i].organizationName+' | ' - this.res+=''+this.tishiData.companyStatistics.organizationStatistics.organizations[i].count+' | ' - this.res+=''+Math.round(this.tishiData.companyStatistics.organizationStatistics.organizations[i].count/countall* 10000)/ 100.00 +'% | ' + this.res+=''+this.tishiData[i].organizationName+' | ' + this.res+=''+this.tishiData[i].count+' | ' + this.res+=''+countbi+'% | ' } this.res+='总计 | '+this.tishiData.companyStatistics.totalCount+' | 100% | ' + this.res+='总计 | '+countall+' | '+allCountbi.toFixed(2)+'% | ' this.res+='
名称 | '; + this.res+='数量 | ' + this.res+='总占比 | ' + this.res+=''+this.tishiData[i].organizationName+' | ' + this.res+=''+this.tishiData[i].count+' | ' + this.res+=''+countbi+'% | ' + } + + this.res+='总计 | '+countall+' | '+allCountbi.toFixed(2)+'% | ' + this.res+='
名称 | '; - res+='数量 | ' - res+='总占比 | ' - res+=''+jsonObj[i].name+' | ' - res+=''+jsonObj[i].number+' | ' - res+=''+jsonObj[i].zhanbi+' | ' + res + tishiData + biaogeTishi(datas,type){ + console.log(datas) + this.res='' + this.tishiData='' + if(type=='two'){ + for(var a in this.echartsData.obdata[0].buildingTypeStatistics.buildingTypes){ + if(this.echartsData.obdata[0].buildingTypeStatistics.buildingTypes[a].buildingTypeName==datas.name){ + this.tishiData=this.echartsData.obdata[0].buildingTypeStatistics.buildingTypes[a].organizations } - - res+='总计 | 1356 | 19% | ' - res+='
名称 | '; + this.res+='数量 | ' + this.res+='总占比 | ' + this.res+=''+this.tishiData[i].organizationName+' | ' + } + else{ + this.res+=''+this.tishiData[i].buildingTypeName+' | ' + } + + this.res+=''+this.tishiData[i].count+' | ' + this.res+=''+countbi+'% | ' + } + + this.res+='总计 | '+countall+' | '+allCountbi.toFixed(2)+'% | ' + this.res+='
名称 | '; - res+='数量 | ' - res+='总占比 | ' - res+=''+data[i].name+' | ' - res+=''+data[i].number+' | ' - res+=''+data[i].zhanbi+' | ' - } - - res+='总计 | 1356 | 19% | ' - res+='
名称 | '; + this.res+='数量 | ' + this.res+='总占比 | ' + this.res+=''+this.tishiData[i].organizationName+' | ' + this.res+=''+this.tishiData[i].count+' | ' + this.res+=''+countbi+'% | ' + } + + this.res+='总计 | '+countall+' | '+allCountbi.toFixed(2)+'% | ' + this.res+='
名称 | '; - res+='数量 | ' - res+='总占比 | ' - res+=''+this.tableDataZhong[i].name+' | ' - res+=''+this.tableDataZhong[i].number+' | ' - res+=''+this.tableDataZhong[i].zhanbi+' | ' - } - - res+='总计 | 1356 | 19% | ' - res+='
名称 | '; + this.res+='数量 | ' + this.res+='总占比 | ' + this.res+=''+this.tishiData[i].organizationName+' | ' + this.res+=''+this.tishiData[i].count+' | ' + this.res+=''+countbi+'% | ' + } + + this.res+='总计 | '+countall+' | '+allCountbi.toFixed(2)+'% | ' + this.res+='
名称 | '; + this.res+='数量 | ' + this.res+='总占比 | ' + this.res+=''+this.tishiData[i].organizationName+' | ' + this.res+=''+this.tishiData[i].count+' | ' + this.res+=''+countbi+'% | ' + } + this.res+='总计 | '+countall+' | '+allCountbi.toFixed(2)+'% | ' + this.res+='