diff --git a/src/app/key-unit/key-unit-management/key-unit-management.component.html b/src/app/key-unit/key-unit-management/key-unit-management.component.html
index 3f25a16..d849e3c 100644
--- a/src/app/key-unit/key-unit-management/key-unit-management.component.html
+++ b/src/app/key-unit/key-unit-management/key-unit-management.component.html
@@ -75,11 +75,11 @@
-
+
🠊
-
+
diff --git a/src/app/key-unit/key-unit-management/key-unit-management.component.ts b/src/app/key-unit/key-unit-management/key-unit-management.component.ts
index 660976b..8d4441d 100644
--- a/src/app/key-unit/key-unit-management/key-unit-management.component.ts
+++ b/src/app/key-unit/key-unit-management/key-unit-management.component.ts
@@ -349,8 +349,8 @@ export class KeyUnitManagementComponent implements OnInit {
PageSize: this.pageSizeOptions[0],
Sort: this.integritySort ? 'integrityscore' : '',
SortType: this.integritySort || '',
- IntegrityScoreMin:this.integrityScoreMin||0,
- IntegrityScoreMax:this.integrityScoreMax||1
+ IntegrityScoreMin:this.integrityScoreMin/100||0,
+ IntegrityScoreMax:this.integrityScoreMax/100||1
}
this.http.get("/api/Companies",{params:paramsdata}).subscribe((data:any)=>{
diff --git a/src/app/plan-audit/plan-record/plan-record.component.ts b/src/app/plan-audit/plan-record/plan-record.component.ts
index 3aedb68..f0b0bbf 100644
--- a/src/app/plan-audit/plan-record/plan-record.component.ts
+++ b/src/app/plan-audit/plan-record/plan-record.component.ts
@@ -4,7 +4,7 @@
* @Author: sueRimn
* @Date: 2020-12-25 10:19:31
* @LastEditors: sueRimn
- * @LastEditTime: 2021-02-20 16:35:38
+ * @LastEditTime: 2021-02-22 10:49:38
*/
import { Component, OnInit,Inject } from '@angular/core';
import { FormControl } from '@angular/forms';
@@ -134,13 +134,12 @@ export class PlanRecordComponent implements OnInit {
viewer//全景图对象
tableClick(e,item){
//e.target.parentElement.bgColor='#2196F3'
- console.log(e,item)
+ //console.log(e,item)
this.organizationName=''
this.id=item.id
this.fetchUrl=''
- this.viewer={}
+
this.http.get(`/api/PlanComponents/${item.itemId}`).subscribe((data:any)=>{
- console.log(data)
this.companyId=data.companyId
this.companyName=data.companyName
if(data.planType!=2&&data.planType!=1){
@@ -148,6 +147,10 @@ export class PlanRecordComponent implements OnInit {
var index=this.fetchUrl.indexOf("\/")
if(this.fetchUrl.substr(0,index)=='psw'){
this.showtype=1
+ var obj=document.getElementById('viewer')
+ if(obj!=null){
+ obj.innerHTML=''
+ }
window.setTimeout(()=>{
this.viewer = new Viewer({
container: document.querySelector('#viewer'),
diff --git a/src/app/plan-audit/wait-examineer/wait-examineer.component.ts b/src/app/plan-audit/wait-examineer/wait-examineer.component.ts
index 089b7ae..ac87c81 100644
--- a/src/app/plan-audit/wait-examineer/wait-examineer.component.ts
+++ b/src/app/plan-audit/wait-examineer/wait-examineer.component.ts
@@ -4,7 +4,7 @@
* @Author: sueRimn
* @Date: 2020-12-25 16:13:50
* @LastEditors: sueRimn
- * @LastEditTime: 2021-02-20 16:34:00
+ * @LastEditTime: 2021-02-22 10:49:28
*/
import { Component, Inject, OnInit } from '@angular/core';
import { FormControl } from '@angular/forms';
@@ -155,13 +155,12 @@ export class WaitExamineerComponent implements OnInit {
viewer//全景图对象
radioClick(e,item){
//e.target.parentElement.bgColor='#2196F3'
- console.log(e,item)
+ //console.log(e,item)
this.organizationName=''
this.id=item.id
this.fetchUrl=''
this.viewer={}
this.http.get(`/api/PlanComponents/${item.itemId}`).subscribe((data:any)=>{
- console.log(data)
this.companyId=data.companyId
this.companyName=data.companyName
if(data.planType!=2&&data.planType!=1){
@@ -169,6 +168,10 @@ export class WaitExamineerComponent implements OnInit {
var index=this.fetchUrl.indexOf("\/")
if(this.fetchUrl.substr(0,index)=='psw'){
this.showtype=1
+ var obj=document.getElementById('viewer')
+ if(obj!=null){
+ obj.innerHTML=''
+ }
window.setTimeout(()=>{
this.viewer = new Viewer({
container: document.querySelector('#viewer'),
diff --git a/src/app/statistic-analysis/buildingType/building-type-one/building-type-one.component.ts b/src/app/statistic-analysis/buildingType/building-type-one/building-type-one.component.ts
index ed4270d..76bcddd 100644
--- a/src/app/statistic-analysis/buildingType/building-type-one/building-type-one.component.ts
+++ b/src/app/statistic-analysis/buildingType/building-type-one/building-type-one.component.ts
@@ -2,6 +2,7 @@ import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { HttpClient } from '@angular/common/http'
import {EchartsDataService,} from '../../echarts-data.service'
+import { map } from 'rxjs/operators';
declare var echarts: any;
@Component({
selector: 'app-building-type-one',
@@ -34,7 +35,7 @@ export class BuildingTypeOneComponent implements OnInit {
this.indexData.push(data.companyStatistics.buildingTypeStatistics.buildingTypes[i])
}
//JSON.parse(JSON.stringify(this.indexData).replace(/buildingTypeName/g, 'name'))
- this.indexData=this.indexData.map(v=>{return {name: v.buildingTypeName,value:v.count}})
+ this.indexData=this.indexData.map(v=>{return {name: v.buildingTypeName,value:v.count,id:v.buildingTypeId}})
console.log(this.indexData)
this.indexBzt = echarts.init(document.getElementById('indexBzt'),'walden');
let options={
@@ -49,8 +50,11 @@ export class BuildingTypeOneComponent implements OnInit {
tooltip: {
trigger: 'item',
position: this.echartsData.tableTooltipNoShow2,
- formatter: (params)=>{
- return this.echartsData.biaogeTishiZhi(params.name)
+ formatter: (params)=>{
+ //console.log(params)
+ this.echartsData.biaogeTishiZhi(params.data)
+ return this.echartsData.res
+
}
},
legend: {
@@ -80,24 +84,7 @@ export class BuildingTypeOneComponent implements OnInit {
}
},
},
- data:/* [
- {value: this.indexData[0].count, name: this.indexData[0].buildingTypeName},
- {value: this.indexData[1].count, name: this.indexData[1].buildingTypeName},
- {value: this.indexData[2].count, name: this.indexData[2].buildingTypeName},
- {value: this.indexData[3].count, name: this.indexData[3].buildingTypeName},
- {value: this.indexData[4].count, name: this.indexData[4].buildingTypeName},
- {value: this.indexData[5].count, name: this.indexData[5].buildingTypeName},
- {value: this.indexData[6].count, name: this.indexData[6].buildingTypeName},
- {value: this.indexData[7].count, name: this.indexData[7].buildingTypeName},
- {value: this.indexData[8].count, name: this.indexData[8].buildingTypeName},
- {value: this.indexData[9].count, name: this.indexData[9].buildingTypeName},
- {value: this.indexData[10].count, name: this.indexData[0].buildingTypeName},
- {value: this.indexData[0].count, name: this.indexData[0].buildingTypeName},
- {value: this.indexData[0].count, name: this.indexData[0].buildingTypeName},
- {value: 500, name: '影剧院'},
- {value: 1025, name: '展览建筑'},
- {value: 600, name: '隧道'}
- ] */this.indexData,
+ data:this.indexData,
emphasis: {
itemStyle: {
shadowBlur: 10,
@@ -116,34 +103,35 @@ export class BuildingTypeOneComponent implements OnInit {
}
- biaogeTishi(biaotou:string){
- var shuju='[{"name":"浦东支队","number":"156","zhanbi":"3%"},{"name":"黄浦支队","number":"144","zhanbi":"2.8%"},'
- shuju+='{"name":"徐汇支队","number":"133","zhanbi":"2.1%"},{"name":"长宁支队","number":"122","zhanbi":"1.6%"},'
- shuju+='{"name":"静安支队","number":"120","zhanbi":"1.3%"},{"name":"普陀支队","number":"100","zhanbi":"1.1%"},'
- shuju+='{"name":"虹口支队","number":"95","zhanbi":"1%"},{"name":"杨浦支队","number":"90","zhanbi":"0.9%"},'
- shuju+='{"name":"闵行支队","number":"88","zhanbi":"0.8%"},{"name":"宝山支队","number":"83","zhanbi":"0.7%"},'
- shuju+='{"name":"徐汇支队","number":"133","zhanbi":"2.1%"},{"name":"长宁支队","number":"122","zhanbi":"1.6%"},'
- shuju+='{"name":"嘉定支队","number":"78","zhanbi":"0.6%"},{"name":"松江支队","number":"75","zhanbi":"0.5%"},'
- shuju+='{"name":"金山支队","number":"65","zhanbi":"0.4%"},{"name":"崇明支队","number":"55","zhanbi":"0.3%"}]'
- var jsonObj = JSON.parse(shuju);
- var res = ''+biaotou+'
'
- res+='
';
- res+='';
- res+='名称 | ';
- res+='数量 | '
- res+='总占比 | '
- res+='
'
- res+='';
- for(var i=0;i'
- res+=''+jsonObj[i].name+' | '
- res+=''+jsonObj[i].number+' | '
- res+=''+jsonObj[i].zhanbi+' | '
- }
-
- res+=''
- res+='总计 | 1356 | 19% | '
- res+='
'
- return res
- }
+ tishiData
+ res:string
+ biaogeTishiZhi(datas){
+ let paramsdata:any = {
+ BuildingTypeId:datas.id
+ }
+
+ this.http.get("/api/StatisticsAnalysis/Companies",{params:paramsdata}).subscribe((data:any)=>{
+ this.tishiData=data
+ this.res= ''+datas.name+'
'
+ this.res+='
';
+ this.res+='';
+ this.res+='名称 | ';
+ this.res+='数量 | '
+ this.res+='总占比 | '
+ this.res+='
'
+ this.res+='';
+ //var res=''+biaotou+'
'
+ for(var i=0;i
'
+ this.res+=''+this.tishiData.organizationStatistics.organizations[i].organizationName+' | '
+ this.res+=''+this.tishiData.organizationStatistics.organizations[i].count+' | '
+ this.res+='10 | '
+ }
+
+ this.res+=' '
+ this.res+='总计 | 1356 | 19% | '
+ this.res+='
'
+ return this.res
+ })
+ }
}
diff --git a/src/app/statistic-analysis/echarts-data.service.ts b/src/app/statistic-analysis/echarts-data.service.ts
index 2ff0fcf..cee619d 100644
--- a/src/app/statistic-analysis/echarts-data.service.ts
+++ b/src/app/statistic-analysis/echarts-data.service.ts
@@ -396,37 +396,54 @@ export class EchartsDataService {
return res
}
/**
- * @name: 支队表格提示框封装
+ * @name: 表格提示框封装
* @test: test font
* @msg:
* @param {string(表头)}
* @return {type}
*/
- biaogeTishiZhi(biaotou:string){
- var res = ''+biaotou+'
'
- res+='
';
- res+='';
- res+='名称 | ';
- res+='数量 | '
- res+='总占比 | '
- res+='
'
- res+='';
- //var res=''+biaotou+'
'
- for(var i=0;i
'
- res+=''+this.tableDataZhi[i].name+' | '
- res+=''+this.tableDataZhi[i].number+' | '
- res+=''+this.tableDataZhi[i].zhanbi+' | '
- }
-
- res+=' '
- res+='总计 | 1356 | 19% | '
- res+='
'
- return res
+ res
+ tishiData
+ biaogeTishiZhi(datas){
+ let paramsdata:any = {
+ BuildingTypeId:datas.id
+ }
+ //var res
+ this.http.get("/api/StatisticsAnalysis/Companies",{params:paramsdata}).subscribe((data:any)=>{
+ this.tishiData=data
+ console.log(this.tishiData)
+ this.res= ''+datas.name+'
'
+ this.res+='
';
+ this.res+='';
+ this.res+='名称 | ';
+ this.res+='数量 | '
+ this.res+='总占比 | '
+ this.res+='
'
+ this.res+='';
+ var countall=0
+ for(var i=0;i'
+ for(var i=0;i'
+ this.res+=''+this.tishiData.organizationStatistics.organizations[i].organizationName+' | '
+ this.res+=''+this.tishiData.organizationStatistics.organizations[i].count+' | '
+ this.res+=''+Math.round(this.tishiData.organizationStatistics.organizations[i].count/countall* 10000)/ 100.00 +'% | '
+ }
+
+ this.res+=''
+ this.res+='总计 | '+this.tishiData.totalCount+' | 100% | '
+ this.res+='
'
+ return this.res
+ })
+
}
- zhiNameData = ["浦东支队","黄浦支队","徐汇支队","长宁支队","静安支队","普陀支队","虹口支队","杨浦支队","闵行支队","宝山支队","嘉定支队","松江支队","金山支队","崇明支队"]
+ zhiNameData = ["浦东支队","黄浦支队","徐汇支队","长宁支队","静安支队","普陀支队","虹口支队","杨浦支队","闵行支队","宝山支队","嘉定支队","松江支队","金山支队","崇明支队"]
zhiNumData = [200,190,180,170,160,150,140,130,120,110,100,90,80,70]
+
/**
* @name: 气泡封装
* @test: test font