Răsfoiți Sursa

fix:人员管理看板

zhangjingyuan 3 ani în urmă
părinte
comite
42607f4731

+ 6 - 4
src/views/peopleManages/personComcont/RingChart.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="pieView">
-    <div style="height: 20%;line-height: 30px;text-align: left;padding-left: 10px;color: white;">{{info.config.title||""}}</div>
-    <div style="width:100%;height:80%;display: inline-block; overflow: hidden;">
+    <div style="height: 16%;line-height: 30px;text-align: left;padding-left: 10px;color: white;">{{info.config.title||""}}</div>
+    <div style="width:100%;height:86%;display: inline-block; overflow: hidden;">
       <div :id="info.config.idSelector" style="width:100%;height:95%;overflow: hidden;"> </div>
     </div>
   </div>
@@ -47,8 +47,9 @@ export default {
         color: this.info.color,
         legend: {
           // show: true,
-          z: 3,
-          orient: 'vertical',
+          z: 2,
+          top:'-2%',
+          // orient: 'vertical',
           left: 'right',
           textStyle:{
             color: '#fff'
@@ -62,6 +63,7 @@ export default {
             // name: "Access From",
             type: "pie",
             radius: ["40%", "70%"],
+            top:'2%',
             avoidLabelOverlap: false,
             label: {
               show: true,

+ 2 - 2
src/views/peopleManages/taskStatistics/index.vue

@@ -145,7 +145,7 @@ export default {
         },
         legend: {
           // show: true,
-          left: "0%",
+          right: "0%",
           itemGap: 2,
           itemWidth: 16,
           textStyle: {
@@ -274,7 +274,7 @@ export default {
         },
         legend: {
           // show: true,
-          left: "0%",
+          right: "0%",
           itemGap: 2,
           itemWidth: 16,
           textStyle: {

+ 6 - 3
src/views/system/jbdHome/board/component/getPieView.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="pieView">
-    <div style="height: 20%;line-height: 30px;text-align: left;padding-left: 10px;color: white;">{{info.config.title||""}}</div>   
-    <div style="width:100%;height:80%;display: inline-block; overflow: hidden;">
+    <div style="height: 14%;line-height: 30px;text-align: left;padding-left: 10px;color: white;">{{info.config.title||""}}</div>   
+    <div style="width:100%;height:86%;display: inline-block; overflow: hidden;">
       <div :id="info.config.idSelector" style="width:100%;height:95%;overflow: hidden;"> </div>
     </div>
   </div>
@@ -47,6 +47,7 @@ export default {
             fontWeight: '600'
         },
         },
+        
         color:this.info.color,
         tooltip: {
           trigger: 'item',
@@ -55,10 +56,12 @@ export default {
         label: {
           formatter: '{b}\n({d}%)'
         },
+        
         legend: {
           show: true,
           z: 3,
-          orient: 'vertical',
+          
+          // orient: 'vertical', 标题横竖//
           left: 'right',
           textStyle:{
             color: '#fff'