Browse Source

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

csx 4 years ago
parent
commit
b466ae05f4

+ 8 - 0
src/xt_pages/qcd/indicatorControlAnalysis/bloodPressure.vue View File

@@ -69,6 +69,8 @@
69 69
         <el-container>
70 70
           <div style="width:150px">
71 71
             <div class="tableTitle">患者列表</div>
72
+            <div class="tableTitle">当前患者: {{patient_name}}</div>
73
+
72 74
             <el-table :data="patientsData" ref="table" border style="width: 100%;" height="500" :row-style="{ color: '#303133' }"
73 75
                       :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
74 76
                       highlight-current-row
@@ -193,6 +195,7 @@
193 195
     data() {
194 196
       return {
195 197
         percent:[],
198
+        patient_name:'',
196 199
 
197 200
         pickerOptions: {
198 201
           disabledDate(time) {
@@ -399,6 +402,8 @@
399 402
       handleChange(val){
400 403
         this.query.patient_id = val.id
401 404
         this.query.page = 1
405
+        this.patient_name =val.name
406
+
402 407
         this.GetDialysisBloodPressureTableData(this.query)
403 408
         // this.GetDialysisBloodPressureChartData(this.query)
404 409
       },
@@ -516,6 +521,7 @@
516 521
       handleSelect(val) {
517 522
         this.query.patient_id = val.id
518 523
         this.query.page = 1
524
+        this.patient_name =val.name
519 525
         this.GetDialysisBloodPressureChartData(this.query)
520 526
         this.GetDialysisBloodPressureTableData(this.query)
521 527
         for (let i = 0;i < this.patientsData.length; i++){
@@ -554,8 +560,10 @@
554 560
         GetDefalutPatient().then(response => {
555 561
           if (response.data.state == 1) {
556 562
             var patient = response.data.data.patient
563
+            this.patient_name = patient.name
557 564
             for (let i = 0;i < this.patientsData.length; i++){
558 565
               if (this.patientsData[i].id == patient.id){
566
+
559 567
                 this.$refs.table.setCurrentRow(this.patientsData[i])
560 568
               }
561 569
             }

+ 4 - 0
src/xt_pages/qcd/indicatorControlAnalysis/bloodPressureDetails.vue View File

@@ -29,6 +29,8 @@
29 29
         <el-container>
30 30
           <div style="width:150px">
31 31
             <div class="tableTitle">患者列表</div>
32
+            <div class="tableTitle">当前患者: {{patient_name}}</div>
33
+
32 34
             <el-table ref="table" :data="patientsData" border style="width: 100%;" height="500" :row-style="{ color: '#303133' }"
33 35
                       :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
34 36
                       highlight-current-row
@@ -177,6 +179,7 @@ export default {
177 179
       ],
178 180
       loading: false,
179 181
       search_value: '',
182
+      patient_name:'',
180 183
       total: 0,
181 184
       query: {
182 185
         patient_id: '',
@@ -295,6 +298,7 @@ export default {
295 298
     },
296 299
     handleChange(val){
297 300
       this.query.patient_id = val.id
301
+      this.patient_name = val.name
298 302
       this.query.page = 1
299 303
       this.GetDialysisBloodPressureTableData(this.query)
300 304
       this.GetDialysisPatientBloodPressureChartData(this.query)

+ 5 - 1
src/xt_pages/qcd/indicatorControlAnalysis/components/personal.vue View File

@@ -87,7 +87,8 @@
87 87
     </div>
88 88
     <el-container>
89 89
       <div style="width:150px">
90
-        <div class="tableTitle">患者列表</div>
90
+
91
+        <div class="tableTitle">患者列表  <div class="tableTitle">当前患者:{{patient_name}}</div></div>
91 92
         <el-table ref="table" :data="patientsData" border style="width: 100%;" height="500" :row-style="{ color: '#303133' }"
92 93
                   :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
93 94
                   highlight-current-row
@@ -150,6 +151,7 @@
150 151
 
151 152
           }
152 153
         },
154
+        patient_name:'',
153 155
         item_name: '',
154 156
         search_value: '',
155 157
         query: {
@@ -361,12 +363,14 @@
361 363
       handleChange(val){
362 364
         this.query.patient_id = val.id
363 365
         this.query.page = 1
366
+        this.patient_name = val.name
364 367
         this.GetPatientInspectionIndexBarChart(this.query)
365 368
         this.GetPatientInspectionIndexChart(this.query)
366 369
       },
367 370
       handleSelect(val) {
368 371
         this.query.patient_id = val.id
369 372
         this.query.page = 1
373
+        this.patient_name = val.name
370 374
         this.GetPatientInspectionIndexBarChart(this.query)
371 375
         this.GetPatientInspectionIndexChart(this.query)
372 376
 

+ 6 - 0
src/xt_pages/qcd/indicatorControlAnalysis/monitor.vue View File

@@ -69,6 +69,8 @@
69 69
         <el-container>
70 70
           <div style="width:150px">
71 71
             <div class="tableTitle">患者列表</div>
72
+            <div class="tableTitle">当前患者: {{patient_name}}</div>
73
+
72 74
             <el-table ref="table" :data="patientsData" border style="width: 100%;" height="500" :row-style="{ color: '#303133' }"
73 75
                       :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
74 76
                       highlight-current-row
@@ -228,6 +230,7 @@
228 230
             return time.getTime() > Date.now() || time.getTime() < threeMonths;;
229 231
           }
230 232
         },
233
+        patient_name:'',
231 234
         patientsData:[],
232 235
         loading: false,
233 236
         search_value: '',
@@ -411,6 +414,7 @@
411 414
       handleChange(val){
412 415
         this.query.patient_id = val.id
413 416
         this.query.page = 1
417
+        this.patient_name = val.name
414 418
         this.GetDialysisWatchTableData(this.query)
415 419
         this.GetDialysisWatchChartData(this.query)
416 420
       },
@@ -526,6 +530,7 @@
526 530
       handleSelect(val) {
527 531
         this.query.patient_id = val.id
528 532
         this.query.page = 1
533
+        this.patient_name = val.name
529 534
         this.GetDialysisWatchTableData(this.query)
530 535
         this.GetDialysisWatchChartData(this.query)
531 536
         for (let i = 0;i < this.patientsData.length; i++){
@@ -566,6 +571,7 @@
566 571
             var patient = response.data.data.patient
567 572
             for (let i = 0;i < this.patientsData.length; i++){
568 573
               if (this.patientsData[i].id == patient.id){
574
+                this.patient_name = this.patientsData[i].name
569 575
                 this.$refs.table.setCurrentRow(this.patientsData[i])
570 576
               }
571 577
             }

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

@@ -53,6 +53,8 @@
53 53
       <el-container>
54 54
         <div style="width:150px">
55 55
           <div class="tableTitle">患者列表</div>
56
+          <div class="tableTitle">当前患者: {{patient_name}}</div>
57
+
56 58
           <el-table ref="table" :data="patientsData" border style="width: 100%;" height="500" :row-style="{ color: '#303133' }"
57 59
                     :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
58 60
                     highlight-current-row
@@ -107,6 +109,7 @@
107 109
     data() {
108 110
       return {
109 111
         custom_chart_data_color: [],
112
+        patient_name:"",
110 113
         options2: {
111 114
           title: {
112 115
             text: 'ECharts 入门示例'
@@ -317,9 +320,9 @@
317 320
             var patients = response.data.data.patients
318 321
             this.patientsData = patients
319 322
 
320
-
321 323
             for (let i = 0;i < this.patientsData.length; i++){
322 324
               if (this.patientsData[i].id == this.query.patient_id){
325
+                this.patient_name = this.patientsData[i].name
323 326
                 this.$refs.table.setCurrentRow(this.patientsData[i])
324 327
               }
325 328
             }
@@ -329,6 +332,7 @@
329 332
       }, handleChange(val) {
330 333
         this.query.patient_id = val.id
331 334
         this.query.page = 1
335
+        this.patient_name = val.name
332 336
         this.GetPatientInspectionIndexChart(this.query)
333 337
       }, changeTime(val) {
334 338
         var time = this.getTimestamp(val) - this.getTimestamp(this.query.end_time)

+ 8 - 0
src/xt_pages/qcd/indicatorControlAnalysis/process.vue View File

@@ -69,7 +69,10 @@
69 69
         </div>
70 70
         <el-container>
71 71
           <div style="width:150px">
72
+
72 73
             <div class="tableTitle">患者列表</div>
74
+            <div class="tableTitle">当前患者: {{patient_name}}</div>
75
+
73 76
             <el-table ref="table" :data="patientsData" border style="width: 100%;" height="500"
74 77
                       :row-style="{ color: '#303133' }"
75 78
                       :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
@@ -310,6 +313,7 @@
310 313
 
311 314
           }
312 315
         },
316
+        patient_name:'',
313 317
         percent:[],
314 318
         patientsData: [],
315 319
         tableData: [],
@@ -514,6 +518,7 @@
514 518
       handleChange(val) {
515 519
         this.query.patient_id = val.id
516 520
         this.query.page = 1
521
+        this.patient_name = val.name
517 522
         this.GetDialysisProcessIndexTableData(this.query)
518 523
         this.GetDialysisProcessIndexChartData(this.query)
519 524
       },
@@ -641,6 +646,8 @@
641 646
       handleSelect(val) {
642 647
         this.query.patient_id = val.id
643 648
         this.query.page = 1
649
+        this.patient_name = val.name
650
+
644 651
         this.GetDialysisProcessIndexChartData(this.query)
645 652
         this.GetDialysisProcessIndexTableData(this.query)
646 653
 
@@ -683,6 +690,7 @@
683 690
             var patient = response.data.data.patient
684 691
             for (let i = 0;i < this.patientsData.length; i++){
685 692
               if (this.patientsData[i].id == patient.id){
693
+                this.patient_name = this.patientsData[i].name
686 694
                 this.$refs.table.setCurrentRow(this.patientsData[i])
687 695
               }
688 696
             }

+ 10 - 1
src/xt_pages/qcd/indicatorControlAnalysis/weight.vue View File

@@ -68,7 +68,10 @@
68 68
         </div>
69 69
         <el-container>
70 70
           <div style="width:150px">
71
+
71 72
             <div class="tableTitle">患者列表</div>
73
+            <div class="tableTitle">当前患者: {{patient_name}}</div>
74
+
72 75
             <el-table ref="table" :data="patientsData" border style="width: 100%;" height="500" :row-style="{ color: '#303133' }"
73 76
                       :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
74 77
                       highlight-current-row
@@ -214,7 +217,9 @@
214 217
         loading: false,
215 218
         search_value: '',
216 219
         total: 0,
220
+        patient_name:'',
217 221
         query: {
222
+
218 223
           patient_id: '',
219 224
           statistics_type: 1,
220 225
           start_time: '',
@@ -411,6 +416,7 @@
411 416
         this.query.page = 1
412 417
         this.GetDialysisWeightTableData(this.query)
413 418
         this.GetDialysisWeightChartData(this.query)
419
+        this.patient_name = val.name
414 420
       },
415 421
       handleSizeChange(limit) {
416 422
         this.query.limit = limit;
@@ -531,6 +537,7 @@
531 537
         this.GetDialysisWeightTableData(this.query)
532 538
         for (let i = 0;i < this.patientsData.length; i++){
533 539
           if (this.patientsData[i].id == val.id){
540
+            this.patient_name = this.patientsData[i].name
534 541
             this.$refs.table.setCurrentRow(this.patientsData[i])
535 542
           }
536 543
         }
@@ -558,13 +565,15 @@
558 565
           if(response.data.state == 1){
559 566
             var patients = response.data.data.patients
560 567
             this.patientsData = patients
561
-
568
+            // this.GetDefaultPatient()
562 569
           }
563 570
         })
564 571
       },GetDefaultPatient() {
565 572
         GetDefalutPatient().then(response => {
566 573
           if (response.data.state == 1) {
567 574
             var patient = response.data.data.patient
575
+            this.patient_name = this.patientsData[i].name
576
+
568 577
           }
569 578
         })
570 579
       }

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

@@ -30,6 +30,7 @@
30 30
         <el-container>
31 31
           <div style="width:150px">
32 32
             <div class="tableTitle">患者列表</div>
33
+            <div class="tableTitle">当前患者: {{patient_name}}</div>
33 34
             <el-table ref="table" :data="patientsData" border style="width: 100%;" height="500" :row-style="{ color: '#303133' }"
34 35
                       :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
35 36
                       highlight-current-row
@@ -201,6 +202,7 @@ export default {
201 202
       loading: false,
202 203
       search_value: '',
203 204
       total: 0,
205
+      patient_name:'',
204 206
       query: {
205 207
         patient_id: '',
206 208
         statistics_type: 1,
@@ -281,6 +283,7 @@ export default {
281 283
 
282 284
     },
283 285
     handleChange(val){
286
+      this.patient_name = val.name
284 287
       this.query.patient_id = val.id
285 288
       this.query.page = 1
286 289
       this.GetDialysisWeightTableData(this.query)
@@ -368,6 +371,7 @@ export default {
368 371
     handleSelect(val) {
369 372
       this.query.patient_id = val.id
370 373
       this.query.page = 1
374
+      this.patient_name = val.name
371 375
       this.GetDialysisPatientWeightChartData(this.query)
372 376
       this.GetDialysisWeightTableData(this.query)
373 377
       for (let i = 0;i < this.patientsData.length; i++){
@@ -398,6 +402,7 @@ export default {
398 402
           this.patientsData = patients
399 403
           for (let i = 0;i < this.patientsData.length; i++){
400 404
             if (this.patientsData[i].id == this.query.patient_id){
405
+              this.patient_name = this.patientsData[i].name
401 406
               this.$refs.table.setCurrentRow(this.patientsData[i])
402 407
             }
403 408
           }