Merge branch 'feature/1.7.1' into dev
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
<script>
|
||||
import echarts from 'echarts'
|
||||
require('echarts/theme/macarons') // echarts theme
|
||||
let that = null
|
||||
|
||||
export default {
|
||||
props: {
|
||||
@@ -42,7 +41,6 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
that = this
|
||||
this.initChart()
|
||||
},
|
||||
beforeDestroy() {
|
||||
@@ -68,8 +66,8 @@ export default {
|
||||
},
|
||||
tooltip: {
|
||||
trigger: 'item',
|
||||
formatter: function(value) {
|
||||
return `${value.seriesName} <br/>${value.marker} : ${value.name} ${value.name === '上行' ? that.data.upFlowDesc : that.data.downFlowDesc}`
|
||||
formatter: (value) => {
|
||||
return `${value.seriesName} <br/>${value.marker} : ${value.name} ${value.name === '上行' ? this.data.upFlowDesc : this.data.downFlowDesc}`
|
||||
}
|
||||
},
|
||||
legend: {
|
||||
|
||||
@@ -6,8 +6,6 @@
|
||||
import echarts from 'echarts'
|
||||
require('echarts/theme/macarons') // echarts theme
|
||||
import { getSizeDescByByteCount } from '@/utils/utils'
|
||||
let that = null
|
||||
|
||||
export default {
|
||||
props: {
|
||||
chartId: {
|
||||
@@ -38,7 +36,6 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
that = this
|
||||
this.initChart()
|
||||
},
|
||||
beforeDestroy() {
|
||||
@@ -87,10 +84,10 @@ export default {
|
||||
},
|
||||
tooltip: {
|
||||
trigger: 'axis',
|
||||
formatter: function(value) {
|
||||
let title = that.data.text + '<br/>'
|
||||
formatter: (value) => {
|
||||
let title = this.data.text + '<br/>'
|
||||
value.forEach(item => {
|
||||
title = title + item.marker + item.seriesName + ' : ' + that.data.list[item.seriesIndex].label[item.dataIndex] + '<br/>'
|
||||
title = title + item.marker + item.seriesName + ' : ' + this.data.list[item.seriesIndex].label[item.dataIndex] + '<br/>'
|
||||
})
|
||||
return title
|
||||
}
|
||||
@@ -113,7 +110,7 @@ export default {
|
||||
yAxis: {
|
||||
type: 'value',
|
||||
axisLabel: {
|
||||
formatter: function(value) {
|
||||
formatter: (value) => {
|
||||
return getSizeDescByByteCount(value)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user