瀏覽代碼

统计样式

YY 2 年之前
父節點
當前提交
8dc5c55dd5

+ 4 - 1
src/views/system/statistics/parts/card-1.vue

@@ -98,7 +98,10 @@ export default {
         },
         color: '#FFD700',
         tooltip: {
-          trigger: 'axis',
+          trigger: 'item',
+          axisPointer: { type: 'shadow' },
+          confine: true,
+          formatter: '{b}:收入{c}元', // 格式化数值百分比输出
         },
         xAxis: {
           type: 'category',

+ 4 - 1
src/views/system/statistics/parts/card-2.vue

@@ -98,7 +98,10 @@ export default {
         },
         color: '#FFD700',
         tooltip: {
-          trigger: 'axis',
+          trigger: 'item',
+          axisPointer: { type: 'shadow' },
+          confine: true,
+          formatter: '{b}:{c}单',
         },
         xAxis: {
           type: 'category',

+ 4 - 1
src/views/system/statistics/parts/card-3.vue

@@ -98,7 +98,10 @@ export default {
         },
         color: '#FFD700',
         tooltip: {
-          trigger: 'axis',
+          trigger: 'item',
+          axisPointer: { type: 'shadow' },
+          confine: true,
+          formatter: '{b}:{c}单',
         },
         xAxis: {
           type: 'category',

+ 4 - 1
src/views/system/statistics/parts/card-4.vue

@@ -98,7 +98,10 @@ export default {
         },
         color: '#FFD700',
         tooltip: {
-          trigger: 'axis',
+          trigger: 'item',
+          axisPointer: { type: 'shadow' },
+          confine: true,
+          formatter: '{b}:{c}单',
         },
         xAxis: {
           type: 'category',

+ 4 - 1
src/views/system/statistics/parts/card-5.vue

@@ -98,7 +98,10 @@ export default {
         },
         color: '#FFD700',
         tooltip: {
-          trigger: 'axis',
+          trigger: 'item',
+          axisPointer: { type: 'shadow' },
+          confine: true,
+          formatter: '{b}:{c}单',
         },
         xAxis: {
           type: 'category',

+ 4 - 1
src/views/system/statistics/parts/card-6.vue

@@ -104,7 +104,10 @@ export default {
         },
         color: '#FFD700',
         tooltip: {
-          trigger: 'axis',
+          trigger: 'item',
+          axisPointer: { type: 'shadow' },
+          confine: true,
+          formatter: '{b}:{c}单',
         },
         xAxis: {
           type: 'category',