|
|
|
@ -133,7 +133,6 @@ export class HomeComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
let props = feature.properties; |
|
|
|
|
adcode = props.adcode |
|
|
|
|
// console.log(props)
|
|
|
|
|
let fillColor2 |
|
|
|
|
if(props.level == 'city'){ |
|
|
|
|
fillColor2 = null |
|
|
|
@ -183,26 +182,17 @@ export class HomeComponent implements OnInit {
|
|
|
|
|
this.map.setFitView(districtExplorer.getAllFeaturePolygons()); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
// this.chartQusj.setOption(this.chartQusjOption2);
|
|
|
|
|
// this.chartYadwlx.setOption(this.chartYadwlxOption2);
|
|
|
|
|
// if(sessionStorage.getItem("realName") == "上海总队"){
|
|
|
|
|
// this.chartYapyph.setOption(this.chartYapyphOption4);
|
|
|
|
|
// }else{
|
|
|
|
|
// this.chartYapyph.setOption(this.chartYapyphOption2);
|
|
|
|
|
// }
|
|
|
|
|
// this.chartYapyph.setOption(this.chartYapyphOption2);
|
|
|
|
|
// this.chartYalxtj.setOption(this.chartYalxtjOption2);
|
|
|
|
|
// console.log(props)
|
|
|
|
|
//同时设置地图中心点和缩放级别
|
|
|
|
|
// this.map.setZoomAndCenter(9.4, props.center);
|
|
|
|
|
|
|
|
|
|
// this.map.setBounds(areaNode.getBounds(), null, null, true);
|
|
|
|
|
// this.router.navigate([`/home/detail`],{queryParams:{'code':props.adcode,'level':props.level}})
|
|
|
|
|
// this.mapInit ()
|
|
|
|
|
|
|
|
|
|
// this.keyUnitNum = '666'
|
|
|
|
|
// this.dataNum = '456'
|
|
|
|
|
// this.planNum = '2,678'
|
|
|
|
|
this.planState.setOption(this.planStateOptionsZhong); |
|
|
|
|
this.chartDwsjcj.setOption(this.chartDwsjcjOptionsZhong); |
|
|
|
|
this.chartZdgzqy.setOption(this.chartZdgzqyOptionsZhong); |
|
|
|
|
this.planNum = ["0","0","3","1","6","5"] |
|
|
|
|
this.keyUnitNum = 666 |
|
|
|
|
this.dataGetNum = 456 |
|
|
|
|
|
|
|
|
|
this.threePlanNum = "867" |
|
|
|
|
this.twoPlanNum = "485" |
|
|
|
|
this.cardPlanNum = "756" |
|
|
|
|
this.otherPlanNum = "658" |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
districtExplorer.on('outsideClick', (e) => { |
|
|
|
@ -255,84 +245,126 @@ export class HomeComponent implements OnInit {
|
|
|
|
|
// 更新地图视野以适合区划面
|
|
|
|
|
this.map.setFitView(districtExplorer.getAllFeaturePolygons()); |
|
|
|
|
}); |
|
|
|
|
// this.chartQusj.setOption(this.chartQusjOption);
|
|
|
|
|
// this.chartYadwlx.setOption(this.chartYadwlxOption);
|
|
|
|
|
// if(sessionStorage.getItem("realName") == "上海总队"){
|
|
|
|
|
// this.chartYapyph.setOption(this.chartYapyphOption3);
|
|
|
|
|
// }else{
|
|
|
|
|
// this.chartYapyph.setOption(this.chartYapyphOption);
|
|
|
|
|
// }
|
|
|
|
|
// // this.chartYapyph.setOption(this.chartYapyphOption);
|
|
|
|
|
|
|
|
|
|
// this.chartYalxtj.setOption(this.chartYalxtjOption);
|
|
|
|
|
// this.keyUnitNum = '8,036'
|
|
|
|
|
// this.dataNum = '6,578'
|
|
|
|
|
// this.planNum = '22,678'
|
|
|
|
|
this.planState.setOption(this.planStateOptionsZhi); |
|
|
|
|
this.chartDwsjcj.setOption(this.chartDwsjcjOptionsZhi); |
|
|
|
|
this.chartZdgzqy.setOption(this.chartZdgzqyOptionsZhi); |
|
|
|
|
this.planNum = ["0","2","2","6","7","8"] |
|
|
|
|
this.keyUnitNum = 8036 |
|
|
|
|
this.dataGetNum = 6578 |
|
|
|
|
|
|
|
|
|
this.threePlanNum = "4374" |
|
|
|
|
this.twoPlanNum = "9693" |
|
|
|
|
this.cardPlanNum = "6403" |
|
|
|
|
this.otherPlanNum = "2208" |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
planNum = ["0","2","2","6","7","8"] |
|
|
|
|
keyUnitNum = 8036 |
|
|
|
|
dataGetNum = 6578 |
|
|
|
|
|
|
|
|
|
threePlanNum = "4374" |
|
|
|
|
twoPlanNum = "9693" |
|
|
|
|
cardPlanNum = "6403" |
|
|
|
|
otherPlanNum = "2208" |
|
|
|
|
|
|
|
|
|
ngAfterViewInit(): void { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
planState |
|
|
|
|
planStateOptionsZhi = { |
|
|
|
|
title: { |
|
|
|
|
text: '预案状态统计(7005份)', |
|
|
|
|
left: 'center', |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
tooltip: { |
|
|
|
|
trigger: 'item', |
|
|
|
|
formatter: '{b} : {c} ({d}%)' |
|
|
|
|
}, |
|
|
|
|
series: [ |
|
|
|
|
{ |
|
|
|
|
name: '访问来源', |
|
|
|
|
type: 'pie', |
|
|
|
|
radius: '65%', |
|
|
|
|
center: ['50%', '67%'], |
|
|
|
|
label:{ |
|
|
|
|
show:true, |
|
|
|
|
formatter:'{b}\n{d|{c}份}', |
|
|
|
|
rich: { |
|
|
|
|
d: { |
|
|
|
|
align: 'center', |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
data: [ |
|
|
|
|
{value: 1585, name: '预案新增'}, |
|
|
|
|
{value: 2000, name: '预案审核通过',itemStyle:{color:'#02A7F0'}}, |
|
|
|
|
{value: 2600, name: '预案编制'}, |
|
|
|
|
{value: 1500, name: '预案审核退回'}, |
|
|
|
|
{value: 1800, name: '预案审核中'} |
|
|
|
|
], |
|
|
|
|
emphasis: { |
|
|
|
|
itemStyle: { |
|
|
|
|
shadowBlur: 10, |
|
|
|
|
shadowOffsetX: 0, |
|
|
|
|
shadowColor: 'rgba(0, 0, 0, 0.5)' |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}; |
|
|
|
|
planStateOptionsZhong = { |
|
|
|
|
title: { |
|
|
|
|
text: '预案状态统计(895份)', |
|
|
|
|
left: 'center', |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
tooltip: { |
|
|
|
|
trigger: 'item', |
|
|
|
|
formatter: '{b} : {c} ({d}%)' |
|
|
|
|
}, |
|
|
|
|
series: [ |
|
|
|
|
{ |
|
|
|
|
name: '访问来源', |
|
|
|
|
type: 'pie', |
|
|
|
|
radius: '65%', |
|
|
|
|
center: ['50%', '67%'], |
|
|
|
|
label:{ |
|
|
|
|
show:true, |
|
|
|
|
formatter:'{b}\n{d|{c}份}', |
|
|
|
|
rich: { |
|
|
|
|
d: { |
|
|
|
|
align: 'center', |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
data: [ |
|
|
|
|
{value: 200, name: '预案新增'}, |
|
|
|
|
{value: 234, name: '预案审核通过',itemStyle:{color:'#02A7F0'}}, |
|
|
|
|
{value: 165, name: '预案编制'}, |
|
|
|
|
{value: 189, name: '预案审核退回'}, |
|
|
|
|
{value: 211, name: '预案审核中'} |
|
|
|
|
], |
|
|
|
|
emphasis: { |
|
|
|
|
itemStyle: { |
|
|
|
|
shadowBlur: 10, |
|
|
|
|
shadowOffsetX: 0, |
|
|
|
|
shadowColor: 'rgba(0, 0, 0, 0.5)' |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}; |
|
|
|
|
//预案状态统计
|
|
|
|
|
unitType () { |
|
|
|
|
this.planState = echarts.init(document.getElementById('chartHynyxf'), 'skinUpp'); |
|
|
|
|
var options={ |
|
|
|
|
title: { |
|
|
|
|
text: '预案状态统计(7005份)', |
|
|
|
|
left: 'center', |
|
|
|
|
// top:-3
|
|
|
|
|
// textStyle:{
|
|
|
|
|
// fontSize:38
|
|
|
|
|
// }
|
|
|
|
|
}, |
|
|
|
|
tooltip: { |
|
|
|
|
trigger: 'item', |
|
|
|
|
formatter: '{b} : {c} ({d}%)' |
|
|
|
|
}, |
|
|
|
|
// legend: {
|
|
|
|
|
// orient: 'vertical',
|
|
|
|
|
// top:20,
|
|
|
|
|
// data: ['预案新增', '预案审核通过', '预案编制', '预案审核退回', '预案审核中']
|
|
|
|
|
// },
|
|
|
|
|
series: [ |
|
|
|
|
{ |
|
|
|
|
name: '访问来源', |
|
|
|
|
type: 'pie', |
|
|
|
|
radius: '65%', |
|
|
|
|
center: ['50%', '67%'], |
|
|
|
|
label:{ |
|
|
|
|
show:true, |
|
|
|
|
formatter:'{b}\n{d|{c}份}', |
|
|
|
|
rich: { |
|
|
|
|
d: { |
|
|
|
|
align: 'center', |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
data: [ |
|
|
|
|
{value: 1585, name: '预案新增'}, |
|
|
|
|
{value: 2000, name: '预案审核通过',itemStyle:{color:'#02A7F0'}}, |
|
|
|
|
{value: 2600, name: '预案编制'}, |
|
|
|
|
{value: 1500, name: '预案审核退回'}, |
|
|
|
|
{value: 1800, name: '预案审核中'} |
|
|
|
|
], |
|
|
|
|
emphasis: { |
|
|
|
|
itemStyle: { |
|
|
|
|
shadowBlur: 10, |
|
|
|
|
shadowOffsetX: 0, |
|
|
|
|
shadowColor: 'rgba(0, 0, 0, 0.5)' |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}; |
|
|
|
|
this.planState.setOption(options); |
|
|
|
|
this.planState.setOption(this.planStateOptionsZhi); |
|
|
|
|
this.planState.on("click",(params) => { |
|
|
|
|
this.router.navigate(['/statisticanalysis/statePageOne']) |
|
|
|
|
}) |
|
|
|
@ -340,110 +372,202 @@ export class HomeComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
//新增、删除单位统计
|
|
|
|
|
chartDwsjcj |
|
|
|
|
unitData () { |
|
|
|
|
this.chartDwsjcj = echarts.init(document.getElementById('chartDwsjcj'), 'skinUpp'); |
|
|
|
|
var option = { |
|
|
|
|
color: ['#FB33C2', '#00CFF0', '#2C3DE0'], |
|
|
|
|
// 标题
|
|
|
|
|
title: { |
|
|
|
|
text: '新增、删除单位统计', |
|
|
|
|
left: 0, |
|
|
|
|
top: 0, |
|
|
|
|
}, |
|
|
|
|
grid: { |
|
|
|
|
left: 30, |
|
|
|
|
right: 0, |
|
|
|
|
}, |
|
|
|
|
//图例
|
|
|
|
|
legend: { |
|
|
|
|
top: 0, |
|
|
|
|
data: ['新增单位', '删除单位', ], |
|
|
|
|
icon: 'circle', |
|
|
|
|
itemGap: 20, |
|
|
|
|
}, |
|
|
|
|
//提示框
|
|
|
|
|
tooltip: { |
|
|
|
|
trigger: 'axis', |
|
|
|
|
}, |
|
|
|
|
// x轴
|
|
|
|
|
xAxis: { |
|
|
|
|
type: 'category', |
|
|
|
|
data: [], |
|
|
|
|
axisLabel: { |
|
|
|
|
interval: 0, |
|
|
|
|
|
|
|
|
|
formatter:function(value){ |
|
|
|
|
var ret = "";//拼接加\n返回的类目项
|
|
|
|
|
var maxLength = 5;//每项显示文字个数
|
|
|
|
|
var valLength = value.length;//X轴类目项的文字个数
|
|
|
|
|
var rowN = Math.ceil(valLength / maxLength); //类目项需要换行的行数
|
|
|
|
|
if (rowN > 1) { //如果类目项的文字大于3,
|
|
|
|
|
for (var i = 0; i < rowN; i++) { |
|
|
|
|
var temp = "";//每次截取的字符串
|
|
|
|
|
var start = i * maxLength;//开始截取的位置
|
|
|
|
|
var end = start + maxLength;//结束截取的位置
|
|
|
|
|
//这里也可以加一个是否是最后一行的判断,但是不加也没有影响,那就不加吧
|
|
|
|
|
temp = value.substring(start, end) + "\n"; |
|
|
|
|
ret += temp; |
|
|
|
|
} //凭借最终的字符串
|
|
|
|
|
return ret; |
|
|
|
|
}else { |
|
|
|
|
return value; |
|
|
|
|
} |
|
|
|
|
} //function
|
|
|
|
|
chartDwsjcjOptionsZhi = { |
|
|
|
|
color: ['#FB33C2', '#00CFF0', '#2C3DE0'], |
|
|
|
|
// 标题
|
|
|
|
|
title: { |
|
|
|
|
text: '新增、删除单位统计', |
|
|
|
|
left: 0, |
|
|
|
|
top: 0, |
|
|
|
|
}, |
|
|
|
|
grid: { |
|
|
|
|
left: 30, |
|
|
|
|
right: 0, |
|
|
|
|
}, |
|
|
|
|
//图例
|
|
|
|
|
legend: { |
|
|
|
|
top: 0, |
|
|
|
|
data: ['新增单位', '删除单位', ], |
|
|
|
|
icon: 'circle', |
|
|
|
|
itemGap: 20, |
|
|
|
|
}, |
|
|
|
|
//提示框
|
|
|
|
|
tooltip: { |
|
|
|
|
trigger: 'axis', |
|
|
|
|
}, |
|
|
|
|
// x轴
|
|
|
|
|
xAxis: { |
|
|
|
|
type: 'category', |
|
|
|
|
data: [], |
|
|
|
|
axisLabel: { |
|
|
|
|
interval: 0, |
|
|
|
|
|
|
|
|
|
formatter:function(value){ |
|
|
|
|
var ret = "";//拼接加\n返回的类目项
|
|
|
|
|
var maxLength = 5;//每项显示文字个数
|
|
|
|
|
var valLength = value.length;//X轴类目项的文字个数
|
|
|
|
|
var rowN = Math.ceil(valLength / maxLength); //类目项需要换行的行数
|
|
|
|
|
if (rowN > 1) { //如果类目项的文字大于3,
|
|
|
|
|
for (var i = 0; i < rowN; i++) { |
|
|
|
|
var temp = "";//每次截取的字符串
|
|
|
|
|
var start = i * maxLength;//开始截取的位置
|
|
|
|
|
var end = start + maxLength;//结束截取的位置
|
|
|
|
|
//这里也可以加一个是否是最后一行的判断,但是不加也没有影响,那就不加吧
|
|
|
|
|
temp = value.substring(start, end) + "\n"; |
|
|
|
|
ret += temp; |
|
|
|
|
} //凭借最终的字符串
|
|
|
|
|
return ret; |
|
|
|
|
}else { |
|
|
|
|
return value; |
|
|
|
|
} |
|
|
|
|
} //function
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
// y轴
|
|
|
|
|
yAxis: { |
|
|
|
|
type: 'value', |
|
|
|
|
splitLine: { |
|
|
|
|
show: true, |
|
|
|
|
lineStyle: { |
|
|
|
|
color: 'rgba(255,255,255,.4)' |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
// y轴
|
|
|
|
|
yAxis: { |
|
|
|
|
type: 'value', |
|
|
|
|
splitLine: { |
|
|
|
|
show: true, |
|
|
|
|
lineStyle: { |
|
|
|
|
color: 'rgba(255,255,255,.4)' |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
// 数据
|
|
|
|
|
series: [ |
|
|
|
|
{ |
|
|
|
|
name: '新增单位', |
|
|
|
|
type: 'bar', |
|
|
|
|
data: [320, 302, 301, 234, 390, 330, 320, 390, 330, 320, 390, 301, 234, 390, 330, 320, 390, ], |
|
|
|
|
label: { |
|
|
|
|
show: false, |
|
|
|
|
position: "top", |
|
|
|
|
formatter: '{c}', |
|
|
|
|
color: "#fff", |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
// 数据
|
|
|
|
|
series: [ |
|
|
|
|
{ |
|
|
|
|
name: '新增单位', |
|
|
|
|
type: 'bar', |
|
|
|
|
data: [320, 302, 301, 234, 390, 330, 320, 390, 330, 320, 390, 301, 234, 390, 330, 320, 390, ], |
|
|
|
|
label: { |
|
|
|
|
show: false, |
|
|
|
|
position: "top", |
|
|
|
|
formatter: '{c}', |
|
|
|
|
color: "#fff", |
|
|
|
|
itemStyle: { |
|
|
|
|
color: { |
|
|
|
|
type: 'linear', |
|
|
|
|
x: 0, |
|
|
|
|
y: 0, |
|
|
|
|
x2: 0, |
|
|
|
|
y2: 1, |
|
|
|
|
colorStops: [{ |
|
|
|
|
offset: 0, |
|
|
|
|
color: 'rgba(254,51,194,1)' // 0% 处的颜色
|
|
|
|
|
}, { |
|
|
|
|
offset: 1, |
|
|
|
|
color: 'rgba(254,51,194,.5)' // 100% 处的颜色
|
|
|
|
|
}], |
|
|
|
|
global: false // 缺省为 false
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, { |
|
|
|
|
name: '删除单位', |
|
|
|
|
type: 'bar', |
|
|
|
|
data: [300, 202, 101, 134, 290, 430, 220, 490, 430, 490, 430, 202, 101, 134, 290, 430, 220, ], |
|
|
|
|
label: { |
|
|
|
|
show: false, |
|
|
|
|
position: "top", |
|
|
|
|
formatter: '{c}', |
|
|
|
|
color: "#fff", |
|
|
|
|
}, |
|
|
|
|
itemStyle: { |
|
|
|
|
color: { |
|
|
|
|
type: 'linear', |
|
|
|
|
x: 0, |
|
|
|
|
y: 0, |
|
|
|
|
x2: 0, |
|
|
|
|
y2: 1, |
|
|
|
|
colorStops: [{ |
|
|
|
|
offset: 0, |
|
|
|
|
color: 'rgba(0,220,254,1)' // 0% 处的颜色
|
|
|
|
|
}, { |
|
|
|
|
offset: 1, |
|
|
|
|
color: 'rgba(1,104,191,1)' // 100% 处的颜色
|
|
|
|
|
}], |
|
|
|
|
globalCoord: false // 缺省为 false
|
|
|
|
|
}, |
|
|
|
|
itemStyle: { |
|
|
|
|
color: { |
|
|
|
|
type: 'linear', |
|
|
|
|
x: 0, |
|
|
|
|
y: 0, |
|
|
|
|
x2: 0, |
|
|
|
|
y2: 1, |
|
|
|
|
colorStops: [{ |
|
|
|
|
offset: 0, |
|
|
|
|
color: 'rgba(254,51,194,1)' // 0% 处的颜色
|
|
|
|
|
}, { |
|
|
|
|
offset: 1, |
|
|
|
|
color: 'rgba(254,51,194,.5)' // 100% 处的颜色
|
|
|
|
|
}], |
|
|
|
|
global: false // 缺省为 false
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
}; |
|
|
|
|
chartDwsjcjOptionsZhong = { |
|
|
|
|
color: ['#FB33C2', '#00CFF0', '#2C3DE0'], |
|
|
|
|
// 标题
|
|
|
|
|
title: { |
|
|
|
|
text: '新增、删除单位统计', |
|
|
|
|
left: 0, |
|
|
|
|
top: 0, |
|
|
|
|
}, |
|
|
|
|
grid: { |
|
|
|
|
left: 30, |
|
|
|
|
right: 0, |
|
|
|
|
}, |
|
|
|
|
//图例
|
|
|
|
|
legend: { |
|
|
|
|
top: 0, |
|
|
|
|
data: ['新增单位', '删除单位', ], |
|
|
|
|
icon: 'circle', |
|
|
|
|
itemGap: 20, |
|
|
|
|
}, |
|
|
|
|
//提示框
|
|
|
|
|
tooltip: { |
|
|
|
|
trigger: 'axis', |
|
|
|
|
}, |
|
|
|
|
// x轴
|
|
|
|
|
xAxis: { |
|
|
|
|
type: 'category', |
|
|
|
|
data: [], |
|
|
|
|
axisLabel: { |
|
|
|
|
interval: 0, |
|
|
|
|
|
|
|
|
|
formatter:function(value){ |
|
|
|
|
var ret = "";//拼接加\n返回的类目项
|
|
|
|
|
var maxLength = 5;//每项显示文字个数
|
|
|
|
|
var valLength = value.length;//X轴类目项的文字个数
|
|
|
|
|
var rowN = Math.ceil(valLength / maxLength); //类目项需要换行的行数
|
|
|
|
|
if (rowN > 1) { //如果类目项的文字大于3,
|
|
|
|
|
for (var i = 0; i < rowN; i++) { |
|
|
|
|
var temp = "";//每次截取的字符串
|
|
|
|
|
var start = i * maxLength;//开始截取的位置
|
|
|
|
|
var end = start + maxLength;//结束截取的位置
|
|
|
|
|
//这里也可以加一个是否是最后一行的判断,但是不加也没有影响,那就不加吧
|
|
|
|
|
temp = value.substring(start, end) + "\n"; |
|
|
|
|
ret += temp; |
|
|
|
|
} //凭借最终的字符串
|
|
|
|
|
return ret; |
|
|
|
|
}else { |
|
|
|
|
return value; |
|
|
|
|
} |
|
|
|
|
}, { |
|
|
|
|
name: '删除单位', |
|
|
|
|
type: 'bar', |
|
|
|
|
data: [300, 202, 101, 134, 290, 430, 220, 490, 430, 490, 430, 202, 101, 134, 290, 430, 220, ], |
|
|
|
|
label: { |
|
|
|
|
show: false, |
|
|
|
|
position: "top", |
|
|
|
|
formatter: '{c}', |
|
|
|
|
color: "#fff", |
|
|
|
|
}, |
|
|
|
|
itemStyle: { |
|
|
|
|
} //function
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
// y轴
|
|
|
|
|
yAxis: { |
|
|
|
|
type: 'value', |
|
|
|
|
splitLine: { |
|
|
|
|
show: true, |
|
|
|
|
lineStyle: { |
|
|
|
|
color: 'rgba(255,255,255,.4)' |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
// 数据
|
|
|
|
|
series: [ |
|
|
|
|
{ |
|
|
|
|
name: '新增单位', |
|
|
|
|
type: 'bar', |
|
|
|
|
data: [88, 45, 95, 105, 75, 89, 69, 110, 96, 90, 80, 78, 94, 102, 94, 86, 77, ], |
|
|
|
|
label: { |
|
|
|
|
show: false, |
|
|
|
|
position: "top", |
|
|
|
|
formatter: '{c}', |
|
|
|
|
color: "#fff", |
|
|
|
|
}, |
|
|
|
|
itemStyle: { |
|
|
|
|
color: { |
|
|
|
|
type: 'linear', |
|
|
|
|
x: 0, |
|
|
|
@ -452,23 +576,47 @@ export class HomeComponent implements OnInit {
|
|
|
|
|
y2: 1, |
|
|
|
|
colorStops: [{ |
|
|
|
|
offset: 0, |
|
|
|
|
color: 'rgba(0,220,254,1)' // 0% 处的颜色
|
|
|
|
|
color: 'rgba(254,51,194,1)' // 0% 处的颜色
|
|
|
|
|
}, { |
|
|
|
|
offset: 1, |
|
|
|
|
color: 'rgba(1,104,191,1)' // 100% 处的颜色
|
|
|
|
|
color: 'rgba(254,51,194,.5)' // 100% 处的颜色
|
|
|
|
|
}], |
|
|
|
|
globalCoord: false // 缺省为 false
|
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
global: false // 缺省为 false
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
}; |
|
|
|
|
if(sessionStorage.getItem("realName") == "上海总队"){ |
|
|
|
|
option.xAxis.data = ['上海总队','浦东支队','黄浦支队','徐汇支队','长宁支队','静安支队','普陀支队','虹口支队','杨浦支队','闵行支队','宝山支队','青浦支队','松江支队','金山支队','崇明支队','滨海支队'] |
|
|
|
|
}else{ |
|
|
|
|
option.xAxis.data = ['渝北区消防救援支队', '黔江区消防救援支队', '大渡口区消防救援支队', '南岸区消防救援支队', '北培区消防救援支队', '渝中区消防救援支队', '万州区消防救援支队', '涪陵区消防救援支队', '江北区消防救援支队', '九龙仓区消防救援支队', '沙坪坝区消防救援支队', '九龙坡区消防救援支队', '长寿区消防救援支队', '巴南区消防救援支队', '江津区消防救援支队', '合川区消防救援支队', '南川区消防救援支队'] |
|
|
|
|
} |
|
|
|
|
this.chartDwsjcj.setOption(option); |
|
|
|
|
}, { |
|
|
|
|
name: '删除单位', |
|
|
|
|
type: 'bar', |
|
|
|
|
data: [35, 33, 27, 30, 35, 36, 28, 32, 36, 22, 19, 28, 34, 36, 37, 30, 29, ], |
|
|
|
|
label: { |
|
|
|
|
show: false, |
|
|
|
|
position: "top", |
|
|
|
|
formatter: '{c}', |
|
|
|
|
color: "#fff", |
|
|
|
|
}, |
|
|
|
|
itemStyle: { |
|
|
|
|
color: { |
|
|
|
|
type: 'linear', |
|
|
|
|
x: 0, |
|
|
|
|
y: 0, |
|
|
|
|
x2: 0, |
|
|
|
|
y2: 1, |
|
|
|
|
colorStops: [{ |
|
|
|
|
offset: 0, |
|
|
|
|
color: 'rgba(0,220,254,1)' // 0% 处的颜色
|
|
|
|
|
}, { |
|
|
|
|
offset: 1, |
|
|
|
|
color: 'rgba(1,104,191,1)' // 100% 处的颜色
|
|
|
|
|
}], |
|
|
|
|
globalCoord: false // 缺省为 false
|
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
}; |
|
|
|
|
unitData () { |
|
|
|
|
this.chartDwsjcj = echarts.init(document.getElementById('chartDwsjcj'), 'skinUpp'); |
|
|
|
|
this.chartDwsjcj.setOption(this.chartDwsjcjOptionsZhi); |
|
|
|
|
this.chartDwsjcj.on("click",(params) => { |
|
|
|
|
if(params.seriesName == "新增单位"){ |
|
|
|
|
this.router.navigate(['/statisticanalysis/addUnit_one']) |
|
|
|
@ -479,73 +627,137 @@ export class HomeComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
chartZdgzqy |
|
|
|
|
//建筑类型统计
|
|
|
|
|
keyUnit () { |
|
|
|
|
this.chartZdgzqy = echarts.init(document.getElementById('chartZdgzqy'), 'skinUpp'); |
|
|
|
|
let options={ |
|
|
|
|
title: { |
|
|
|
|
text: '建筑类型统计(8900家)', |
|
|
|
|
left: 'center', |
|
|
|
|
top: -3, |
|
|
|
|
// textStyle: {
|
|
|
|
|
// fontSize:31
|
|
|
|
|
// }
|
|
|
|
|
}, |
|
|
|
|
tooltip: { |
|
|
|
|
trigger: 'item', |
|
|
|
|
formatter: '{b} : {c}家 ({d}%)' |
|
|
|
|
}, |
|
|
|
|
// legend: {
|
|
|
|
|
// orient: 'vertical',
|
|
|
|
|
// right: 150,
|
|
|
|
|
// top:80,
|
|
|
|
|
// data: ['高层', '地下', '轨道交通', '化工生产', '储罐类' , '厂房','古建筑', '商市场', '医院', '学校', '宾馆' , '娱乐场所','餐饮业', '影剧院', '展览建筑' , '隧道']
|
|
|
|
|
// },
|
|
|
|
|
series: [ |
|
|
|
|
{ |
|
|
|
|
name: '访问来源', |
|
|
|
|
type: 'pie', |
|
|
|
|
radius: '70%', |
|
|
|
|
center: ['50%', '60%'], |
|
|
|
|
label:{ |
|
|
|
|
show:true, |
|
|
|
|
// fontSize:13,
|
|
|
|
|
formatter:'{b}{c}家', |
|
|
|
|
rich: { |
|
|
|
|
d: { |
|
|
|
|
align: 'center', |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
chartZdgzqyOptionsZhi = { |
|
|
|
|
title: { |
|
|
|
|
text: '建筑类型统计(8900家)', |
|
|
|
|
left: 'center', |
|
|
|
|
top: -3, |
|
|
|
|
// textStyle: {
|
|
|
|
|
// fontSize:31
|
|
|
|
|
// }
|
|
|
|
|
}, |
|
|
|
|
tooltip: { |
|
|
|
|
trigger: 'item', |
|
|
|
|
formatter: '{b} : {c}家 ({d}%)' |
|
|
|
|
}, |
|
|
|
|
// legend: {
|
|
|
|
|
// orient: 'vertical',
|
|
|
|
|
// right: 150,
|
|
|
|
|
// top:80,
|
|
|
|
|
// data: ['高层', '地下', '轨道交通', '化工生产', '储罐类' , '厂房','古建筑', '商市场', '医院', '学校', '宾馆' , '娱乐场所','餐饮业', '影剧院', '展览建筑' , '隧道']
|
|
|
|
|
// },
|
|
|
|
|
series: [ |
|
|
|
|
{ |
|
|
|
|
name: '访问来源', |
|
|
|
|
type: 'pie', |
|
|
|
|
radius: '70%', |
|
|
|
|
center: ['50%', '60%'], |
|
|
|
|
label:{ |
|
|
|
|
show:true, |
|
|
|
|
// fontSize:13,
|
|
|
|
|
formatter:'{b}{c}家', |
|
|
|
|
rich: { |
|
|
|
|
d: { |
|
|
|
|
align: 'center', |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
data: [ |
|
|
|
|
{value: 500, name: '高层'}, |
|
|
|
|
{value: 800, name: '地下'}, |
|
|
|
|
{value: 900, name: '轨道交通'}, |
|
|
|
|
{value: 800, name: '化工生产'}, |
|
|
|
|
{value: 1200, name: '储罐类'}, |
|
|
|
|
{value: 1500, name: '厂房'}, |
|
|
|
|
{value: 1400, name: '古建筑'}, |
|
|
|
|
{value: 600, name: '商市场'}, |
|
|
|
|
{value: 568, name: '医院'}, |
|
|
|
|
{value: 888, name: '学校'}, |
|
|
|
|
{value: 485, name: '宾馆'}, |
|
|
|
|
{value: 966, name: '娱乐场所'}, |
|
|
|
|
{value: 789, name: '餐饮业'}, |
|
|
|
|
{value: 500, name: '影剧院'}, |
|
|
|
|
{value: 1025, name: '展览建筑'}, |
|
|
|
|
{value: 600, name: '隧道'} |
|
|
|
|
], |
|
|
|
|
emphasis: { |
|
|
|
|
itemStyle: { |
|
|
|
|
shadowBlur: 10, |
|
|
|
|
shadowOffsetX: 0, |
|
|
|
|
shadowColor: 'rgba(0, 0, 0, 0.5)' |
|
|
|
|
}, |
|
|
|
|
data: [ |
|
|
|
|
{value: 500, name: '高层'}, |
|
|
|
|
{value: 800, name: '地下'}, |
|
|
|
|
{value: 900, name: '轨道交通'}, |
|
|
|
|
{value: 800, name: '化工生产'}, |
|
|
|
|
{value: 1200, name: '储罐类'}, |
|
|
|
|
{value: 1500, name: '厂房'}, |
|
|
|
|
{value: 1400, name: '古建筑'}, |
|
|
|
|
{value: 600, name: '商市场'}, |
|
|
|
|
{value: 568, name: '医院'}, |
|
|
|
|
{value: 888, name: '学校'}, |
|
|
|
|
{value: 485, name: '宾馆'}, |
|
|
|
|
{value: 966, name: '娱乐场所'}, |
|
|
|
|
{value: 789, name: '餐饮业'}, |
|
|
|
|
{value: 500, name: '影剧院'}, |
|
|
|
|
{value: 1025, name: '展览建筑'}, |
|
|
|
|
{value: 600, name: '隧道'} |
|
|
|
|
], |
|
|
|
|
emphasis: { |
|
|
|
|
itemStyle: { |
|
|
|
|
shadowBlur: 10, |
|
|
|
|
shadowOffsetX: 0, |
|
|
|
|
shadowColor: 'rgba(0, 0, 0, 0.5)' |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}; |
|
|
|
|
chartZdgzqyOptionsZhong = { |
|
|
|
|
title: { |
|
|
|
|
text: '建筑类型统计(1015家)', |
|
|
|
|
left: 'center', |
|
|
|
|
top: -3, |
|
|
|
|
// textStyle: {
|
|
|
|
|
// fontSize:31
|
|
|
|
|
// }
|
|
|
|
|
}, |
|
|
|
|
tooltip: { |
|
|
|
|
trigger: 'item', |
|
|
|
|
formatter: '{b} : {c}家 ({d}%)' |
|
|
|
|
}, |
|
|
|
|
// legend: {
|
|
|
|
|
// orient: 'vertical',
|
|
|
|
|
// right: 150,
|
|
|
|
|
// top:80,
|
|
|
|
|
// data: ['高层', '地下', '轨道交通', '化工生产', '储罐类' , '厂房','古建筑', '商市场', '医院', '学校', '宾馆' , '娱乐场所','餐饮业', '影剧院', '展览建筑' , '隧道']
|
|
|
|
|
// },
|
|
|
|
|
series: [ |
|
|
|
|
{ |
|
|
|
|
name: '访问来源', |
|
|
|
|
type: 'pie', |
|
|
|
|
radius: '70%', |
|
|
|
|
center: ['50%', '60%'], |
|
|
|
|
label:{ |
|
|
|
|
show:true, |
|
|
|
|
// fontSize:13,
|
|
|
|
|
formatter:'{b}{c}家', |
|
|
|
|
rich: { |
|
|
|
|
d: { |
|
|
|
|
align: 'center', |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
data: [ |
|
|
|
|
{value: 123, name: '高层'}, |
|
|
|
|
{value: 105, name: '地下'}, |
|
|
|
|
{value: 95, name: '轨道交通'}, |
|
|
|
|
{value: 96, name: '化工生产'}, |
|
|
|
|
{value: 89, name: '储罐类'}, |
|
|
|
|
{value: 111, name: '厂房'}, |
|
|
|
|
{value: 95, name: '古建筑'}, |
|
|
|
|
{value: 94, name: '商市场'}, |
|
|
|
|
{value: 85, name: '医院'}, |
|
|
|
|
{value: 83, name: '学校'}, |
|
|
|
|
{value: 81, name: '宾馆'}, |
|
|
|
|
{value: 79, name: '娱乐场所'}, |
|
|
|
|
{value: 82, name: '餐饮业'}, |
|
|
|
|
{value: 97, name: '影剧院'}, |
|
|
|
|
{value: 82, name: '展览建筑'}, |
|
|
|
|
{value: 72, name: '隧道'} |
|
|
|
|
], |
|
|
|
|
emphasis: { |
|
|
|
|
itemStyle: { |
|
|
|
|
shadowBlur: 10, |
|
|
|
|
shadowOffsetX: 0, |
|
|
|
|
shadowColor: 'rgba(0, 0, 0, 0.5)' |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}; |
|
|
|
|
this.chartZdgzqy.setOption(options); |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}; |
|
|
|
|
//建筑类型统计
|
|
|
|
|
keyUnit () { |
|
|
|
|
this.chartZdgzqy = echarts.init(document.getElementById('chartZdgzqy'), 'skinUpp'); |
|
|
|
|
|
|
|
|
|
this.chartZdgzqy.setOption(this.chartZdgzqyOptionsZhi); |
|
|
|
|
this.chartZdgzqy.on("click",(params) => { |
|
|
|
|
this.router.navigate(['/statisticanalysis/buildingType_one']) |
|
|
|
|
}) |
|
|
|
|