linwenxin 1 gadu atpakaļ
vecāks
revīzija
511d80618f

+ 1 - 0
src/views/bigViews/dataView1/components/mapdata.vue

@@ -348,6 +348,7 @@ export default {
         // 配置项
         var option = {
           tooltip: {
+            confine: true,
             trigger: 'item',
             formatter: '{b}'
           },

+ 1 - 0
src/views/bigViews/dataView1/components/orderAmountTrend.vue

@@ -56,6 +56,7 @@ export default {
           text: ''
         },
         tooltip: {
+          confine: true,
           trigger: 'axis',
           transitionDuration: 0,
           backgroundColor: '#092a66',

+ 2 - 1
src/views/bigViews/dataView1/components/orderTrend.vue

@@ -63,7 +63,8 @@ export default {
       }
       myChart4 = new echarts.init(document.getElementById('orderEcharts1'));
       myChart4.setOption({
-        tooltip: {
+        tooltip : {
+          confine: true,
           trigger: 'axis',
           transitionDuration: 0,
           backgroundColor: '#092a66',

+ 1 - 0
src/views/bigViews/dataView1/components/trendChart.vue

@@ -85,6 +85,7 @@ export default {
       minY = minY < 1 ? 1 : minY
       var option = {
         tooltip: {
+          confine: true,
           trigger: 'axis',
           formatter: function (params) {
             var res = '' + params[1].name + ' : ' + params[1].value;

+ 1 - 0
src/views/bigViews/dataView1/components/workOrderTrend.vue

@@ -108,6 +108,7 @@ export default {
           text: ''
         },
         tooltip: {
+          confine: true,
           trigger: 'axis',
           transitionDuration: 0,
           backgroundColor: '#092a66',