瀏覽代碼

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

csx 5 年之前
父節點
當前提交
f772ec02c7

+ 2 - 1
src/xt_pages/qcd/indicatorControlAnalysis/components/office.vue 查看文件

@@ -153,6 +153,7 @@
153 153
 
154 154
           }
155 155
         },
156
+        range_type:'',
156 157
         total:0,
157 158
         item_name: '',
158 159
         query: {
@@ -279,7 +280,7 @@
279 280
       },
280 281
       jumpDetail(row){
281 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 285
       handleSizeChange(limit) {
285 286
         this.query.limit = limit

+ 5 - 5
src/xt_pages/qcd/indicatorControlAnalysis/patientInspectionDetail.vue 查看文件

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