소스 검색

bug修改

XMLWAN 5 년 전
부모
커밋
2b0845ef46
1개의 변경된 파일8개의 추가작업 그리고 4개의 파일을 삭제
  1. 8 4
      src/xt_pages/qcd/officesControlAnalysis/time.vue

+ 8 - 4
src/xt_pages/qcd/officesControlAnalysis/time.vue 파일 보기

593
             var count =  response.data.data.count
593
             var count =  response.data.data.count
594
            console.log("count",count) 
594
            console.log("count",count) 
595
             var countwo = response.data.data.countwo 
595
             var countwo = response.data.data.countwo 
596
-            // console.log("countwo",countwo)
596
+           console.log("countwo",countwo)
597
             countwo.map(item=>{
597
             countwo.map(item=>{
598
               count.push(item)
598
               count.push(item)
599
             })
599
             })
607
                 }
607
                 }
608
               }
608
               }
609
             }
609
             }
610
-          //  console.log("arr",arr )
610
+           console.log("arr",arr )
611
            
611
            
612
             var arrtwo =  this.arrayDate(count,this.normData)
612
             var arrtwo =  this.arrayDate(count,this.normData)
613
             for(let i=0;i<arrtwo.length;i++){
613
             for(let i=0;i<arrtwo.length;i++){
619
             arrtwo.map(item => {
619
             arrtwo.map(item => {
620
               arr.push(item)
620
               arr.push(item)
621
             })
621
             })
622
-            arr.sort(this.compare('sort'))  
623
             console.log("arr",arr)
622
             console.log("arr",arr)
623
+             arr.sort(this.compare('sort'))  
624
+            // arr.sort((a,b)=>{
625
+            //     return projectArr.indexOf(a.ProjectName)-projectArr.indexOf(b.ProjectName);
626
+            //   });
627
+            // console.log("arr",arr)
624
             for(const key in this.normData ){
628
             for(const key in this.normData ){
625
                this.modesData.xAxis.push(this.normData[key].item_name);
629
                this.modesData.xAxis.push(this.normData[key].item_name);
626
                 if(key in arr){
630
                 if(key in arr){
632
             this.chart.series[0].data = this.modesData.series
636
             this.chart.series[0].data = this.modesData.series
633
             this.chart.xAxis.data = this.modesData.xAxis
637
             this.chart.xAxis.data = this.modesData.xAxis
634
             this.getArrLength(this.chart.xAxis.data)
638
             this.getArrLength(this.chart.xAxis.data)
635
-            console.log('====',this.modesData) 
639
+            // console.log('====',this.modesData) 
636
           
640
           
637
          }
641
          }
638
       })
642
       })