|
@@ -58,6 +58,7 @@ let app = new Vue({
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
|
|
|
this.initChartTip()
|
|
this.initChartTip()
|
|
|
|
+ this.initChartTip2()
|
|
this.initChartL1()
|
|
this.initChartL1()
|
|
this.initChartL2()
|
|
this.initChartL2()
|
|
this.initChartR1()
|
|
this.initChartR1()
|
|
@@ -555,8 +556,8 @@ let app = new Vue({
|
|
{
|
|
{
|
|
name: '',
|
|
name: '',
|
|
type: 'pie',
|
|
type: 'pie',
|
|
- center: ['30%','40%'],
|
|
+ center: ['45%','40%'],
|
|
- radius: ['45%', '60%'],
|
|
+ radius: ['35%', '50%'],
|
|
labelLine: {
|
|
labelLine: {
|
|
normal: {
|
|
normal: {
|
|
lineStyle: {
|
|
lineStyle: {
|
|
@@ -574,6 +575,153 @@ let app = new Vue({
|
|
loopSeries: true,
|
|
loopSeries: true,
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ initChartTip2(){
|
|
|
|
+ let myChart = echarts.init(this.$refs['echartTip2'])
|
|
|
|
+ let option = {
|
|
|
|
+ tooltip: {
|
|
|
|
+ trigger: 'axis',
|
|
|
|
+ axisPointer: {
|
|
|
|
+ type: 'cross',
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ dataZoom:[
|
|
|
|
+ {
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ type: "slider",
|
|
|
|
+ show: true,
|
|
|
|
+
|
|
|
|
+ handlesize: 0,
|
|
|
|
+ startValue: 9,
|
|
|
|
+ endValue: 6,
|
|
|
|
+ height: 10,
|
|
|
|
+ left:"5%",
|
|
|
|
+ right: "4%",
|
|
|
|
+ bottom: "25%",
|
|
|
|
+ borderColor:"#939",
|
|
|
|
+ fillerColor:"#269cdb",
|
|
|
|
+ borderRadius: 5,
|
|
|
|
+ backgroundColor: "#33384b",
|
|
|
|
+ showDataShadow: false,
|
|
|
|
+ showDetail: false,
|
|
|
|
+ truerealtime: true,
|
|
|
|
+ filterMode: "filter"
|
|
|
|
+ },{
|
|
|
|
+ type:'inside',
|
|
|
|
+ show: true,
|
|
|
|
+ start: 1,
|
|
|
|
+ end: 100
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ grid: {
|
|
|
|
+ top: '16%',
|
|
|
|
+ right: '3%',
|
|
|
|
+ left: '10%',
|
|
|
|
+ bottom: '38%',
|
|
|
|
+ },
|
|
|
|
+ legend: {
|
|
|
|
+ top: '1',
|
|
|
|
+ right: '10',
|
|
|
|
+ textStyle: {
|
|
|
|
+ color: 'rgba(250,250,250,0.6)',
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ xAxis: {
|
|
|
|
+ data: executeList.map(item=>item.name),
|
|
|
|
+ axisLine: {
|
|
|
|
+ show: true,
|
|
|
|
+ lineStyle: {
|
|
|
|
+ color: '#005094',
|
|
|
|
+ width: 1,
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ axisTick: {
|
|
|
|
+ show: false,
|
|
|
|
+ },
|
|
|
|
+ axisLabel: {
|
|
|
|
+ show: true,
|
|
|
|
+ rotate: 40,
|
|
|
|
+ textStyle: {
|
|
|
|
+ color: 'rgba(255,255,255,0.6)',
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ yAxis: [
|
|
|
|
+ {
|
|
|
|
+ type: 'value',
|
|
|
|
+ nameTextStyle: {
|
|
|
|
+ color: '#ebf8ac',
|
|
|
|
+ },
|
|
|
|
+ splitLine: {
|
|
|
|
+ show: true,
|
|
|
|
+ lineStyle: {
|
|
|
|
+ color: '#68b4dd66',
|
|
|
|
+ type: 'dashed',
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ axisLine: {
|
|
|
|
+ show: true,
|
|
|
|
+ lineStyle: {
|
|
|
|
+ color: '#3D7495',
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ axisLabel: {
|
|
|
|
+ show: true,
|
|
|
|
+ textStyle: {
|
|
|
|
+ color: 'rgba(250,250,250,0.6)',
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
+ series: [
|
|
|
|
+ {
|
|
|
|
+ name: '计划投资',
|
|
|
|
+ type: 'bar',
|
|
|
|
+ barWidth: 10,
|
|
|
|
+ itemStyle: {
|
|
|
|
+ normal: {
|
|
|
|
+ color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
|
+ {
|
|
|
|
+ offset: 0,
|
|
|
|
+ color: '#69c0ff',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ offset: 1,
|
|
|
|
+ color: '#082550',
|
|
|
|
+ },
|
|
|
|
+ ]),
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ data: executeList.map(item=>item.value),
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ name: '实际投资',
|
|
|
|
+ type: 'bar',
|
|
|
|
+ barWidth: 10,
|
|
|
|
+ itemStyle: {
|
|
|
|
+ normal: {
|
|
|
|
+ color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
|
+ {
|
|
|
|
+ offset: 0,
|
|
|
|
+ color: '#957DFF',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ offset: 1,
|
|
|
|
+ color: '#082550',
|
|
|
|
+ },
|
|
|
|
+ ]),
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ data: executeList.map(item=>item.value2),
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
+ }
|
|
|
|
+ myChart.setOption(option)
|
|
|
|
+ tools.loopShowTooltip(myChart, option, {
|
|
|
|
+ nterval: 2000,
|
|
|
|
+ loopSeries: true,
|
|
|
|
+ })
|
|
|
|
+ },
|
|
initChartL1 () {
|
|
initChartL1 () {
|
|
let myChart = echarts.init(this.$refs['echartL1'])
|
|
let myChart = echarts.init(this.$refs['echartL1'])
|
|
let option = {
|
|
let option = {
|