|
|
@@ -161,10 +161,10 @@ let app = new Vue({
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- handleGoPage(url){
|
|
|
+ handleGoPage (url) {
|
|
|
window.location.href = url
|
|
|
},
|
|
|
- handleGoBack(){
|
|
|
+ handleGoBack () {
|
|
|
window.history.go(-1)
|
|
|
},
|
|
|
numFormat (value) {
|
|
|
@@ -379,7 +379,7 @@ let app = new Vue({
|
|
|
option.legend.show = true
|
|
|
option.tooltip = {
|
|
|
trigger: 'axis',
|
|
|
- formatter: '{a0}:{c0}' +'<br/>'+ '{a1}:{c1}' + '%'
|
|
|
+ formatter: '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
|
|
|
}
|
|
|
option.yAxis.push({
|
|
|
type: 'value',
|
|
|
@@ -455,7 +455,7 @@ let app = new Vue({
|
|
|
option.legend.show = true
|
|
|
option.tooltip = {
|
|
|
trigger: 'axis',
|
|
|
- formatter: '{a0}:{c0}' +'<br/>'+ '{a1}:{c1}' + '%'
|
|
|
+ formatter: '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
|
|
|
}
|
|
|
option.yAxis.push({
|
|
|
type: 'value',
|
|
|
@@ -573,9 +573,9 @@ let app = new Vue({
|
|
|
option.legend.show = true
|
|
|
option.tooltip = {
|
|
|
trigger: 'axis',
|
|
|
- formatter: '{a0}:{c0}'+ '%' +'<br/>'+ '{a1}:{c1}' + '%'
|
|
|
+ formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
|
|
|
}
|
|
|
- option.yAxis= [
|
|
|
+ option.yAxis = [
|
|
|
{
|
|
|
type: 'value',
|
|
|
axisLine: {
|
|
|
@@ -667,9 +667,9 @@ let app = new Vue({
|
|
|
option.legend.show = true
|
|
|
option.tooltip = {
|
|
|
trigger: 'axis',
|
|
|
- formatter: '{a0}:{c0}'+ '%' +'<br/>'+ '{a1}:{c1}' + '%'
|
|
|
+ formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
|
|
|
}
|
|
|
- option.yAxis= [
|
|
|
+ option.yAxis = [
|
|
|
{
|
|
|
type: 'value',
|
|
|
axisLine: {
|
|
|
@@ -792,7 +792,7 @@ let app = new Vue({
|
|
|
option.legend.show = true
|
|
|
option.tooltip = {
|
|
|
trigger: 'axis',
|
|
|
- formatter: '{a0}:{c0}' +'<br/>'+ '{a1}:{c1}' + '%'
|
|
|
+ formatter: '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
|
|
|
}
|
|
|
option.yAxis.push({
|
|
|
type: 'value',
|
|
|
@@ -811,6 +811,10 @@ let app = new Vue({
|
|
|
},
|
|
|
})
|
|
|
myChart.setOption(option)
|
|
|
+ tools.loopShowTooltip(myChart, option, {
|
|
|
+ nterval: 2000,
|
|
|
+ loopSeries: true,
|
|
|
+ });
|
|
|
},
|
|
|
initChartC2 () {
|
|
|
let myChart = echarts.init(this.$refs['echartC2'])
|
|
|
@@ -839,7 +843,7 @@ let app = new Vue({
|
|
|
width: 2,
|
|
|
},
|
|
|
data: dataC2[0],
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
{
|
|
|
name: '人工成本利润率',
|
|
|
@@ -899,7 +903,7 @@ let app = new Vue({
|
|
|
option.legend.show = true
|
|
|
option.tooltip = {
|
|
|
trigger: 'axis',
|
|
|
- formatter: '{a0}:{c0}' + '%' +'<br/>'+ '{a1}:{c1}' + '%'
|
|
|
+ formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
|
|
|
}
|
|
|
option.grid.right = '15%'
|
|
|
option.yAxis = [
|
|
|
@@ -935,6 +939,10 @@ let app = new Vue({
|
|
|
}
|
|
|
]
|
|
|
myChart.setOption(option)
|
|
|
+ tools.loopShowTooltip(myChart, option, {
|
|
|
+ nterval: 2000,
|
|
|
+ loopSeries: true,
|
|
|
+ });
|
|
|
},
|
|
|
// 右侧图表---------------------------------------------开始
|
|
|
initChartR1 () {
|
|
|
@@ -1270,7 +1278,7 @@ let app = new Vue({
|
|
|
],
|
|
|
}
|
|
|
option.title.text = '各二级企业在岗职工平均薪酬'
|
|
|
- option.legend.data = ['去年同期在岗职工平均薪酬', '在岗职工平均薪酬' ]
|
|
|
+ option.legend.data = ['去年同期在岗职工平均薪酬', '在岗职工平均薪酬']
|
|
|
option.legend.show = true
|
|
|
option.yAxis.push({
|
|
|
type: 'value',
|
|
|
@@ -1344,7 +1352,7 @@ let app = new Vue({
|
|
|
option.legend.data = ['2022年利润累计涨幅率', '2022年薪酬累计涨幅率']
|
|
|
option.tooltip = {
|
|
|
trigger: 'axis',
|
|
|
- formatter: '{a0}:{c0}' + '%' +'<br/>'+ '{a1}:{c1}' + '%'
|
|
|
+ formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
|
|
|
}
|
|
|
option.yAxis = [
|
|
|
{
|