|
@@ -294,7 +294,7 @@
|
|
|
<div class="li">
|
|
<div class="li">
|
|
|
<img class="top" src="../images/bk.png" alt="">
|
|
<img class="top" src="../images/bk.png" alt="">
|
|
|
<h4>风险企业TOP5</h4>
|
|
<h4>风险企业TOP5</h4>
|
|
|
- <div id="chart6" style="width: 100%;height:230px;"></div>
|
|
|
|
|
|
|
+ <div id="chart6" style="width: 100%;height:300px;"></div>
|
|
|
<img class="bottom" src="../images/bk.png" alt="">
|
|
<img class="bottom" src="../images/bk.png" alt="">
|
|
|
</div>
|
|
</div>
|
|
|
<div class="li">
|
|
<div class="li">
|
|
@@ -321,7 +321,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
methods:{
|
|
methods:{
|
|
|
getData(){
|
|
getData(){
|
|
|
- this.$api.getChartData({type:'zf'}).then(res=>{
|
|
|
|
|
|
|
+ this.$api.getChartData({type:'pt'}).then(res=>{
|
|
|
this.data=res.data.data
|
|
this.data=res.data.data
|
|
|
var data=res.data.data;
|
|
var data=res.data.data;
|
|
|
let count=0;
|
|
let count=0;
|
|
@@ -601,20 +601,20 @@ export default {
|
|
|
backgroundColor:'rgba(0,0,0,0)',
|
|
backgroundColor:'rgba(0,0,0,0)',
|
|
|
color:color,
|
|
color:color,
|
|
|
tooltip: {trigger: 'axis',},
|
|
tooltip: {trigger: 'axis',},
|
|
|
- // legend: {
|
|
|
|
|
- // y:'bottom',
|
|
|
|
|
- // x:'left',
|
|
|
|
|
- // itemWidth:8,
|
|
|
|
|
- // itemHeight:8,
|
|
|
|
|
- // textStyle:{
|
|
|
|
|
- // color:'#8C8C8C',
|
|
|
|
|
- // },
|
|
|
|
|
- // data:['重大风险', '较大风险','一般风险','低风险']
|
|
|
|
|
- // },
|
|
|
|
|
|
|
+ legend: {
|
|
|
|
|
+ y:'bottom',
|
|
|
|
|
+ x:'left',
|
|
|
|
|
+ itemWidth:8,
|
|
|
|
|
+ itemHeight:8,
|
|
|
|
|
+ textStyle:{
|
|
|
|
|
+ color:'#8C8C8C',
|
|
|
|
|
+ },
|
|
|
|
|
+ data:['重大风险', '较大风险','一般风险','低风险']
|
|
|
|
|
+ },
|
|
|
grid: {
|
|
grid: {
|
|
|
left: '1%',
|
|
left: '1%',
|
|
|
right: '1%',
|
|
right: '1%',
|
|
|
- bottom: '10px',
|
|
|
|
|
|
|
+ bottom: '50px',
|
|
|
top:'10px',
|
|
top:'10px',
|
|
|
containLabel: true
|
|
containLabel: true
|
|
|
},
|
|
},
|
|
@@ -657,16 +657,16 @@ export default {
|
|
|
backgroundColor:'rgba(0,0,0,0)',
|
|
backgroundColor:'rgba(0,0,0,0)',
|
|
|
color:['#dc402c','#fcd865'],
|
|
color:['#dc402c','#fcd865'],
|
|
|
tooltip: {trigger: 'axis',},
|
|
tooltip: {trigger: 'axis',},
|
|
|
- // legend: {
|
|
|
|
|
- // y:'bottom',
|
|
|
|
|
- // x:'left',
|
|
|
|
|
- // itemWidth:8,
|
|
|
|
|
- // itemHeight:8,
|
|
|
|
|
- // textStyle:{
|
|
|
|
|
- // color:'#8C8C8C',
|
|
|
|
|
- // },
|
|
|
|
|
- // data:['重大风险', '较大风险','一般风险','低风险']
|
|
|
|
|
- // },
|
|
|
|
|
|
|
+ legend: {
|
|
|
|
|
+ y:'bottom',
|
|
|
|
|
+ x:'left',
|
|
|
|
|
+ itemWidth:8,
|
|
|
|
|
+ itemHeight:8,
|
|
|
|
|
+ textStyle:{
|
|
|
|
|
+ color:'#8C8C8C',
|
|
|
|
|
+ },
|
|
|
|
|
+ data:['重大隐患','一般隐患']
|
|
|
|
|
+ },
|
|
|
grid: {
|
|
grid: {
|
|
|
left: '1%',
|
|
left: '1%',
|
|
|
right: '1%',
|
|
right: '1%',
|