|
@@ -4,6 +4,9 @@ let app = new Vue({
|
|
el: '#app',
|
|
el: '#app',
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ twinkle7: [],
|
|
|
|
+ twinkle8: [],
|
|
|
|
+ twinkleR6: [],
|
|
showTip: false,
|
|
showTip: false,
|
|
showTip2: false,
|
|
showTip2: false,
|
|
tipNum: '',
|
|
tipNum: '',
|
|
@@ -19,6 +22,7 @@ let app = new Vue({
|
|
header: ['', '时间', '所属集团', '工作情况'],
|
|
header: ['', '时间', '所属集团', '工作情况'],
|
|
headerBGC: '#05507b33',
|
|
headerBGC: '#05507b33',
|
|
oddRowBGC: '#69c0ff0f',
|
|
oddRowBGC: '#69c0ff0f',
|
|
|
|
+ waitTime: '50000',
|
|
evenRowBGC: '',
|
|
evenRowBGC: '',
|
|
headerHeight: '40',
|
|
headerHeight: '40',
|
|
columnWidth: [150, 150],
|
|
columnWidth: [150, 150],
|
|
@@ -177,6 +181,30 @@ let app = new Vue({
|
|
},
|
|
},
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ beforeMount(){
|
|
|
|
+ dataL7[0].forEach((item,index) => {
|
|
|
|
+ if(dataL7[1][index] < 0 && dataL7[0][index] > 0){
|
|
|
|
+ let obj = {value:[companyList[index].name ,dataL7[0][index]],symbolSize:15 }
|
|
|
|
+ this.twinkle7.push(obj)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ // if (dataL8[1][params.dataIndex] < 0 && params.value > 0) {
|
|
|
|
+ dataL8[0].forEach((item,index) => {
|
|
|
|
+ if(dataL8[1][index] < 0 && dataL8[0][index] > 0){
|
|
|
|
+ let obj = {value:[companyList[index].name ,dataL8[0][index]],symbolSize:15 }
|
|
|
|
+ this.twinkle8.push(obj)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ // params.value > 0 && fjxdataL2[0][params.dataIndex] < 0
|
|
|
|
+ fjxdataL2[0].forEach((item,index) => {
|
|
|
|
+ if(fjxdataL2[1][index] > 0 && fjxdataL2[0][index] < 0){
|
|
|
|
+ let obj = {value:[companyList[index].name ,fjxdataL2[1][index]],symbolSize:15 }
|
|
|
|
+ this.twinkleR6.push(obj)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ console.log(this.twinkleR6)
|
|
|
|
+ },
|
|
mounted() {
|
|
mounted() {
|
|
this.time = formatDate()
|
|
this.time = formatDate()
|
|
this.timer = setInterval(() => {
|
|
this.timer = setInterval(() => {
|
|
@@ -340,6 +368,25 @@ let app = new Vue({
|
|
name: '当前共享服务中心/事业部数',
|
|
name: '当前共享服务中心/事业部数',
|
|
type: 'bar',
|
|
type: 'bar',
|
|
barWidth: 15,
|
|
barWidth: 15,
|
|
|
|
+ label: {
|
|
|
|
+ normal: {
|
|
|
|
+ show: true,
|
|
|
|
+ position: 'top',
|
|
|
|
+ textStyle: {
|
|
|
|
+ color: '#69c0ff',
|
|
|
|
+ fontStyle: 'normal',
|
|
|
|
+ textAlign: 'left',
|
|
|
|
+ fontSize: 16,
|
|
|
|
+ },
|
|
|
|
+ formatter: function(data) {
|
|
|
|
+ if(data.name == '华阳新材'){
|
|
|
|
+ return data.value
|
|
|
|
+ } else {
|
|
|
|
+ return ''
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
itemStyle: {
|
|
itemStyle: {
|
|
color: params => {
|
|
color: params => {
|
|
if (params.value > dataL2[1][params.dataIndex]) {
|
|
if (params.value > dataL2[1][params.dataIndex]) {
|
|
@@ -378,6 +425,25 @@ let app = new Vue({
|
|
symbol: 'circle', //标记的图形为实心圆
|
|
symbol: 'circle', //标记的图形为实心圆
|
|
symbolSize: 8, //标记的大小
|
|
symbolSize: 8, //标记的大小
|
|
smooth: false,
|
|
smooth: false,
|
|
|
|
+ label: {
|
|
|
|
+ normal: {
|
|
|
|
+ show: true,
|
|
|
|
+ position: 'top',
|
|
|
|
+ textStyle: {
|
|
|
|
+ color: '#fbe138',
|
|
|
|
+ fontStyle: 'normal',
|
|
|
|
+ textAlign: 'left',
|
|
|
|
+ fontSize: 16,
|
|
|
|
+ },
|
|
|
|
+ formatter: function(data) {
|
|
|
|
+ if(data.name == '华阳新材'){
|
|
|
|
+ return data.value
|
|
|
|
+ } else {
|
|
|
|
+ return ''
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
itemStyle: {
|
|
itemStyle: {
|
|
//折线拐点标志的样式
|
|
//折线拐点标志的样式
|
|
color: '#fbe138',
|
|
color: '#fbe138',
|
|
@@ -531,6 +597,25 @@ let app = new Vue({
|
|
name: '六定改革前总部中层管理人数',
|
|
name: '六定改革前总部中层管理人数',
|
|
type: 'bar',
|
|
type: 'bar',
|
|
barWidth: 15,
|
|
barWidth: 15,
|
|
|
|
+ label: {
|
|
|
|
+ normal: {
|
|
|
|
+ show: true,
|
|
|
|
+ position: 'top',
|
|
|
|
+ textStyle: {
|
|
|
|
+ color: '#69c0ff',
|
|
|
|
+ fontStyle: 'normal',
|
|
|
|
+ textAlign: 'left',
|
|
|
|
+ fontSize: 16,
|
|
|
|
+ },
|
|
|
|
+ formatter: function(data) {
|
|
|
|
+ if(data.name == '云时代'){
|
|
|
|
+ return data.value
|
|
|
|
+ } else {
|
|
|
|
+ return ''
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
itemStyle: {
|
|
itemStyle: {
|
|
normal: {
|
|
normal: {
|
|
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
@@ -551,6 +636,25 @@ let app = new Vue({
|
|
name: '当前总部中层管理人数',
|
|
name: '当前总部中层管理人数',
|
|
type: 'bar',
|
|
type: 'bar',
|
|
barWidth: 15,
|
|
barWidth: 15,
|
|
|
|
+ label: {
|
|
|
|
+ normal: {
|
|
|
|
+ show: true,
|
|
|
|
+ position: 'top',
|
|
|
|
+ textStyle: {
|
|
|
|
+ color: '#6480f3',
|
|
|
|
+ fontStyle: 'normal',
|
|
|
|
+ textAlign: 'left',
|
|
|
|
+ fontSize: 16,
|
|
|
|
+ },
|
|
|
|
+ formatter: function(data) {
|
|
|
|
+ if(data.name == '云时代'){
|
|
|
|
+ return data.value
|
|
|
|
+ } else {
|
|
|
|
+ return ''
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
itemStyle: {
|
|
itemStyle: {
|
|
normal: {
|
|
normal: {
|
|
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
@@ -576,6 +680,25 @@ let app = new Vue({
|
|
symbol: 'circle', //标记的图形为实心圆
|
|
symbol: 'circle', //标记的图形为实心圆
|
|
symbolSize: 8, //标记的大小
|
|
symbolSize: 8, //标记的大小
|
|
smooth: false,
|
|
smooth: false,
|
|
|
|
+ label: {
|
|
|
|
+ normal: {
|
|
|
|
+ show: true,
|
|
|
|
+ position: 'top',
|
|
|
|
+ textStyle: {
|
|
|
|
+ color: '#fbe138',
|
|
|
|
+ fontStyle: 'normal',
|
|
|
|
+ textAlign: 'left',
|
|
|
|
+ fontSize: 16,
|
|
|
|
+ },
|
|
|
|
+ formatter: function(data) {
|
|
|
|
+ if(data.name == '云时代'){
|
|
|
|
+ return data.value
|
|
|
|
+ } else {
|
|
|
|
+ return ''
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
itemStyle: {
|
|
itemStyle: {
|
|
//折线拐点标志的样式
|
|
//折线拐点标志的样式
|
|
color: '#fbe138',
|
|
color: '#fbe138',
|
|
@@ -614,6 +737,26 @@ let app = new Vue({
|
|
name: '各省属企业总人数',
|
|
name: '各省属企业总人数',
|
|
type: 'bar',
|
|
type: 'bar',
|
|
barWidth: 15,
|
|
barWidth: 15,
|
|
|
|
+ label: {
|
|
|
|
+ normal: {
|
|
|
|
+ show: true,
|
|
|
|
+ position: 'top',
|
|
|
|
+ lineHeight:'25',
|
|
|
|
+ textStyle: {
|
|
|
|
+ color: '#69c0ff',
|
|
|
|
+ fontStyle: 'normal',
|
|
|
|
+ textAlign: 'left',
|
|
|
|
+ fontSize: 16,
|
|
|
|
+ },
|
|
|
|
+ formatter: function(data) {
|
|
|
|
+ if(data.name == '华阳新材' || data.name=='华舰体育'){
|
|
|
|
+ return data.value
|
|
|
|
+ } else {
|
|
|
|
+ return ''
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
itemStyle: {
|
|
itemStyle: {
|
|
normal: {
|
|
normal: {
|
|
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
@@ -639,6 +782,26 @@ let app = new Vue({
|
|
symbol: 'circle', //标记的图形为实心圆
|
|
symbol: 'circle', //标记的图形为实心圆
|
|
symbolSize: 8, //标记的大小
|
|
symbolSize: 8, //标记的大小
|
|
smooth: false,
|
|
smooth: false,
|
|
|
|
+ label: {
|
|
|
|
+ normal: {
|
|
|
|
+ show: true,
|
|
|
|
+ position: 'bottom',
|
|
|
|
+ lineHeight: '25',
|
|
|
|
+ textStyle: {
|
|
|
|
+ color: '#b889ea',
|
|
|
|
+ fontStyle: 'normal',
|
|
|
|
+ textAlign: 'left',
|
|
|
|
+ fontSize: 16,
|
|
|
|
+ },
|
|
|
|
+ formatter: function(data) {
|
|
|
|
+ if(data.name == '华阳新材' || data.name=='华舰体育'){
|
|
|
|
+ return data.value
|
|
|
|
+ } else {
|
|
|
|
+ return ''
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
itemStyle: {
|
|
itemStyle: {
|
|
//折线拐点标志的样式
|
|
//折线拐点标志的样式
|
|
color: '#b889ea',
|
|
color: '#b889ea',
|
|
@@ -768,6 +931,7 @@ let app = new Vue({
|
|
},
|
|
},
|
|
initChartL7() {
|
|
initChartL7() {
|
|
let myChart = echarts.init(this.$refs['echartL7'])
|
|
let myChart = echarts.init(this.$refs['echartL7'])
|
|
|
|
+ let that = this
|
|
let option = {
|
|
let option = {
|
|
..._.cloneDeep(this.commonOption),
|
|
..._.cloneDeep(this.commonOption),
|
|
color: ['#43ede3'],
|
|
color: ['#43ede3'],
|
|
@@ -780,6 +944,26 @@ let app = new Vue({
|
|
symbol: 'circle', //标记的图形为实心圆
|
|
symbol: 'circle', //标记的图形为实心圆
|
|
symbolSize: 15, //标记的大小
|
|
symbolSize: 15, //标记的大小
|
|
smooth: false,
|
|
smooth: false,
|
|
|
|
+ label: {
|
|
|
|
+ normal: {
|
|
|
|
+ show: true,
|
|
|
|
+ position: 'bottom',
|
|
|
|
+ lineHeight: '35',
|
|
|
|
+ textStyle: {
|
|
|
|
+ color: '#43ede3',
|
|
|
|
+ fontStyle: 'normal',
|
|
|
|
+ textAlign: 'left',
|
|
|
|
+ fontSize: 16,
|
|
|
|
+ },
|
|
|
|
+ formatter: function(data) {
|
|
|
|
+ if(data.name == '文旅集团'|| data.name== "大地控股" || data.name=='华舰体育'){
|
|
|
|
+ return data.value
|
|
|
|
+ } else {
|
|
|
|
+ return ''
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
itemStyle: {
|
|
itemStyle: {
|
|
color: params => {
|
|
color: params => {
|
|
if (dataL7[1][params.dataIndex] < 0 && params.value > 0) {
|
|
if (dataL7[1][params.dataIndex] < 0 && params.value > 0) {
|
|
@@ -803,8 +987,28 @@ let app = new Vue({
|
|
smooth: true, //平滑曲线显示
|
|
smooth: true, //平滑曲线显示
|
|
showAllSymbol: true, //显示所有图形。
|
|
showAllSymbol: true, //显示所有图形。
|
|
symbol: 'circle', //标记的图形为实心圆
|
|
symbol: 'circle', //标记的图形为实心圆
|
|
- symbolSize: 15, //标记的大小
|
|
|
|
|
|
+ symbolSize: 8, //标记的大小
|
|
smooth: false,
|
|
smooth: false,
|
|
|
|
+ label: {
|
|
|
|
+ normal: {
|
|
|
|
+ show: true,
|
|
|
|
+ position: 'top',
|
|
|
|
+ lineHeight: '25',
|
|
|
|
+ textStyle: {
|
|
|
|
+ color: '#b889ea',
|
|
|
|
+ fontStyle: 'normal',
|
|
|
|
+ textAlign: 'left',
|
|
|
|
+ fontSize: 16,
|
|
|
|
+ },
|
|
|
|
+ formatter: function(data) {
|
|
|
|
+ if(data.name == '文旅集团'|| data.name== "大地控股" || data.name=='华舰体育'){
|
|
|
|
+ return data.value
|
|
|
|
+ } else {
|
|
|
|
+ return ''
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
itemStyle: {
|
|
itemStyle: {
|
|
//折线拐点标志的样式
|
|
//折线拐点标志的样式
|
|
color: '#b889ea',
|
|
color: '#b889ea',
|
|
@@ -815,6 +1019,26 @@ let app = new Vue({
|
|
},
|
|
},
|
|
data: dataL7[1],
|
|
data: dataL7[1],
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ type: 'effectScatter',
|
|
|
|
+ coordinateSystem: 'cartesian2d',
|
|
|
|
+ showEffectOn: 'render',
|
|
|
|
+ rippleEffect: {
|
|
|
|
+ period: 10,
|
|
|
|
+ scale: 4,
|
|
|
|
+ brushType: 'stroke'
|
|
|
|
+ },
|
|
|
|
+ hoverAnimation: true,
|
|
|
|
+ itemStyle: {
|
|
|
|
+ color: 'red'
|
|
|
|
+ },
|
|
|
|
+ lineStyle: {
|
|
|
|
+ color: '#43ede3',
|
|
|
|
+ width: 2,
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ data: that.twinkle7,
|
|
|
|
+ },
|
|
],
|
|
],
|
|
}
|
|
}
|
|
option.title.text = '人数变化和全员劳动生产率变化分析'
|
|
option.title.text = '人数变化和全员劳动生产率变化分析'
|
|
@@ -865,6 +1089,26 @@ let app = new Vue({
|
|
symbol: 'circle', //标记的图形为实心圆
|
|
symbol: 'circle', //标记的图形为实心圆
|
|
symbolSize: 15, //标记的大小
|
|
symbolSize: 15, //标记的大小
|
|
smooth: false,
|
|
smooth: false,
|
|
|
|
+ label: {
|
|
|
|
+ normal: {
|
|
|
|
+ show: true,
|
|
|
|
+ position: 'bottom',
|
|
|
|
+ lineHeight:'20',
|
|
|
|
+ textStyle: {
|
|
|
|
+ color: '#43ede3',
|
|
|
|
+ fontStyle: 'normal',
|
|
|
|
+ textAlign: 'left',
|
|
|
|
+ fontSize: 16,
|
|
|
|
+ },
|
|
|
|
+ formatter: function(data) {
|
|
|
|
+ if(data.name == '文旅集团' || data.name=='大地控股'){
|
|
|
|
+ return data.value
|
|
|
|
+ } else {
|
|
|
|
+ return ''
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
itemStyle: {
|
|
itemStyle: {
|
|
color: params => {
|
|
color: params => {
|
|
if (dataL8[1][params.dataIndex] < 0 && params.value > 0) {
|
|
if (dataL8[1][params.dataIndex] < 0 && params.value > 0) {
|
|
@@ -888,6 +1132,26 @@ let app = new Vue({
|
|
symbol: 'circle', //标记的图形为实心圆
|
|
symbol: 'circle', //标记的图形为实心圆
|
|
symbolSize: 15, //标记的大小
|
|
symbolSize: 15, //标记的大小
|
|
smooth: false,
|
|
smooth: false,
|
|
|
|
+ label: {
|
|
|
|
+ normal: {
|
|
|
|
+ show: true,
|
|
|
|
+ position: 'top',
|
|
|
|
+ lineHeight:'30',
|
|
|
|
+ textStyle: {
|
|
|
|
+ color: '#b889ea',
|
|
|
|
+ fontStyle: 'normal',
|
|
|
|
+ textAlign: 'left',
|
|
|
|
+ fontSize: 16,
|
|
|
|
+ },
|
|
|
|
+ formatter: function(data) {
|
|
|
|
+ if(data.name == '文旅集团' || data.name=='大地控股'){
|
|
|
|
+ return data.value
|
|
|
|
+ } else {
|
|
|
|
+ return ''
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
itemStyle: {
|
|
itemStyle: {
|
|
//折线拐点标志的样式
|
|
//折线拐点标志的样式
|
|
color: '#b889ea',
|
|
color: '#b889ea',
|
|
@@ -903,6 +1167,46 @@ let app = new Vue({
|
|
},
|
|
},
|
|
data: dataL8[1],
|
|
data: dataL8[1],
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ type: 'effectScatter',
|
|
|
|
+ coordinateSystem: 'cartesian2d',
|
|
|
|
+ showEffectOn: 'render',
|
|
|
|
+ rippleEffect: {
|
|
|
|
+ period: 10,
|
|
|
|
+ scale: 4,
|
|
|
|
+ brushType: 'stroke'
|
|
|
|
+ },
|
|
|
|
+ hoverAnimation: true,
|
|
|
|
+ itemStyle: {
|
|
|
|
+ color: 'red'
|
|
|
|
+ },
|
|
|
|
+ lineStyle: {
|
|
|
|
+ color: '#43ede3',
|
|
|
|
+ width: 2,
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ data: this.twinkle8,
|
|
|
|
+ },
|
|
|
|
+ // {
|
|
|
|
+ // type: 'effectScatter',
|
|
|
|
+ // coordinateSystem: 'cartesian2d',
|
|
|
|
+ // showEffectOn: 'render',
|
|
|
|
+ // rippleEffect: {
|
|
|
|
+ // period: 10,
|
|
|
|
+ // scale: 4,
|
|
|
|
+ // brushType: 'stroke'
|
|
|
|
+ // },
|
|
|
|
+ // hoverAnimation: true,
|
|
|
|
+ // itemStyle: {
|
|
|
|
+ // color: 'red'
|
|
|
|
+ // },
|
|
|
|
+ // lineStyle: {
|
|
|
|
+ // color: '#43ede3',
|
|
|
|
+ // width: 2,
|
|
|
|
+ // },
|
|
|
|
+
|
|
|
|
+ // data: that.twinkle,
|
|
|
|
+ // },
|
|
],
|
|
],
|
|
// tooltip: {
|
|
// tooltip: {
|
|
// trigger: 'axis',
|
|
// trigger: 'axis',
|
|
@@ -930,6 +1234,25 @@ let app = new Vue({
|
|
name: '全员劳动生产率(万/人)',
|
|
name: '全员劳动生产率(万/人)',
|
|
type: 'bar',
|
|
type: 'bar',
|
|
barWidth: 15,
|
|
barWidth: 15,
|
|
|
|
+ label: {
|
|
|
|
+ normal: {
|
|
|
|
+ show: true,
|
|
|
|
+ position: 'top',
|
|
|
|
+ textStyle: {
|
|
|
|
+ color: '#fff',
|
|
|
|
+ fontStyle: 'normal',
|
|
|
|
+ textAlign: 'left',
|
|
|
|
+ fontSize: 16,
|
|
|
|
+ },
|
|
|
|
+ formatter: function(data) {
|
|
|
|
+ if(data.name == '国际能源' || data.name == '汾酒集团'){
|
|
|
|
+ return data.value
|
|
|
|
+ } else {
|
|
|
|
+ return ''
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
itemStyle: {
|
|
itemStyle: {
|
|
color: params => {
|
|
color: params => {
|
|
if (params.value < 0 && c1[1][params.dataIndex] < 0) {
|
|
if (params.value < 0 && c1[1][params.dataIndex] < 0) {
|
|
@@ -950,6 +1273,52 @@ let app = new Vue({
|
|
}
|
|
}
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
+
|
|
|
|
+ // markPoint:{
|
|
|
|
+ // symbolSize: 1,
|
|
|
|
+ // symbolOffset: [0, '50%'],
|
|
|
|
+ // label:{
|
|
|
|
+ // show: true,
|
|
|
|
+ // fontSize:18,
|
|
|
|
+ // color: '#fff',
|
|
|
|
+ // backgroundColor: 'rgba(38,48,59,0.6)',
|
|
|
|
+ // borderColor: '#aaa',
|
|
|
|
+ // borderWidth: 1,
|
|
|
|
+ // borderRadius: 4,
|
|
|
|
+ // padding: [4, 10],
|
|
|
|
+ // lineHeight: 26,
|
|
|
|
+ // position: 'top',
|
|
|
|
+ // distance: 20,
|
|
|
|
+ // // formatter: data =>{
|
|
|
|
+ // // console.log('11',data)
|
|
|
|
+ // // },
|
|
|
|
+ // formatter: [
|
|
|
|
+ // '{a|这段文本采用样式a}',
|
|
|
|
+ // '这段用默认样式{x|这段用样式x}'
|
|
|
|
+ // ].join('\n'),
|
|
|
|
+ // rich: {
|
|
|
|
+ // a: {
|
|
|
|
+ // color: 'yellow',
|
|
|
|
+ // lineHeight: 10
|
|
|
|
+ // },
|
|
|
|
+ // b: {
|
|
|
|
+ // // backgroundColor: {
|
|
|
|
+ // // image: './images/alert.png'
|
|
|
|
+ // // },
|
|
|
|
+ // height: 40
|
|
|
|
+ // },
|
|
|
|
+ // x: {
|
|
|
|
+ // fontSize: 18,
|
|
|
|
+ // borderColor: '#449933',
|
|
|
|
+ // borderRadius: 4
|
|
|
|
+ // },
|
|
|
|
+ // }
|
|
|
|
+ // },
|
|
|
|
+ // // itemStyle: {
|
|
|
|
+ // // color: 'rgba(38,48,59,0.6)'
|
|
|
|
+ // // },
|
|
|
|
+ // data:[{value:'117.48', xAxis: '国际能源', yAxis: 127 },{value:'138.83', xAxis: '汾酒集团', yAxis: 148 }]
|
|
|
|
+ // },
|
|
markLine: {
|
|
markLine: {
|
|
data: [
|
|
data: [
|
|
{
|
|
{
|
|
@@ -1048,32 +1417,11 @@ let app = new Vue({
|
|
},
|
|
},
|
|
},
|
|
},
|
|
})
|
|
})
|
|
- // option.yAxis.push({
|
|
|
|
- // type: 'log',
|
|
|
|
- // min: -1,
|
|
|
|
- // logBase: 10,
|
|
|
|
- // axisLine: {
|
|
|
|
- // show: false,
|
|
|
|
- // },
|
|
|
|
- // splitLine: {
|
|
|
|
- // show: false,
|
|
|
|
- // },
|
|
|
|
- // axisLabel: {
|
|
|
|
- // show: true,
|
|
|
|
- // formatter: function(value) {
|
|
|
|
- // console.log(value,"value")
|
|
|
|
- // // return value === 1 ? 0 : value
|
|
|
|
- // },
|
|
|
|
- // textStyle: {
|
|
|
|
- // color: 'rgba(250,250,250,0.6)',
|
|
|
|
- // },
|
|
|
|
- // },
|
|
|
|
- // })
|
|
|
|
myChart.setOption(option)
|
|
myChart.setOption(option)
|
|
- tools.loopShowTooltip(myChart, option, {
|
|
|
|
- nterval: 2000,
|
|
|
|
- loopSeries: true,
|
|
|
|
- })
|
|
|
|
|
|
+ // tools.loopShowTooltip(myChart, option, {
|
|
|
|
+ // nterval: 2000,
|
|
|
|
+ // loopSeries: true,
|
|
|
|
+ // })
|
|
},
|
|
},
|
|
initChartC2() {
|
|
initChartC2() {
|
|
let myChart = echarts.init(this.$refs['echartC2'])
|
|
let myChart = echarts.init(this.$refs['echartC2'])
|
|
@@ -1085,6 +1433,25 @@ let app = new Vue({
|
|
name: '人工成本利润率',
|
|
name: '人工成本利润率',
|
|
type: 'bar',
|
|
type: 'bar',
|
|
barWidth: 15,
|
|
barWidth: 15,
|
|
|
|
+ label: {
|
|
|
|
+ normal: {
|
|
|
|
+ show: true,
|
|
|
|
+ position: 'top',
|
|
|
|
+ textStyle: {
|
|
|
|
+ color: '#fff',
|
|
|
|
+ fontStyle: 'normal',
|
|
|
|
+ textAlign: 'left',
|
|
|
|
+ fontSize: 16,
|
|
|
|
+ },
|
|
|
|
+ formatter: function(data) {
|
|
|
|
+ if(data.name == '国际能源' || data.name == '文旅集团' || data.name == '航产集团' || data.name == '华舰体育'){
|
|
|
|
+ return data.value
|
|
|
|
+ } else {
|
|
|
|
+ return ''
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
markLine: {
|
|
markLine: {
|
|
data: [
|
|
data: [
|
|
{
|
|
{
|
|
@@ -1189,10 +1556,10 @@ let app = new Vue({
|
|
},
|
|
},
|
|
})
|
|
})
|
|
myChart.setOption(option)
|
|
myChart.setOption(option)
|
|
- tools.loopShowTooltip(myChart, option, {
|
|
|
|
- nterval: 2000,
|
|
|
|
- loopSeries: true,
|
|
|
|
- })
|
|
|
|
|
|
+ // tools.loopShowTooltip(myChart, option, {
|
|
|
|
+ // nterval: 2000,
|
|
|
|
+ // loopSeries: true,
|
|
|
|
+ // })
|
|
},
|
|
},
|
|
// 右侧图表---------------------------------------------开始
|
|
// 右侧图表---------------------------------------------开始
|
|
initChartR1() {
|
|
initChartR1() {
|
|
@@ -1386,6 +1753,25 @@ let app = new Vue({
|
|
name: '2022年利润(万)',
|
|
name: '2022年利润(万)',
|
|
type: 'bar',
|
|
type: 'bar',
|
|
barWidth: 15,
|
|
barWidth: 15,
|
|
|
|
+ label: {
|
|
|
|
+ normal: {
|
|
|
|
+ show: true,
|
|
|
|
+ position: 'bottom',
|
|
|
|
+ textStyle: {
|
|
|
|
+ color: '#69c0ff',
|
|
|
|
+ fontStyle: 'normal',
|
|
|
|
+ textAlign: 'left',
|
|
|
|
+ fontSize: 14,
|
|
|
|
+ },
|
|
|
|
+ formatter: function(data) {
|
|
|
|
+ if(data.name=="国际能源" || data.name == '文旅集团' || data.name=='航产集团'||data.name == '华舰体育'){
|
|
|
|
+ return data.value
|
|
|
|
+ } else {
|
|
|
|
+ return ''
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
itemStyle: {
|
|
itemStyle: {
|
|
normal: {
|
|
normal: {
|
|
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
@@ -1407,6 +1793,25 @@ let app = new Vue({
|
|
type: 'bar',
|
|
type: 'bar',
|
|
barWidth: 15,
|
|
barWidth: 15,
|
|
yAxisIndex: 1,
|
|
yAxisIndex: 1,
|
|
|
|
+ label: {
|
|
|
|
+ normal: {
|
|
|
|
+ show: true,
|
|
|
|
+ position: 'top',
|
|
|
|
+ textStyle: {
|
|
|
|
+ color: '#45DAD1',
|
|
|
|
+ fontStyle: 'normal',
|
|
|
|
+ textAlign: 'right',
|
|
|
|
+ fontSize: 14,
|
|
|
|
+ },
|
|
|
|
+ formatter: function(data) {
|
|
|
|
+ if(data.name=="国际能源" || data.name == '文旅集团' || data.name=='航产集团'||data.name == '华舰体育'){
|
|
|
|
+ return data.value
|
|
|
|
+ } else {
|
|
|
|
+ return ''
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
itemStyle: {
|
|
itemStyle: {
|
|
color: params => {
|
|
color: params => {
|
|
if (params.value > 0 && dataR3[0][params.dataIndex] < 0) {
|
|
if (params.value > 0 && dataR3[0][params.dataIndex] < 0) {
|
|
@@ -1685,6 +2090,26 @@ let app = new Vue({
|
|
symbol: 'circle', //标记的图形为实心圆
|
|
symbol: 'circle', //标记的图形为实心圆
|
|
symbolSize: 8, //标记的大小
|
|
symbolSize: 8, //标记的大小
|
|
smooth: false,
|
|
smooth: false,
|
|
|
|
+ label: {
|
|
|
|
+ normal: {
|
|
|
|
+ show: true,
|
|
|
|
+ lineHeight:'20',
|
|
|
|
+ position: 'top',
|
|
|
|
+ textStyle: {
|
|
|
|
+ color: '#B889EA',
|
|
|
|
+ fontStyle: 'normal',
|
|
|
|
+ textAlign: 'left',
|
|
|
|
+ fontSize: 16,
|
|
|
|
+ },
|
|
|
|
+ formatter: function(data) {
|
|
|
|
+ if(data.name == '文旅集团'){
|
|
|
|
+ return data.value
|
|
|
|
+ } else {
|
|
|
|
+ return ''
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
itemStyle: {
|
|
itemStyle: {
|
|
//折线拐点标志的样式
|
|
//折线拐点标志的样式
|
|
color: '#B889EA',
|
|
color: '#B889EA',
|
|
@@ -1708,6 +2133,26 @@ let app = new Vue({
|
|
symbol: 'circle', //标记的图形为实心圆
|
|
symbol: 'circle', //标记的图形为实心圆
|
|
symbolSize: 12, //标记的大小
|
|
symbolSize: 12, //标记的大小
|
|
smooth: false,
|
|
smooth: false,
|
|
|
|
+ label: {
|
|
|
|
+ normal: {
|
|
|
|
+ show: true,
|
|
|
|
+ position: 'top',
|
|
|
|
+ lineHeight:'35',
|
|
|
|
+ textStyle: {
|
|
|
|
+ color: '#69c0ff',
|
|
|
|
+ fontStyle: 'normal',
|
|
|
|
+ textAlign: 'left',
|
|
|
|
+ fontSize: 16,
|
|
|
|
+ },
|
|
|
|
+ formatter: function(data) {
|
|
|
|
+ if(data.name == '文旅集团'){
|
|
|
|
+ return data.value
|
|
|
|
+ } else {
|
|
|
|
+ return ''
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
itemStyle: {
|
|
itemStyle: {
|
|
color: params => {
|
|
color: params => {
|
|
if (params.value > 0 && fjxdataL2[0][params.dataIndex] < 0) {
|
|
if (params.value > 0 && fjxdataL2[0][params.dataIndex] < 0) {
|
|
@@ -1732,6 +2177,26 @@ let app = new Vue({
|
|
},
|
|
},
|
|
data: fjxdataL2[1],
|
|
data: fjxdataL2[1],
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ type: 'effectScatter',
|
|
|
|
+ coordinateSystem: 'cartesian2d',
|
|
|
|
+ showEffectOn: 'render',
|
|
|
|
+ rippleEffect: {
|
|
|
|
+ period: 10,
|
|
|
|
+ scale: 4,
|
|
|
|
+ brushType: 'stroke'
|
|
|
|
+ },
|
|
|
|
+ hoverAnimation: true,
|
|
|
|
+ itemStyle: {
|
|
|
|
+ color: 'yellow'
|
|
|
|
+ },
|
|
|
|
+ lineStyle: {
|
|
|
|
+ color: '#43ede3',
|
|
|
|
+ width: 2,
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ data: this.twinkleR6,
|
|
|
|
+ },
|
|
],
|
|
],
|
|
}
|
|
}
|
|
option.title.text = '各省属企业利润与薪酬变动情况'
|
|
option.title.text = '各省属企业利润与薪酬变动情况'
|