Browse Source

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

see999 4 years ago
parent
commit
f80e48c037
1 changed files with 20 additions and 20 deletions
  1. 20 20
      src/xt_pages/qcd/patientComplianceDetails.vue

+ 20 - 20
src/xt_pages/qcd/patientComplianceDetails.vue View File

103
                 >
103
                 >
104
                   <p>{{ item.item_name }}</p>
104
                   <p>{{ item.item_name }}</p>
105
                    <span v-if="item.range_type == 1 && getvlist(item.inspection_minor)!=0"><span v-if="parseInt(item.min_range)<=getvlist(item.inspection_minor) && getvlist(item.inspection_minor)<=parseInt(item.large_range) "><i class="iconfont icon-gou gou"></i></span></span>
105
                    <span v-if="item.range_type == 1 && getvlist(item.inspection_minor)!=0"><span v-if="parseInt(item.min_range)<=getvlist(item.inspection_minor) && getvlist(item.inspection_minor)<=parseInt(item.large_range) "><i class="iconfont icon-gou gou"></i></span></span>
106
-                   <span v-if="item.range_type == 1 && getvlist(item.inspection_minor)!=0"><span v-if="parseInt(item.min_range)>getvlist(item.inspection_minor) || getvlist(item.inspection_minor)>parseInt(item.large_range)"><i class="iconfont icon-gantanhao gth"></i></span></span> 
106
+                   <span v-if="item.range_type == 1 && getvlist(item.inspection_minor)!=0"><span v-if="parseInt(item.min_range)>getvlist(item.inspection_minor) || getvlist(item.inspection_minor)>parseInt(item.large_range)"><i class="iconfont icon-gantanhao gth"></i></span></span>
107
                    <span v-if="item.range_type == 1 && getvlist(item.inspection_minor)==0"></span>
107
                    <span v-if="item.range_type == 1 && getvlist(item.inspection_minor)==0"></span>
108
                    <span v-if="item.range_type == 2 && getvlistwo(item.inspection_minor)!=''"><span v-if="getvlistwo(item.inspection_minor)==item.range_value"><i class="iconfont icon-gou gou"></i></span></span>
108
                    <span v-if="item.range_type == 2 && getvlistwo(item.inspection_minor)!=''"><span v-if="getvlistwo(item.inspection_minor)==item.range_value"><i class="iconfont icon-gou gou"></i></span></span>
109
                    <span v-if="item.range_type == 2 && getvlistwo(item.inspection_minor)!=''"><span v-if="getvlistwo(item.inspection_minor)!=item.range_value"><i class="iconfont icon-gantanhao gth"></i></span></span>
109
                    <span v-if="item.range_type == 2 && getvlistwo(item.inspection_minor)!=''"><span v-if="getvlistwo(item.inspection_minor)!=item.range_value"><i class="iconfont icon-gantanhao gth"></i></span></span>
386
                     { offset: 1, color: colorList[index][1] }
386
                     { offset: 1, color: colorList[index][1] }
387
                   ]);
387
                   ]);
388
                 },
388
                 },
389
-                lineStyle:{ 
389
+                lineStyle:{
390
                   color:'#409eff' //改变折线颜色
390
                   color:'#409eff' //改变折线颜色
391
-                }, 
391
+                },
392
                 barBorderRadius: [5, 5, 0, 0] //柱状角成椭圆形
392
                 barBorderRadius: [5, 5, 0, 0] //柱状角成椭圆形
393
               },
393
               },
394
 
394
 
456
          this.listQuery.end_time =""
456
          this.listQuery.end_time =""
457
          this.monthActive = 1
457
          this.monthActive = 1
458
         const startDate = moment().subtract('month', 3).format('YYYY-MM-DD')
458
         const startDate = moment().subtract('month', 3).format('YYYY-MM-DD')
459
-    
459
+
460
         this.startime = Date.parse(startDate)/1000
460
         this.startime = Date.parse(startDate)/1000
461
-       
461
+
462
         const endDate = moment(new Date()).format('YYYY-MM-DD')
462
         const endDate = moment(new Date()).format('YYYY-MM-DD')
463
-      
463
+
464
         this.endtime = Date.parse(endDate)/1000
464
         this.endtime = Date.parse(endDate)/1000
465
-    
465
+
466
         this.getlistDetail()
466
         this.getlistDetail()
467
          this.getIdSlist()
467
          this.getIdSlist()
468
       }
468
       }
469
-    
469
+
470
 
470
 
471
        //近半年
471
        //近半年
472
       if(month == 2){
472
       if(month == 2){
474
         this.listQuery.end_time =""
474
         this.listQuery.end_time =""
475
         this.monthActive = 2
475
         this.monthActive = 2
476
         const startDate = moment().subtract('month', 6).format('YYYY-MM-DD')
476
         const startDate = moment().subtract('month', 6).format('YYYY-MM-DD')
477
-        
477
+
478
         this.startime = Date.parse(startDate)/1000
478
         this.startime = Date.parse(startDate)/1000
479
         const endDate = moment(new Date()).format('YYYY-MM-DD')
479
         const endDate = moment(new Date()).format('YYYY-MM-DD')
480
         this.endtime = Date.parse(endDate)/1000
480
         this.endtime = Date.parse(endDate)/1000
507
            }
507
            }
