Browse Source

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

csx 5 years ago
parent
commit
f772ec02c7

+ 2 - 1
src/xt_pages/qcd/indicatorControlAnalysis/components/office.vue View File

153
 
153
 
154
           }
154
           }
155
         },
155
         },
156
+        range_type:'',
156
         total:0,
157
         total:0,
157
         item_name: '',
158
         item_name: '',
158
         query: {
159
         query: {
279
       },
280
       },
280
       jumpDetail(row){
281
       jumpDetail(row){
281
         // this.$router.push("/qcd/indicatorControlAnalysis/bloodPressureDetails?id="+patient_id)
282
         // this.$router.push("/qcd/indicatorControlAnalysis/bloodPressureDetails?id="+patient_id)
282
-        this.$router.push("/qcd/inspection/detail?project_id="+row.project_id+"&item_id="+row.item_id+"&range_type="+row.inspect_type+"&patient_id="+row.patient.id)
283
+        this.$router.push("/qcd/inspection/detail?project_id="+row.project_id+"&item_id="+row.item_id+"&range_type="+this.query.range_type+"&patient_id="+row.patient.id)
283
       },
284
       },
284
       handleSizeChange(limit) {
285
       handleSizeChange(limit) {
285
         this.query.limit = limit
286
         this.query.limit = limit

+ 5 - 5
src/xt_pages/qcd/indicatorControlAnalysis/patientInspectionDetail.vue View File

491
             this.query.start_time = moment().subtract('month', 1).format('YYYY-MM-DD')
491
             this.query.start_time = moment().subtract('month', 1).format('YYYY-MM-DD')
492
             // 本月的结束时间
492
             // 本月的结束时间
493
             this.query.end_time = moment(new Date()).format('YYYY-MM-DD')
493
             this.query.end_time = moment(new Date()).format('YYYY-MM-DD')
494
-            this.query.patient_id = this.$route.query.patient_id
495
             this.query.project_id = this.$route.query.project_id
494
             this.query.project_id = this.$route.query.project_id
496
             this.query.item_id = this.$route.query.item_id
495
             this.query.item_id = this.$route.query.item_id
497
             this.query.range_type = this.$route.query.range_type
496
             this.query.range_type = this.$route.query.range_type
502
             const startDate = moment().subtract('month', 3).format('YYYY-MM-DD')
501
             const startDate = moment().subtract('month', 3).format('YYYY-MM-DD')
503
             this.query.start_time = startDate
502
             this.query.start_time = startDate
504
             const endDate = moment(new Date()).format('YYYY-MM-DD')
503
             const endDate = moment(new Date()).format('YYYY-MM-DD')
505
-            this.query.patient_id = this.$route.query.patient_id
504
+
506
             this.query.project_id = this.$route.query.project_id
505
             this.query.project_id = this.$route.query.project_id
507
             this.query.item_id = this.$route.query.item_id
506
             this.query.item_id = this.$route.query.item_id
508
             this.query.range_type = this.$route.query.range_type
507
             this.query.range_type = this.$route.query.range_type
513
           case 3: //近半年
512
           case 3: //近半年
514
             this.query.start_time = moment().subtract('month', 6).format('YYYY-MM-DD')
513
             this.query.start_time = moment().subtract('month', 6).format('YYYY-MM-DD')
515
             this.query.end_time = moment(new Date()).format('YYYY-MM-DD')
514
             this.query.end_time = moment(new Date()).format('YYYY-MM-DD')
516
-            this.query.patient_id = this.$route.query.patient_id
515
+
517
             this.query.project_id = this.$route.query.project_id
516
             this.query.project_id = this.$route.query.project_id
518
             this.query.item_id = this.$route.query.item_id
517
             this.query.item_id = this.$route.query.item_id
519
             this.query.range_type = this.$route.query.range_type
518
             this.query.range_type = this.$route.query.range_type
523
           case 4: //近一年
522
           case 4: //近一年
524
             this.query.start_time = moment().subtract('month', 12).format('YYYY-MM-DD')
523
             this.query.start_time = moment().subtract('month', 12).format('YYYY-MM-DD')
525
             this.query.end_time = moment(new Date()).format('YYYY-MM-DD')
524
             this.query.end_time = moment(new Date()).format('YYYY-MM-DD')
526
-            this.query.patient_id = this.$route.query.patient_id
525
+
527
             this.query.project_id = this.$route.query.project_id
526
             this.query.project_id = this.$route.query.project_id
528
             this.query.item_id = this.$route.query.item_id
527
             this.query.item_id = this.$route.query.item_id
529
             this.query.range_type = this.$route.query.range_type
528
             this.query.range_type = this.$route.query.range_type
533
             this.query.start_time = moment().subtract('month', 1).format('YYYY-MM-DD')
532
             this.query.start_time = moment().subtract('month', 1).format('YYYY-MM-DD')
534
             // 本月的结束时间
533
             // 本月的结束时间
535
             this.query.end_time = moment(new Date()).format('YYYY-MM-DD')
534
             this.query.end_time = moment(new Date()).format('YYYY-MM-DD')
536
-            this.query.patient_id = this.$route.query.patient_id
537
             this.query.project_id = this.$route.query.project_id
535
             this.query.project_id = this.$route.query.project_id
538
             this.query.item_id = this.$route.query.item_id
536
             this.query.item_id = this.$route.query.item_id
539
             this.query.range_type = this.$route.query.range_type
537
             this.query.range_type = this.$route.query.range_type
608
                 }
606
                 }
609
               }
607
               }
610
 
608
 
609
+              console.log(this.options.xAxis.data)
610
+
611
               console.log(this.options.series[0].data)
611
               console.log(this.options.series[0].data)
612
 
612
 
613
               //获取无法确定选项的颜色
613
               //获取无法确定选项的颜色