Sfoglia il codice sorgente

Merge branch 'develop' of http://120.55.44.4:10080/xujunjie/gt_client_pad into develop

xujunjie 1 anno fa
parent
commit
1b14898c97
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      src/pages/SystemDaily/index.js

+ 2 - 2
src/pages/SystemDaily/index.js

@@ -15,11 +15,11 @@ const SystemDaily = (props) => {
       const result = {
         ...data,
         task_percent:
-          data.push_task !== 0
+          Number(data.push_task) !== 0
             ? (data.push_complete_task / data.push_task).toFixed(2)
             : 0,
         work_percent:
-          data.work_order_task !== 0
+          Number(data.work_order_task) !== 0
             ? (data.work_order_complete_task / data.work_order_task).toFixed(2)
             : 0,
       };