Просмотр исходного кода

fix: 企业小程序数据统计页面优化图表显示

- 隐藏饼图(年龄分布)和环形图(在职状态统计)的标签线,避免移动端文字被截断
- 在职状态统计图例将已离职适配显示为离职

Generated with [Claude Code](https://claude.com/claude-code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
yourname 3 недель назад
Родитель
Сommit
c2845ee9e0
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      mini/src/pages/yongren/statistics/index.tsx

+ 3 - 3
mini/src/pages/yongren/statistics/index.tsx

@@ -388,7 +388,7 @@ const Statistics: React.FC<StatisticsProps> = () => {
               }
             },
             label: {
-              formatter: '{b}: {c}'
+              show: false
             }
           }]
         }}
@@ -421,7 +421,7 @@ const Statistics: React.FC<StatisticsProps> = () => {
             radius: ['40%', '70%'],
             center: ['35%', '50%'],
             data: stats.map(item => ({
-              name: item.key,
+              name: item.key === '已离职' ? '离职' : item.key,
               value: Math.round(item.value || 0)
             })),
             emphasis: {
@@ -432,7 +432,7 @@ const Statistics: React.FC<StatisticsProps> = () => {
               }
             },
             label: {
-              formatter: '{b}: {c}'
+              show: false
             }
           }]
         }}