|
@@ -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()
|