ymz 12 годин тому
батько
коміт
3c9943d81d
2 змінених файлів з 4 додано та 4 видалено
  1. 2 2
      .env.development
  2. 2 2
      src/const/crud/statistics/index.js

+ 2 - 2
.env.development

@@ -2,8 +2,8 @@ NODE_ENV = 'development'
 VUE_APP_TYPE= 'dev'
 # VUE_APP_URL = 'http://10.144.62.235:9999'
 # VUE_APP_URL = 'https://mic.freerr.cn'
-# VUE_APP_URL = 'https://mic.cnbg.com.cn'
+VUE_APP_URL = 'https://mic.cnbg.com.cn'
 # VUE_APP_URL = 'https://cnbg.yaoyi.net'
 # VUE_APP_URL = 'http://192.168.110.25:9999'
-VUE_APP_URL = 'https://mic-t.cnbg.com.cn'
+# VUE_APP_URL = 'https://mic-t.cnbg.com.cn'
 # VUE_APP_URL = 'http://nk5xzj.natappfree.cc'

+ 2 - 2
src/const/crud/statistics/index.js

@@ -384,8 +384,8 @@ export const supervisionTableOption = {
       prop: 'supervisionRate',
       formatter: function(row) {
         if (row.taskSupStat && row.taskSupStat.total == 0) return '0%';
-        let percentage = (row.taskSupStat.supTotal / row.taskSupStat.total) * 100;
-        return `${percentage.toFixed(2)}%`;
+        let percentage = (row?.taskSupStat?.supTotal / row.taskSupStat.total) * 100;
+        return percentage == 0 ? '0%' : `${percentage.toFixed(2)}%`;
       }
     },
     {