瀏覽代碼

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

csx 4 年之前
父節點
當前提交
b466ae05f4

+ 8 - 0
src/xt_pages/qcd/indicatorControlAnalysis/bloodPressure.vue 查看文件

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

+ 4 - 0
src/xt_pages/qcd/indicatorControlAnalysis/bloodPressureDetails.vue 查看文件

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

+ 5 - 1
src/xt_pages/qcd/indicatorControlAnalysis/components/personal.vue 查看文件

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

+ 6 - 0
src/xt_pages/qcd/indicatorControlAnalysis/monitor.vue 查看文件

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

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

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

+ 8 - 0
src/xt_pages/qcd/indicatorControlAnalysis/process.vue 查看文件

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

+ 10 - 1
src/xt_pages/qcd/indicatorControlAnalysis/weight.vue 查看文件

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

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