Browse Source

bug修改

XMLWAN 4 years ago
parent
commit
6ad64f3aa8

+ 2 - 1
src/api/common/common.js View File

@@ -149,7 +149,7 @@ export function getTotalLapseCount(startime, endtime) {
149 149
     startime: startime,
150 150
     endtime: endtime
151 151
   }
152
-  console.log('params', params)
152
+  console.log('转归params', params)
153 153
   return request({
154 154
     url: '/com/api/gettotallapsecount',
155 155
     method: 'get',
@@ -199,6 +199,7 @@ export function getTotalDialysisCount(startime, endtime) {
199 199
     startime: startime,
200 200
     endtime: endtime
201 201
   }
202
+  console.log('透析年龄======', params)
202 203
   return request({
203 204
     url: '/com/api/gettotaldialysiscount',
204 205
     method: 'get',

+ 1 - 1
src/xt_pages/qcd/officesControlAnalysis/project.vue View File

@@ -574,7 +574,7 @@ export default {
574 574
        getMonthProjectList(params).then(response=>{
575 575
         if(response.data.state === 1){
576 576
             var monthlist = response.data.data.monthlist
577
-            // console.log("monthlist",monthlist)
577
+           console.log("monthlist",monthlist)
578 578
             var newArr = [
579 579
               {Total:"一月",Count:1,NoCount: 0},
580 580
               {Total:"二月",Count:1,NoCount: 0},

+ 31 - 2
src/xt_pages/qcd/patientComplianceDetails.vue View File

@@ -32,7 +32,7 @@
32 32
               </el-form-item>
33 33
             </el-form>
34 34
             <div class="tableTitle">患者列表</div>
35
-            <el-table :data="patientsData" border style="width: 100%;" height="500"  highlight-current-row @current-change="handleChange" :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}">
35
+            <el-table ref="singleTable" :data="patientsData" border style="width: 100%;" height="500"  highlight-current-row @current-change="handleChange" :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}">
36 36
               <el-table-column prop="name" label="透析号" width="70">
37 37
                  <template slot-scope="scope">
38 38
                     {{scope.row.dialysis_no}}
@@ -128,6 +128,7 @@ import echarts from "echarts";
128 128
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
129 129
 import LineChart from "../qcd/components/LineChart";
130 130
 import { uParseTime } from "@/utils/tools";
131
+ import { PostSearch} from '@/api/patient'
131 132
 import { getCurrentOrgPatients,GetQualityControl,getNormData,getPatientComplianceDetail } from "@/api/common/common"
132 133
 export default {
133 134
   components: {
@@ -375,6 +376,11 @@ export default {
375 376
       getCurrentOrgPatients().then(response=>{
376 377
           if(response.data.state == 1){
377 378
             var patients = response.data.data.patients
379
+            for(let i=0;i<patients.length;i++){
380
+               if(this.patientid == patients[i].id){
381
+                  this.$refs.singleTable.setCurrentRow(patients[i])
382
+               }
383
+            }
378 384
             this.patientsData = patients
379 385
           }
380 386
       })
@@ -477,11 +483,34 @@ export default {
477 483
               this.chart.xAxis.data = this.modesData.xAxis
478 484
             }
479 485
        })
480
-    }
486
+    },
487
+     querySearchAsync(keyword, cb) {
488
+        let key = ''
489
+        if (keyword != undefined) {
490
+          key = keyword
491
+        }
492
+        let searchArray = []
493
+        PostSearch(key).then(response => {
494
+          if (response.data.state == 1) {
495
+             searchArray = response.data.data.patient
496
+            //  console.log("searchArray",searchArray)
497
+            cb(searchArray)
498
+          } else {
499
+            cb([])
500
+          }
501
+        })
502
+      },
503
+     handleSelect(val) {
504
+        console.log("val",val)
505
+        this.listQuery.search = val.name
506
+        this.patient_id = val.id
507
+        this.getlistDetail()
508
+      },
481 509
   },
482 510
 
483 511
    created(){
484 512
      this.patientid =  this.$route.query.patientid
513
+    
485 514
      this.inspect_date = this.$route.query.date
486 515
      //获取指标项
487 516
       this.getNormData()