Przeglądaj źródła

部门报表 环形图修改

XuZinan 2 lat temu
rodzic
commit
b0230108ca

+ 0 - 1
src/pages/PurchaseAdmin/PurchaseList/Approval/ModifyManagerModal.js

@@ -11,7 +11,6 @@ function ModifyManagerModal(props) {
   // }, []);
   const handleOk = () => {
     form.validateFields().then(({ managerID }) => {
-      console.log(managerID, currentItem);
       const [user_id, dep_id] = managerID.split('||');
       dispatch({
         type: 'approval/modifyManager',

+ 21 - 8
src/pages/PurchaseAdmin/PurchaseList/Report/Department.js

@@ -173,13 +173,14 @@ function Department(props) {
           type: 'pie',
           radius: ['40%', '70%'],
           data: current.data,
-          emphasis: {
-            itemStyle: {
-              shadowBlur: 10,
-              shadowOffsetX: 0,
-              shadowColor: 'rgba(0, 0, 0, 0.5)',
-            },
-          },
+          hoverAnimation: false,
+          // emphasis: {
+          //   itemStyle: {
+          //     shadowBlur: 10,
+          //     shadowOffsetX: 0,
+          //     shadowColor: 'rgba(0, 0, 0, 0.5)',
+          //   },
+          // },
         },
       ],
     });
@@ -201,7 +202,19 @@ function Department(props) {
       data.push({
         value: item.type_lost_cnt,
         name: '漏填工时',
-        itemStyle: { color: 'transparent' },
+        tooltip: {
+          backgroundColor: 'transparent',
+          formatter: () => ' ',
+        },
+        itemStyle: { color: '#f7f7f7' },
+        emphasis: {
+          label: { show: false },
+          labelLine: { show: false },
+          itemStyle: { color: '#f7f7f7' },
+        },
+        label: { show: false },
+        labelLine: { show: false },
+        selected: false,
       });
       setCurrent({ data, usage_percent: item.usage_percent });
     } else {