dedsudiyu hai 1 mes
pai
achega
24d0d781cf

+ 4 - 0
src/views/cengterMaxBox/secondaryCollegeUnitLaboratoryStatistics/index.vue

@@ -37,6 +37,10 @@
         laboratorySubRelInfoLabStateStatisticsAll().then(response => {
           this.$set(this,'numIndex',0);
           this.$set(this,'maxNum',response.data.labLevelVOList.length-1);
+          response.data.labLevelVOList.forEach((item)=>{
+            item.num = item.levelOneCount + item.levelTwoCount + item.levelThreeCount + item.levelFourCount;
+          })
+          response.data.labLevelVOList = response.data.labLevelVOList.slice().sort((a, b) => b.num - a.num);
           this.$set(this,'dataList',response.data.labLevelVOList);
           this.minTimeFunction();
           // let obj = {