qinzhipeng_v@didiglobal.com 4 years ago
parent
commit
b7ada749e9
1 changed files with 12 additions and 6 deletions
  1. 12 6
      src/views/reportManagement/ReleaseReport/components/iconDisplay.vue

+ 12 - 6
src/views/reportManagement/ReleaseReport/components/iconDisplay.vue

@@ -86,7 +86,8 @@ export default {
       const data = res.bugDisByDate.yAxis.map(item => ({
         ...item,
         type: 'line',
-        smooth: true
+        smooth: true,
+        itemStyle: { normal: { label: { show: true }}}
       }))
       setTimeout(() => {
         echarts.init(document.getElementById('line-echarts' + this.randomId)).setOption({
@@ -103,7 +104,8 @@ export default {
       const lineShow = res.bugDisByMember.yAxis.map(item => ({
         ...item,
         type: 'bar',
-        barWidth: '20px'
+        barWidth: '20px',
+        itemStyle: { normal: { label: { show: true, position: 'top', textStyle: { color: '#409EFF' }}}}
       }))
       setTimeout(() => {
         echarts.init(document.getElementById('lineShow' + this.randomId)).setOption({
@@ -119,7 +121,8 @@ export default {
       const barShow = res.bugDisByPri.yAxis.map(item => ({
         ...item,
         type: 'bar',
-        barWidth: '20px'
+        barWidth: '20px',
+        itemStyle: { normal: { label: { show: true, position: 'top', textStyle: { color: '#409EFF' }}}}
       }))
       setTimeout(() => {
         echarts.init(document.getElementById('barShow' + this.randomId)).setOption({
@@ -150,7 +153,8 @@ export default {
           const data = res6.data.yaxis.map(item => ({
             ...item,
             type: 'line',
-            smooth: true
+            smooth: true,
+            itemStyle: { normal: { label: { show: true }}}
           }))
           setTimeout(() => {
             echarts.init(document.getElementById('line-echarts' + this.randomId)).setOption({
@@ -170,7 +174,8 @@ export default {
           const data = res2.data.yaxis.map(item => ({
             ...item,
             type: 'bar',
-            barWidth: '20px'
+            barWidth: '20px',
+            itemStyle: { normal: { label: { show: true, position: 'top', textStyle: { color: '#409EFF' }}}}
           }))
           setTimeout(() => {
             echarts.init(document.getElementById('lineShow' + this.randomId)).setOption({
@@ -189,7 +194,8 @@ export default {
           const data = res3.data.yaxis.map(item => ({
             ...item,
             type: 'bar',
-            barWidth: '20px'
+            barWidth: '20px',
+            itemStyle: { normal: { label: { show: true, position: 'top', textStyle: { color: '#409EFF' }}}}
           }))
           setTimeout(() => {
             echarts.init(document.getElementById('barShow' + this.randomId)).setOption({