|
@@ -705,13 +705,86 @@ let app = new Vue({
|
|
|
if (param.name == '晋能控股') {
|
|
|
that.showTip2 = true
|
|
|
setTimeout(() => {
|
|
|
- that.initChartR4()
|
|
|
- that.initChartR5()
|
|
|
+ // that.initChartR4()
|
|
|
+ // that.initChartR5()
|
|
|
+ that.initChartL2b()
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
myChart.setOption(option);
|
|
|
},
|
|
|
+ initChartL2b () {
|
|
|
+ let myChart = echarts.init(this.$refs['echartL2b'])
|
|
|
+ var value = 0.37;
|
|
|
+ var data = [value];
|
|
|
+ let option = {
|
|
|
+ backgroundColor: 'transparent',
|
|
|
+ title: [
|
|
|
+ {
|
|
|
+ // text: '总额度285.48亿',
|
|
|
+ // formatter: `<span>总额度</span>285.48亿`,
|
|
|
+ x: '37%',
|
|
|
+ y: '80%',
|
|
|
+ textStyle: {
|
|
|
+ fontSize: 24,
|
|
|
+ fontWeight: 'bold',
|
|
|
+ color: '#2CB7E0',
|
|
|
+ lineHeight: 16,
|
|
|
+ textAlign: 'center',
|
|
|
+ },
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ series: [
|
|
|
+ {
|
|
|
+ type: 'liquidFill',
|
|
|
+ radius: '70%',
|
|
|
+ center: ['50%', '40%'],
|
|
|
+ color: [
|
|
|
+ {
|
|
|
+ type: 'linear',
|
|
|
+ x: 0,
|
|
|
+ y: 0,
|
|
|
+ x2: 0,
|
|
|
+ y2: 1,
|
|
|
+ colorStops: [
|
|
|
+ {
|
|
|
+ offset: 0,
|
|
|
+ color: '#446bf5',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ offset: 1,
|
|
|
+ color: '#2ca3e2',
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ globalCoord: false,
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ data: [value, value], // data个数代表波浪数
|
|
|
+ backgroundStyle: {
|
|
|
+ borderWidth: 1,
|
|
|
+ color: 'RGBA(51, 66, 127, 0.7)',
|
|
|
+ },
|
|
|
+ label: {
|
|
|
+ normal: {
|
|
|
+ textStyle: {
|
|
|
+ fontSize: 30,
|
|
|
+ color: '#fff',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ },
|
|
|
+ outline: {
|
|
|
+ // show: false
|
|
|
+ borderDistance: 0,
|
|
|
+ itemStyle: {
|
|
|
+ borderWidth: 2,
|
|
|
+ borderColor: 'transparent',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ }
|
|
|
+ myChart.setOption(option)
|
|
|
+ },
|
|
|
initChartL2 () {
|
|
|
let myChart = echarts.init(this.$refs['echartL2'])
|
|
|
var value = 0.37;
|
|
@@ -720,7 +793,8 @@ let app = new Vue({
|
|
|
backgroundColor: 'transparent',
|
|
|
title: [
|
|
|
{
|
|
|
- text: '285.48亿',
|
|
|
+ // text: '总额度285.48亿',
|
|
|
+ // formatter: `<span>总额度</span>285.48亿`,
|
|
|
x: '37%',
|
|
|
y: '80%',
|
|
|
textStyle: {
|
|
@@ -1405,7 +1479,7 @@ let app = new Vue({
|
|
|
let data = [
|
|
|
{ value: [665.81, 549], name: '主业' },
|
|
|
{ value: [65.17, 84], name: '辅业' },
|
|
|
- { value: [80.94, 164], name: '技改' }
|
|
|
+ { value: [423.36, 164], name: '技改' }
|
|
|
]
|
|
|
let count = 0
|
|
|
data.forEach(item => {
|
|
@@ -1414,7 +1488,7 @@ let app = new Vue({
|
|
|
let myChart = echarts.init(this.$refs['echartR1'])
|
|
|
let option = {
|
|
|
title: {
|
|
|
- text: '产业类别分析',
|
|
|
+ text: '主辅业计划占比',
|
|
|
x: 'center',
|
|
|
y: '87%',
|
|
|
textStyle: {
|
|
@@ -1427,7 +1501,7 @@ let app = new Vue({
|
|
|
// formatter: '{b}' + ':' + '{c}' + '<br/>' + '占比:' + '{d}%',
|
|
|
// position: ['-5%', '95%'],
|
|
|
formatter: function (params) {
|
|
|
- return '名称:' + params.name + '</br >' + '项目数量:' + params.value[1] + '个' + '</br >' + '投资金额:' + params.value[0] + '亿' + '</br >' + '占比:' + (params.value[0] / count * 100).toFixed(2) + '%'
|
|
|
+ return params.name + ',' + (params.value[0] / count * 100).toFixed(2) + '%' + '</br >' + params.value[1] + '个' + ',' + params.value[0] + '亿'
|
|
|
}
|
|
|
},
|
|
|
color: ['#6682f5', '#8ba2ff', '#69c0ff', '#43ede3'],
|
|
@@ -1484,7 +1558,7 @@ let app = new Vue({
|
|
|
let myChart = echarts.init(this.$refs['echartR2'])
|
|
|
let option = {
|
|
|
title: {
|
|
|
- text: '项目阶段分析',
|
|
|
+ text: '项目管理类型',
|
|
|
x: 'center',
|
|
|
y: '87%',
|
|
|
textStyle: {
|
|
@@ -1495,7 +1569,7 @@ let app = new Vue({
|
|
|
tooltip: {
|
|
|
trigger: 'item',
|
|
|
formatter: function (params) {
|
|
|
- return '名称:' + params.name + '</br >' + '项目数量:' + params.value[1] + '个' + '</br >' + '投资金额:' + params.value[0] + '亿' + '</br >' + '占比:' + (params.value[0] / count * 100).toFixed(2) + '%'
|
|
|
+ return params.name + ',' + (params.value[0] / count * 100).toFixed(2) + '%' + '</br >' + params.value[1] + '个' + ',' + params.value[0] + '亿'
|
|
|
}
|
|
|
// position: ['-5%', '95%'],
|
|
|
},
|