Parcourir la source

集团首页修改专维取值字段

fujunwen il y a 4 ans
Parent
commit
2bfd620fb6
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4 4
      src/views/statistics/index.vue

+ 4 - 4
src/views/statistics/index.vue

@@ -133,8 +133,8 @@
                                 <div class='ratio'>
                                     <span>{{option.cname}}</span>
                                     <span v-if='item.title === "专维"'>
-                                        <span>{{option.rptGlsmsStatistics.unfinished}} /</span>
-                                        <span>{{option.rptGlsmsStatistics.overdue_unfinished || 0}} /</span>
+                                        <span>{{option.rptGlsmsStatistics.overdue_unfinished}} /</span>
+                                        <span>{{option.rptGlsmsStatistics.due_num || 0}} /</span>
                                         <span>{{option.rptGlsmsStatistics.total}}</span>
                                     </span>
                                     <span v-else>
@@ -544,13 +544,13 @@ export default {
             let ratio = 0
             if (title === '专维') {
                 item.overdue_unfinished = item.overdue_unfinished || 0
-                if (item.overdue_unfinished >0 || item.unfinished > 0) {
+                if (item.overdue_unfinished >0 || item.due_num > 0) {
                     bg = 'linear-gradient(to right, #F54E45 , #F54E45)'  
                 }
                 // else {
                 //     bg = this.barColors[type]
                 // }
-                ratio = ((item.overdue_unfinished  + item.unfinished) / item.total) * 100
+                ratio = ((item.overdue_unfinished  + item.due_num) / item.total) * 100
             } else {
                 if (item.due_num > 0) {
                     bg = 'linear-gradient(to right, #F54E45 , #F54E45)'