From a1ff69f228b7a0d08959e6b25eff2dac6085df8d Mon Sep 17 00:00:00 2001
From: zhuzhuanzhuan
Date: 星期四, 21 九月 2023 17:59:23 +0800
Subject: [PATCH] 1、优化数据报表模块页面布局 2、修复因时间选择器的showTime属性导致的布局混乱 3、删除假期管理页面中重复的导出按钮组件

---
 src/views/mdc/base/modules/StatisticsChart/StatisticsLegend.vue |   18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/src/views/mdc/base/modules/StatisticsChart/StatisticsLegend.vue b/src/views/mdc/base/modules/StatisticsChart/StatisticsLegend.vue
index eec09ae..c025553 100644
--- a/src/views/mdc/base/modules/StatisticsChart/StatisticsLegend.vue
+++ b/src/views/mdc/base/modules/StatisticsChart/StatisticsLegend.vue
@@ -359,7 +359,11 @@
                   textStyle:{
                     color:'#000',
                   },
-                  formatter:"鏃堕暱锛歿c}H"
+                  // formatter:"鏃堕暱锛歿c}H",
+                  formatter:params=>{
+                    const value=String(params.value)
+                    return value.length==2&&value[0]==='0'?`鏃堕暱锛�${value.slice(1)}H`:`鏃堕暱锛�${value}H`
+                  }
                 },
                 itemStyle: {
                   normal: {
@@ -456,7 +460,11 @@
                 textStyle:{
                   color:'#000',
                 },
-                formatter:"鏃堕暱锛歿c}H"
+                // formatter:"鏃堕暱锛歿c}H",
+                formatter:params=>{
+                  const value=String(params.value)
+                  return value.length==2&&value[0]==='0'?`鏃堕暱锛�${value.slice(1)}H`:`鏃堕暱锛�${value}H`
+                }
               },
             itemStyle: {
               normal: {
@@ -549,7 +557,11 @@
               textStyle:{
                 color:'#000',
               },
-              formatter:"鏃堕暱锛歿c}H"
+              // formatter:"鏃堕暱锛歿c}H",
+              formatter:params=>{
+                const value=String(params.value)
+                return value.length==2&&value[0]==='0'?`鏃堕暱锛�${value.slice(1)}H`:`鏃堕暱锛�${value}H`
+              }
             },
             itemStyle: {
               normal: {

--
Gitblit v1.9.3