Renxy hai 1 ano
pai
achega
45d58fabfb
Modificáronse 1 ficheiros con 12 adicións e 8 borrados
  1. 12 8
      src/pages/SmartReport/index.js

+ 12 - 8
src/pages/SmartReport/index.js

@@ -381,7 +381,7 @@ const SmartReport = () => {
                 <div
                   ref={eqDomRef}
                   style={{
-                    height: '8rem',
+                    height: '6rem',
                     width: 'calc(100% - 1.2rem)',
                     margin: '0 0 0 0.8rem',
                   }}
@@ -408,7 +408,7 @@ const SmartReport = () => {
                 <div
                   ref={workScoreDomRef}
                   style={{
-                    height: '8rem',
+                    height: '6rem',
                     width: 'calc(100% - 1.2rem)',
                     margin: '0 0 0 0.8rem',
                   }}
@@ -462,7 +462,7 @@ const SmartReport = () => {
                   <div
                     ref={taskDomRef}
                     style={{
-                      height: '4rem',
+                      height: '6rem',
                       width: '100%',
                       marginTop: '0.2rem',
                     }}
@@ -473,7 +473,7 @@ const SmartReport = () => {
                   <div
                     ref={workDomRef}
                     style={{
-                      height: '4rem',
+                      height: '6rem',
                       width: '100%',
                       marginTop: '0.2rem',
                     }}
@@ -523,22 +523,26 @@ const getPieOption = (chartData, isLeft = false) => {
           orient: 'vertical',
           left: 'left',
           top: 'center',
+          textStyle: {
+            color: '#000000',
+            fontSize: 12,
+          },
         }
       : {
           orient: 'horizontal',
-          // left: 'left',
           itemWidth: 10,
           itemHeight: 8,
           textStyle: {
             color: '#000000',
-            fontSize: 12,
+            fontSize: 10,
           },
         },
     series: [
       {
         type: 'pie',
-        top: isLeft ? 0 : '10%',
-        radius: isLeft ? '60%' : '50%',
+        top: isLeft ? 0 : '20%',
+        radius: isLeft ? '60%' : '40%',
+        label: isLeft ? {} : { fontSize: 10 },
         data: chartData,
         emphasis: {
           itemStyle: {