508
            if(this.normData[i].range_type == 2){
508
            if(this.normData[i].range_type == 2){
509
              itemName = this.normData[i].item_name
509
              itemName = this.normData[i].item_name
510
-           } 
510
+           }
511
          }
511
          }
512
       }
512
       }
513
       this.itemName = itemName
513
       this.itemName = itemName
620
             // console.log("list是什么",list)
620
             // console.log("list是什么",list)
621
             for(let i=0;i<list.length;i++){
621
             for(let i=0;i<list.length;i++){
622
               if(parseInt(list[i].inspect_value)>= parseInt(list[i].range_min) && parseInt(list[i].inspect_value)<= parseInt(list[i].range_max)){
622
               if(parseInt(list[i].inspect_value)>= parseInt(list[i].range_min) && parseInt(list[i].inspect_value)<= parseInt(list[i].range_max)){
623
-                    this.isTrue = 1  
623
+                    this.isTrue = 1
624
                }
624
                }
625
                if(parseInt(list[i].inspect_value)< parseInt(list[i].range_min) || parseInt(list[i].inspect_value) > parseInt(list[i].range_max)){
625
                if(parseInt(list[i].inspect_value)< parseInt(list[i].range_min) || parseInt(list[i].inspect_value) > parseInt(list[i].range_max)){
626
                     this.isTrue =0
626
                     this.isTrue =0
627
                }
627
                }
628
-               
628
+
629
               if(list[i].range_type == 1){
629
               if(list[i].range_type == 1){
630
                     this.rangetype = 1
630
                     this.rangetype = 1
631
                     this.modesData.xAxis.push(this.getTime(list[i].inspect_date));
631
                     this.modesData.xAxis.push(this.getTime(list[i].inspect_date));
647
               }else{
647
               }else{
648
                 this.getArrLength(this.char2.xAxis.data,2)
648
                 this.getArrLength(this.char2.xAxis.data,2)
649
               }
649
               }
650
-       
650
+
651
           }
651
           }
652
 
652
 
653
        })
653
        })
672
           var monthEndDate = moment().endOf('month').format('YYYY-MM-DD HH:mm:ss');
672
           var monthEndDate = moment().endOf('month').format('YYYY-MM-DD HH:mm:ss');
673
           this.endtime =Date.parse(monthEndDate)/1000-1;//s
673
           this.endtime =Date.parse(monthEndDate)/1000-1;//s
674
         }
674
         }
675
-     
675
+
676
           const params = {
676
           const params = {
677
             patientid:this.patientid,
677
             patientid:this.patientid,
678
             startime:this.startime,
678
             startime:this.startime,
685
               var list =  response.data.data.list
685
               var list =  response.data.data.list
686
               for(let i=0;i<list.length;i++){
686
               for(let i=0;i<list.length;i++){
687
                 if(parseInt(list[i].inspect_value)>= parseInt(list[i].range_min) && parseInt(list[i].inspect_value)<= parseInt(list[i].range_max)){
687
                 if(parseInt(list[i].inspect_value)>= parseInt(list[i].range_min) && parseInt(list[i].inspect_value)<= parseInt(list[i].range_max)){
688
-                      this.isTrue = 1  
688
+                      this.isTrue = 1
689
                 }
689
                 }
690
                 if(parseInt(list[i].inspect_value)< parseInt(list[i].range_min) || parseInt(list[i].inspect_value) > parseInt(list[i].range_max)){
690
                 if(parseInt(list[i].inspect_value)< parseInt(list[i].range_min) || parseInt(list[i].inspect_value) > parseInt(list[i].range_max)){
691
                       this.isTrue =0
691
                       this.isTrue =0
704
                   this.char2.xAxis.data.push(this.getTime(list[i].inspect_date))
704
                   this.char2.xAxis.data.push(this.getTime(list[i].inspect_date))
705
                   this.char2.series[0].name = list[i].range_value
705
                   this.char2.series[0].name = list[i].range_value
706
                 }
706
                 }
707
-                
708
 
707
 
709
-            
708
+
709
+
710
             }
710
             }
711
               this.chart.series[0].data = this.modesData.series
711
               this.chart.series[0].data = this.modesData.series
712
               this.chart.xAxis.data = this.modesData.xAxis
712
               this.chart.xAxis.data = this.modesData.xAxis
787
              }else{
787
              }else{
788
                itemvalue = 0
788
                itemvalue = 0
789
              }
789
              }
790
-             
790
+
791
           }
791
           }
792
         }
792
         }
793
         return itemvalue
793
         return itemvalue
801
               }else{
801
               }else{
802
                 itemvalue = ''
802
                 itemvalue = ''
803
               }
803
               }
804
-              
804
+
805
             }
805
             }
806
         }
806
         }
807
         return itemvalue
807
         return itemvalue
810
 
810
 
811
    created(){
811
    created(){
812
      this.patientid =  this.$route.query.patientid
812
      this.patientid =  this.$route.query.patientid
813
-    
813
+
814
      this.inspect_date = this.$route.query.date
814
      this.inspect_date = this.$route.query.date
815
      //获取指标项
815
      //获取指标项
816
       this.getNormData()
816
       this.getNormData()