dedsudiyu 1 개월 전
부모
커밋
24d0d781cf
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      src/views/cengterMaxBox/secondaryCollegeUnitLaboratoryStatistics/index.vue

+ 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 = {