yanghao 1 tydzień temu
rodzic
commit
696863f1e6
1 zmienionych plików z 9 dodań i 9 usunięć
  1. 9 9
      src/views/pms/stat/rhkb/inventorySituation.vue

+ 9 - 9
src/views/pms/stat/rhkb/inventorySituation.vue

@@ -131,7 +131,7 @@ function getChartLayout(chartRef: Ref<HTMLDivElement | undefined>) {
   return {
     compact,
     distributionTitleTop: compact ? 6 : 18,
-    distributionTitleFontSize: compact ? 12 : 14,
+    distributionTitleFontSize: compact ? 9 : 11,
     distributionTitleLineHeight: compact ? 14 : 16,
     distributionPieRadius: compact ? ['38%', '50%'] : ['40%', '52%'],
     distributionPieCenterY: compact ? '60%' : '57%',
@@ -197,7 +197,7 @@ function getDistributionOption(
     title: [
       {
         text: '各单位存货占比分布',
-        left: '26.5%',
+        left: '20.5%',
         top: 4,
         textAlign: 'center',
         textStyle: {
@@ -210,7 +210,7 @@ function getDistributionOption(
       },
       {
         text: '各单位积压占比分布',
-        left: '72.5%',
+        left: '69.5%',
         top: 4,
         textAlign: 'center',
         textStyle: {
@@ -254,7 +254,7 @@ function getDistributionOption(
       },
       {
         type: 'text',
-        left: '69%',
+        left: '67%',
         top: '45%',
         style: {
           text: `总积压\n${formatAmount(backlogTotal)}万元`,
@@ -288,8 +288,8 @@ function getDistributionOption(
         },
         labelLine: {
           show: true,
-          length: layout.compact ? 6 : 10,
-          length2: layout.compact ? 8 : 14,
+          // length: layout.compact ? 6 : 10,
+          // length2: layout.compact ? 8 : 14,
           minTurnAngle: 90,
           lineStyle: {
             color: distributionColors[0],
@@ -324,7 +324,7 @@ function getDistributionOption(
         name: '积压库存',
         type: 'pie',
         radius: layout.distributionPieRadius,
-        center: ['75%', layout.distributionPieCenterY],
+        center: ['73%', layout.distributionPieCenterY],
         minAngle: 5,
         avoidLabelOverlap: true,
         label: {
@@ -340,8 +340,8 @@ function getDistributionOption(
         },
         labelLine: {
           show: true,
-          length: layout.compact ? 6 : 10,
-          length2: layout.compact ? 8 : 14,
+          // length: layout.compact ? 6 : 10,
+          // length2: layout.compact ? 8 : 14,
           minTurnAngle: 90,
           lineStyle: {
             color: distributionColors[0],