Quellcode durchsuchen

Merge branch 'update' of http://git.shengws.com/zhangbj/xt_pad into update

庄逸洲 vor 5 Jahren
Ursprung
Commit
5248cbeae0

+ 3 - 2
src/pages/main/add_urgent_schedule.vue Datei anzeigen

22
                     <van-col :span="9">
22
                     <van-col :span="9">
23
                         <span class="title">日期:</span>
23
                         <span class="title">日期:</span>
24
                         <div class="field_panel">
24
                         <div class="field_panel">
25
-                            <van-field v-model="date" disabled class="field"></van-field>
25
+                            <van-field v-model="date"  class="field"></van-field>
26
                         </div>
26
                         </div>
27
                     </van-col>
27
                     </van-col>
28
                 </van-row>
28
                 </van-row>
58
                     <van-col :span="24">
58
                     <van-col :span="24">
59
                         <span class="title">&nbsp;</span>
59
                         <span class="title">&nbsp;</span>
60
                         <div class="field_panel">
60
                         <div class="field_panel">
61
-                            <van-button type="info" @click="submitAction">立即排班</van-button>
61
+                            <van-button type="info" size="normal" @click="submitAction">立即排班</van-button>
62
                         </div>
62
                         </div>
63
                     </van-col>
63
                     </van-col>
64
                 </van-row>
64
                 </van-row>
365
         background: #fff;
365
         background: #fff;
366
         min-height: calc(100vh - 2px);
366
         min-height: calc(100vh - 2px);
367
         padding-top:55px; 
367
         padding-top:55px; 
368
+        padding-left: 20px;
368
         .row {
369
         .row {
369
             padding: 5px 0;
370
             padding: 5px 0;
370
             .title {
371
             .title {

+ 1 - 1
src/pages/main/dialysis/AdviceTable.vue Datei anzeigen

1533
 .AdviceTable{
1533
 .AdviceTable{
1534
   padding-top:0; 
1534
   padding-top:0; 
1535
   background: #fff;
1535
   background: #fff;
1536
-  min-height: calc(100vh - 180px);
1536
+  min-height: calc(100vh - 230px);
1537
 }
1537
 }
1538
 }
1538
 }
1539
 
1539
 

+ 2 - 2
src/pages/main/dialysis/CheckTab.vue Datei anzeigen

59
     border-bottom: 1px #e5e5e5 solid;
59
     border-bottom: 1px #e5e5e5 solid;
60
     background: #fff;
60
     background: #fff;
61
      position: fixed;
61
      position: fixed;
62
-    top: 115px;
62
+    top: 116px;
63
     right: 0;
63
     right: 0;
64
-    z-index: 66;
64
+    z-index: 55;
65
     left: 1.58rem;
65
     left: 1.58rem;
66
     background: #fff;
66
     background: #fff;
67
     ul {
67
     ul {

+ 0 - 4
src/pages/main/dialysis/InspectionItemTable.vue Datei anzeigen

190
 <style style="stylesheet/scss" lang="scss" scoped>
190
 <style style="stylesheet/scss" lang="scss" scoped>
191
 .top {
191
 .top {
192
   padding: 0.28rem 0.3rem;
192
   padding: 0.28rem 0.3rem;
193
-  // @include display-flex;
194
-  // @include align-items-center;
195
   @include text-align;
193
   @include text-align;
196
-  // @include justify-content-between;
197
   font-size: 0.3rem;
194
   font-size: 0.3rem;
198
   border-bottom: 1px #e5e5e5 solid;
195
   border-bottom: 1px #e5e5e5 solid;
199
   position: relative;
196
   position: relative;
200
-
201
   .title {
197
   .title {
202
     font-size: 0.3rem;
198
     font-size: 0.3rem;
203
     font-weight: bold;
199
     font-weight: bold;

+ 4 - 0
src/pages/main/dialysis/RecordTable.vue Datei anzeigen

441
   background: #fff;
441
   background: #fff;
442
   min-height: calc(100vh - 180px);
442
   min-height: calc(100vh - 180px);
443
 }
443
 }
444
+.popover-demo-content{
445
+  max-height: 400px;
446
+  overflow-y: scroll;
447
+}
444
 </style>
448
 </style>
445
 
449
 

+ 161 - 145
src/pages/main/today/TodayTab.vue Datei anzeigen

1
 <template>
1
 <template>
2
-  <div v-loading="loading">
2
+  <div v-loading="loading" id="today_panel">
3
 
3
 
4
     <div class="grid">
4
     <div class="grid">
5
       <div class="list">
5
       <div class="list">
63
     <dialysis-prescription id="prescription" :prescription="prescription" :solution="solution" title="透析处方"
63
     <dialysis-prescription id="prescription" :prescription="prescription" :solution="solution" title="透析处方"
64
                            :device_number_map="device_map"></dialysis-prescription>
64
                            :device_number_map="device_map"></dialysis-prescription>
65
 
65
 
66
-    <!-- <div class="blueBorder"></div>
67
-    <past-data class="往期数据"></past-data> -->
68
-
69
     <div class="blueBorder"></div>
66
     <div class="blueBorder"></div>
70
     <accepts-assessment id="accepts_assessment" :record="receiver_treatment_access" title="接诊评估"></accepts-assessment>
67
     <accepts-assessment id="accepts_assessment" :record="receiver_treatment_access" title="接诊评估"></accepts-assessment>
71
 
68
 
160
                         @close="closeTreatmentOf" ref="treatment_dialog"></treatment-dialog>
157
                         @close="closeTreatmentOf" ref="treatment_dialog"></treatment-dialog>
161
     </van-popup>
158
     </van-popup>
162
 
159
 
163
-    <div class="fixedNav" ref="fixed_nav" v-show="show_fixed_nav">
160
+    <!-- <div class="fixedNav" ref="fixed_nav" v-show="show_fixed_nav">
164
       <ul>
161
       <ul>
165
         <li @click="menuClick(1)">透析处方</li>
162
         <li @click="menuClick(1)">透析处方</li>
166
         <li @click="menuClick(2)">接诊评估</li>
163
         <li @click="menuClick(2)">接诊评估</li>
173
         <li @click="menuClick(8)">透后评估</li>
170
         <li @click="menuClick(8)">透后评估</li>
174
         <li @click="menuClick(9)">治疗小结</li>
171
         <li @click="menuClick(9)">治疗小结</li>
175
       </ul>
172
       </ul>
176
-    </div>
173
+    </div> -->
174
+ 
175
+   <el-button class="goTop" v-show="goTopShow" @click="goTop"  type="primary" icon="el-icon-arrow-up" circle style="position:fixed;right:20px;bottom:20px;"></el-button>
177
 
176
 
178
-  </div>
177
+   </div>
179
 </template>
178
 </template>
180
 
179
 
181
 <script>
180
 <script>
207
 
206
 
208
 import { dialysisGlobalConfig, getDialysisRecord } from "@/api/dialysis";
207
 import { dialysisGlobalConfig, getDialysisRecord } from "@/api/dialysis";
209
 import { parseTime } from "@/utils";
208
 import { parseTime } from "@/utils";
210
-import Vue from 'vue'
211
 
209
 
212
 export default {
210
 export default {
213
   name: "TodayTab",
211
   name: "TodayTab",
240
   data() {
238
   data() {
241
     return {
239
     return {
242
       loading: true,
240
       loading: true,
243
-      show_fixed_nav: false,
241
+      // show_fixed_nav: false,
244
       patient_id: 0,
242
       patient_id: 0,
245
       date: 0,
243
       date: 0,
246
       menuList: [
244
       menuList: [
272
       monitor_records: [], // 透析监测
270
       monitor_records: [], // 透析监测
273
       last_monitor_record: {
271
       last_monitor_record: {
274
         id: 0,
272
         id: 0,
275
-        operate_time: (new Date()).getTime(),
273
+        operate_time: new Date().getTime(),
276
         sodium_concentration: "",
274
         sodium_concentration: "",
277
         dialysate_temperature: ""
275
         dialysate_temperature: ""
278
       }, // 上一次透析的监测记录
276
       }, // 上一次透析的监测记录
280
       admin_users: [], //系统用户列表
278
       admin_users: [], //系统用户列表
281
       devices: [], //设备
279
       devices: [], //设备
282
       device_numbers: [], // 床位号
280
       device_numbers: [], // 床位号
283
-
284
       admin_user_map: {}, // {user_id: admin_user object}
281
       admin_user_map: {}, // {user_id: admin_user object}
285
       device_map: {}, // {device_id: device}
282
       device_map: {}, // {device_id: device}
286
-      device_number_map: {} // {device_number_id: device_number}
283
+      device_number_map: {}, // {device_number_id: device_number}
284
+      scrollTop: "",
285
+      goTopShow: false
287
     };
286
     };
288
   },
287
   },
289
   computed: {
288
   computed: {
370
     },
369
     },
371
 
370
 
372
     $route: "requestDialysisRecord"
371
     $route: "requestDialysisRecord"
373
-
374
   },
372
   },
375
   methods: {
373
   methods: {
376
-    handleScroll: function() {
377
-      var scrollTop =
378
-        window.pageYOffset ||
379
-        document.documentElement.scrollTop ||
380
-        document.body.scrollTop;
381
-      this.show_fixed_nav = scrollTop > 160;
382
-    },
374
+    // handleScroll: function() {
375
+    //   var scrollTop =
376
+    //     window.pageYOffset ||
377
+    //     document.documentElement.scrollTop ||
378
+    //     document.body.scrollTop;
379
+    //   this.show_fixed_nav = scrollTop > 160;
380
+    // },
383
 
381
 
384
     didAddMonitor(monitor) {
382
     didAddMonitor(monitor) {
385
-      this.monitor_records.push(monitor)
383
+      this.monitor_records.push(monitor);
386
 
384
 
387
-      this.monitor_records.sort((a,b)=>b.operate_time-a.operate_time)
385
+      this.monitor_records.sort((a, b) => b.operate_time - a.operate_time);
388
 
386
 
389
       // for (let index = 0; index < this.monitor_records.length; index++) {
387
       // for (let index = 0; index < this.monitor_records.length; index++) {
390
       //   const record = this.monitor_records[index];
388
       //   const record = this.monitor_records[index];
394
       //   }
392
       //   }
395
       // }
393
       // }
396
       this.monitor_records.reverse();
394
       this.monitor_records.reverse();
397
-      this.last_monitor_record = monitor
398
-
395
+      this.last_monitor_record = monitor;
399
     },
396
     },
400
 
397
 
401
     didEditMonitor(monitor) {
398
     didEditMonitor(monitor) {
408
         }
405
         }
409
       }
406
       }
410
 
407
 
411
-      console.log(monitor)
412
-      console.log(this.monitor_records[monitor_index])
413
-
414
-
415
-      this.monitor_records[monitor_index].arterial_pressure = monitor.arterial_pressure
416
-      this.monitor_records[monitor_index].blood_flow_volume = monitor.blood_flow_volume
417
-      this.monitor_records[monitor_index].breathing_rate = monitor.breathing_rate
418
-      this.monitor_records[monitor_index].dialysate_temperature = monitor.dialysate_temperature
419
-      this.monitor_records[monitor_index].diastolic_bp = monitor.diastolic_bp
420
-      this.monitor_records[monitor_index].displacement_quantity = monitor.displacement_quantity
421
-      this.monitor_records[monitor_index].dispose = monitor.dispose
422
-      this.monitor_records[monitor_index].ktv = monitor.ktv
423
-      this.monitor_records[monitor_index].monitor_date = monitor.monitor_date
424
-      this.monitor_records[monitor_index].monitoring_nurse = monitor.monitoring_nurse
425
-      this.monitor_records[monitor_index].operate_time = monitor.operate_time
426
-      this.monitor_records[monitor_index].pulse_frequency = monitor.pulse_frequency
427
-      this.monitor_records[monitor_index].replacement_rate = monitor.replacement_rate
428
-      this.monitor_records[monitor_index].result = monitor.result
429
-      this.monitor_records[monitor_index].sodium_concentration = monitor.sodium_concentration
430
-      this.monitor_records[monitor_index].symptom = monitor.symptom
431
-      this.monitor_records[monitor_index].systolic_bp = monitor.systolic_bp
432
-      this.monitor_records[monitor_index].transmembrane_pressure = monitor.transmembrane_pressure
433
-      this.monitor_records[monitor_index].ultrafiltration_rate = monitor.ultrafiltration_rate
434
-      this.monitor_records[monitor_index].ultrafiltration_volume = monitor.ultrafiltration_volume
435
-      this.monitor_records[monitor_index].venous_pressure = monitor.venous_pressure
436
-      this.monitor_records[monitor_index].diastolic_blood_pressure = monitor.diastolic_blood_pressure
437
-      this.monitor_records[monitor_index].systolic_blood_pressure = monitor.systolic_blood_pressure
438
-
439
-      this.monitor_records.sort((a,b)=>b.operate_time-a.operate_time)
408
+      console.log(monitor);
409
+      console.log(this.monitor_records[monitor_index]);
410
+
411
+      this.monitor_records[monitor_index].arterial_pressure =
412
+        monitor.arterial_pressure;
413
+      this.monitor_records[monitor_index].blood_flow_volume =
414
+        monitor.blood_flow_volume;
415
+      this.monitor_records[monitor_index].breathing_rate =
416
+        monitor.breathing_rate;
417
+      this.monitor_records[monitor_index].dialysate_temperature =
418
+        monitor.dialysate_temperature;
419
+      this.monitor_records[monitor_index].diastolic_bp = monitor.diastolic_bp;
420
+      this.monitor_records[monitor_index].displacement_quantity =
421
+        monitor.displacement_quantity;
422
+      this.monitor_records[monitor_index].dispose = monitor.dispose;
423
+      this.monitor_records[monitor_index].ktv = monitor.ktv;
424
+      this.monitor_records[monitor_index].monitor_date = monitor.monitor_date;
425
+      this.monitor_records[monitor_index].monitoring_nurse =
426
+        monitor.monitoring_nurse;
427
+      this.monitor_records[monitor_index].operate_time = monitor.operate_time;
428
+      this.monitor_records[monitor_index].pulse_frequency =
429
+        monitor.pulse_frequency;
430
+      this.monitor_records[monitor_index].replacement_rate =
431
+        monitor.replacement_rate;
432
+      this.monitor_records[monitor_index].result = monitor.result;
433
+      this.monitor_records[monitor_index].sodium_concentration =
434
+        monitor.sodium_concentration;
435
+      this.monitor_records[monitor_index].symptom = monitor.symptom;
436
+      this.monitor_records[monitor_index].systolic_bp = monitor.systolic_bp;
437
+      this.monitor_records[monitor_index].transmembrane_pressure =
438
+        monitor.transmembrane_pressure;
439
+      this.monitor_records[monitor_index].ultrafiltration_rate =
440
+        monitor.ultrafiltration_rate;
441
+      this.monitor_records[monitor_index].ultrafiltration_volume =
442
+        monitor.ultrafiltration_volume;
443
+      this.monitor_records[monitor_index].venous_pressure =
444
+        monitor.venous_pressure;
445
+      this.monitor_records[monitor_index].diastolic_blood_pressure =
446
+        monitor.diastolic_blood_pressure;
447
+      this.monitor_records[monitor_index].systolic_blood_pressure =
448
+        monitor.systolic_blood_pressure;
449
+
450
+      this.monitor_records.sort((a, b) => b.operate_time - a.operate_time);
440
 
451
 
441
       // if (monitor_index >= 0) {
452
       // if (monitor_index >= 0) {
442
       //   var record = this.monitor_records[monitor_index]
453
       //   var record = this.monitor_records[monitor_index]
519
     closeDialog(index) {
530
     closeDialog(index) {
520
       this.index = -1;
531
       this.index = -1;
521
       this.menuList[index].showPopup = false;
532
       this.menuList[index].showPopup = false;
522
-    },refresh(){
523
-
524
-
525
-
533
+    },
534
+    refresh() {
526
       var dateStr = parseTime(this.$route.query.date, "{y}-{m}-{d}");
535
       var dateStr = parseTime(this.$route.query.date, "{y}-{m}-{d}");
527
       var params = {
536
       var params = {
528
         patient_id: this.$route.query.patient_id,
537
         patient_id: this.$route.query.patient_id,
569
 
578
 
570
           this.doctor_advices = doctor_advices == null ? [] : doctor_advices;
579
           this.doctor_advices = doctor_advices == null ? [] : doctor_advices;
571
           if (this.doctor_advices.length > 0) {
580
           if (this.doctor_advices.length > 0) {
572
-            var group = this.newAdviceGroupObject()
581
+            var group = this.newAdviceGroupObject();
573
             var initGroupBlock = function(group, advice) {
582
             var initGroupBlock = function(group, advice) {
574
-              group.group_no = advice.groupno
583
+              group.group_no = advice.groupno;
575
               // group.start_time = advice.start_time
584
               // group.start_time = advice.start_time
576
               // group.advice_doctor = advice.advice_doctor
585
               // group.advice_doctor = advice.advice_doctor
577
               // group.exec_staff = advice.execution_staff
586
               // group.exec_staff = advice.execution_staff
578
               // group.exec_time = advice.execution_time
587
               // group.exec_time = advice.execution_time
579
               // group.checker = advice.checker
588
               // group.checker = advice.checker
580
-            }
589
+            };
581
             for (let index = 0; index < this.doctor_advices.length; index++) {
590
             for (let index = 0; index < this.doctor_advices.length; index++) {
582
               const advice = this.doctor_advices[index];
591
               const advice = this.doctor_advices[index];
583
-              if (advice.groupno == 0) { // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
592
+              if (advice.groupno == 0) {
593
+                // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
584
                 if (advice.parent_id > 0) {
594
                 if (advice.parent_id > 0) {
585
                   if (this.advice_groups.length > 0) {
595
                   if (this.advice_groups.length > 0) {
586
-                    var parent_group = this.advice_groups[this.advice_groups.length - 1]
596
+                    var parent_group = this.advice_groups[
597
+                      this.advice_groups.length - 1
598
+                    ];
587
                     if (parent_group.advices.length > 0) {
599
                     if (parent_group.advices.length > 0) {
588
                       if (parent_group.advices[0].id == advice.parent_id) {
600
                       if (parent_group.advices[0].id == advice.parent_id) {
589
-                        parent_group.advices.push(advice)
601
+                        parent_group.advices.push(advice);
590
                       }
602
                       }
591
                     }
603
                     }
592
                   }
604
                   }
593
-                  continue
594
-
605
+                  continue;
595
                 } else {
606
                 } else {
596
                   if (group.group_no > 0) {
607
                   if (group.group_no > 0) {
597
-                    this.advice_groups.push(group)
598
-                    group = this.newAdviceGroupObject()
608
+                    this.advice_groups.push(group);
609
+                    group = this.newAdviceGroupObject();
599
                   }
610
                   }
600
 
611
 
601
-                  initGroupBlock(group, advice)
602
-                  group.advices.push(advice)
603
-                  this.advice_groups.push(group)
604
-                  group = this.newAdviceGroupObject()
605
-                  continue
612
+                  initGroupBlock(group, advice);
613
+                  group.advices.push(advice);
614
+                  this.advice_groups.push(group);
615
+                  group = this.newAdviceGroupObject();
616
+                  continue;
606
                 }
617
                 }
607
               }
618
               }
608
 
619
 
609
               if (group.group_no > 0 && group.group_no != advice.groupno) {
620
               if (group.group_no > 0 && group.group_no != advice.groupno) {
610
-                this.advice_groups.push(group)
611
-                group = this.newAdviceGroupObject()
621
+                this.advice_groups.push(group);
622
+                group = this.newAdviceGroupObject();
612
               }
623
               }
613
               if (group.group_no == 0) {
624
               if (group.group_no == 0) {
614
-                initGroupBlock(group, advice)
625
+                initGroupBlock(group, advice);
615
               }
626
               }
616
               if (group.group_no == advice.groupno) {
627
               if (group.group_no == advice.groupno) {
617
-                group.advices.push(advice)
628
+                group.advices.push(advice);
618
               }
629
               }
619
             }
630
             }
620
-            if (group.group_no > 0) { // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
621
-              this.advice_groups.push(group)
631
+            if (group.group_no > 0) {
632
+              // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
633
+              this.advice_groups.push(group);
622
             }
634
             }
623
 
635
 
624
             // console.log(this.advice_groups)
636
             // console.log(this.advice_groups)
687
           this.loading = false;
699
           this.loading = false;
688
         }
700
         }
689
       });
701
       });
690
-
691
     },
702
     },
692
 
703
 
693
     requestDialysisRecord() {
704
     requestDialysisRecord() {
737
 
748
 
738
           this.doctor_advices = doctor_advices == null ? [] : doctor_advices;
749
           this.doctor_advices = doctor_advices == null ? [] : doctor_advices;
739
           if (this.doctor_advices.length > 0) {
750
           if (this.doctor_advices.length > 0) {
740
-            var group = this.newAdviceGroupObject()
751
+            var group = this.newAdviceGroupObject();
741
             var initGroupBlock = function(group, advice) {
752
             var initGroupBlock = function(group, advice) {
742
-              group.group_no = advice.groupno
753
+              group.group_no = advice.groupno;
743
               // group.start_time = advice.start_time
754
               // group.start_time = advice.start_time
744
               // group.advice_doctor = advice.advice_doctor
755
               // group.advice_doctor = advice.advice_doctor
745
               // group.exec_staff = advice.execution_staff
756
               // group.exec_staff = advice.execution_staff
746
               // group.exec_time = advice.execution_time
757
               // group.exec_time = advice.execution_time
747
               // group.checker = advice.checker
758
               // group.checker = advice.checker
748
-            }
759
+            };
749
             for (let index = 0; index < this.doctor_advices.length; index++) {
760
             for (let index = 0; index < this.doctor_advices.length; index++) {
750
               const advice = this.doctor_advices[index];
761
               const advice = this.doctor_advices[index];
751
-              if (advice.groupno == 0) { // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
762
+              if (advice.groupno == 0) {
763
+                // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
752
                 if (advice.parent_id > 0) {
764
                 if (advice.parent_id > 0) {
753
                   if (this.advice_groups.length > 0) {
765
                   if (this.advice_groups.length > 0) {
754
-                    var parent_group = this.advice_groups[this.advice_groups.length - 1]
766
+                    var parent_group = this.advice_groups[
767
+                      this.advice_groups.length - 1
768
+                    ];
755
                     if (parent_group.advices.length > 0) {
769
                     if (parent_group.advices.length > 0) {
756
                       if (parent_group.advices[0].id == advice.parent_id) {
770
                       if (parent_group.advices[0].id == advice.parent_id) {
757
-                        parent_group.advices.push(advice)
771
+                        parent_group.advices.push(advice);
758
                       }
772
                       }
759
                     }
773
                     }
760
                   }
774
                   }
761
-                  continue
762
-
775
+                  continue;
763
                 } else {
776
                 } else {
764
                   if (group.group_no > 0) {
777
                   if (group.group_no > 0) {
765
-                    this.advice_groups.push(group)
766
-                    group = this.newAdviceGroupObject()
778
+                    this.advice_groups.push(group);
779
+                    group = this.newAdviceGroupObject();
767
                   }
780
                   }
768
-                    
769
-                  initGroupBlock(group, advice)
770
-                  group.advices.push(advice)
771
-                  this.advice_groups.push(group)
772
-                  group = this.newAdviceGroupObject()
773
-                  continue
781
+
782
+                  initGroupBlock(group, advice);
783
+                  group.advices.push(advice);
784
+                  this.advice_groups.push(group);
785
+                  group = this.newAdviceGroupObject();
786
+                  continue;
774
                 }
787
                 }
775
               }
788
               }
776
 
789
 
777
               if (group.group_no > 0 && group.group_no != advice.groupno) {
790
               if (group.group_no > 0 && group.group_no != advice.groupno) {
778
-                this.advice_groups.push(group)
779
-                group = this.newAdviceGroupObject()
791
+                this.advice_groups.push(group);
792
+                group = this.newAdviceGroupObject();
780
               }
793
               }
781
               if (group.group_no == 0) {
794
               if (group.group_no == 0) {
782
-                initGroupBlock(group, advice)
795
+                initGroupBlock(group, advice);
783
               }
796
               }
784
               if (group.group_no == advice.groupno) {
797
               if (group.group_no == advice.groupno) {
785
-                group.advices.push(advice)
798
+                group.advices.push(advice);
786
               }
799
               }
787
             }
800
             }
788
-            if (group.group_no > 0) { // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
789
-              this.advice_groups.push(group)
801
+            if (group.group_no > 0) {
802
+              // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
803
+              this.advice_groups.push(group);
790
             }
804
             }
791
-            
805
+
792
             // console.log(this.advice_groups)
806
             // console.log(this.advice_groups)
793
           }
807
           }
794
 
808
 
857
       });
871
       });
858
     },
872
     },
859
     newAdviceGroupObject: function() {
873
     newAdviceGroupObject: function() {
860
-      return Object.assign({}, {
861
-        group_no: 0,
862
-        // advice_doctor: 0,
863
-        // start_time: 0,
864
-        advices: [],
865
-        // exec_staff: 0,
866
-        // exec_time: 0,
867
-        // checker: 0,
868
-      })
874
+      return Object.assign(
875
+        {},
876
+        {
877
+          group_no: 0,
878
+          // advice_doctor: 0,
879
+          // start_time: 0,
880
+          advices: []
881
+          // exec_staff: 0,
882
+          // exec_time: 0,
883
+          // checker: 0,
884
+        }
885
+      );
869
     },
886
     },
870
 
887
 
871
     closePrescriptionDialog: function() {
888
     closePrescriptionDialog: function() {
917
         document.querySelector("#" + id).offsetTop - 100;
934
         document.querySelector("#" + id).offsetTop - 100;
918
       document.documentElement.scrollTop =
935
       document.documentElement.scrollTop =
919
         document.querySelector("#" + id).offsetTop - 100;
936
         document.querySelector("#" + id).offsetTop - 100;
937
+    },
938
+    handleScroll() {
939
+      this.scrollTop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop;
940
+      if (this.scrollTop > 50) {
941
+        this.goTopShow = true;
942
+      }else{
943
+        this.goTopShow = false;
944
+      }
945
+    },
946
+    goTop() {
947
+      let timer = null,
948
+        _that = this;
949
+    cancelAnimationFrame(timer);
950
+      timer = requestAnimationFrame(function fn() {
951
+        if (_that.scrollTop > 0) {
952
+          _that.scrollTop -= 50;
953
+          document.body.scrollTop = document.documentElement.scrollTop =
954
+            _that.scrollTop;
955
+          timer = requestAnimationFrame(fn);
956
+        } else {
957
+          cancelAnimationFrame(timer);
958
+          _that.goTopShow = false;
959
+        }
960
+      });
961
+    },
962
+    destroyed() {
963
+      window.removeEventListener("scroll", this.handleScroll);
920
     }
964
     }
921
   }
965
   }
922
 };
966
 };
923
 </script>
967
 </script>
924
 
968
 
925
 <style style="stylesheet/scss" lang="scss" scoped>
969
 <style style="stylesheet/scss" lang="scss" scoped>
970
+.today_panel {
971
+  height: calc(100% - 63px);
972
+}
973
+
926
 .mainContent {
974
 .mainContent {
927
   position: relative;
975
   position: relative;
928
   .grid {
976
   .grid {
929
     padding: 0.1rem 0 0.25rem 0;
977
     padding: 0.1rem 0 0.25rem 0;
930
-    margin: 0.2rem 0.2rem 0 0.2rem;
978
+    margin: 0.2rem 0 0 0;
931
     background: #fff;
979
     background: #fff;
932
     .list {
980
     .list {
933
       ul {
981
       ul {
938
         li {
986
         li {
939
           font-size: 0.24rem;
987
           font-size: 0.24rem;
940
           color: #5d6b7a;
988
           color: #5d6b7a;
941
-          margin-top:0.35rem;
989
+          margin-top: 0.35rem;
942
           p {
990
           p {
943
             line-height: 0.6rem;
991
             line-height: 0.6rem;
944
             color: #34495e;
992
             color: #34495e;
952
       }
1000
       }
953
     }
1001
     }
954
   }
1002
   }
955
-  .fixedNav {
956
-    position: fixed;
957
-    right: 0;
958
-    top: 0;
959
-    left: 1.58rem;
960
-    background: #f18f68;
961
-    color: #fff;
962
-    font-size: 0.24rem;
963
-    z-index: 99;
964
-    padding: 0 0.1rem;
965
-    margin-top: 1.17rem;
966
-    ul {
967
-      @include display-flex;
968
-      @include align-items-center;
969
-      @include text-align;
970
-      @include box-sizing;
971
-      @include justify-content-between;
972
-      margin: 0.3rem 0;
973
-      li {
974
-        height: 0.6rem;
975
-        line-height: 0.6rem;
976
-        padding: 0 0.2rem;
977
-        border-radius: 30px;
978
-        font-size: 0.32rem;
979
-        cursor: pointer;
980
-        background: #f4aa8c;
981
-        &.active {
982
-          background: #f4aa8c;
983
-        }
984
-      }
985
-    }
986
-  }
987
 }
1003
 }
988
 </style>
1004
 </style>
989
 
1005
 

+ 0 - 1
src/pages/main/today/detailsInfo.vue Datei anzeigen

143
 <style rel="stylesheet/scss" lang="scss" scoped>
143
 <style rel="stylesheet/scss" lang="scss" scoped>
144
 .info {
144
 .info {
145
   background: $text-color;
145
   background: $text-color;
146
-  margin: 0 0.2rem;
147
   ul {
146
   ul {
148
     padding: 0.4rem 0.8rem;
147
     padding: 0.4rem 0.8rem;
149
     li {
148
     li {

+ 3 - 2
src/styles/style.scss Datei anzeigen

47
 .plate-box {
47
 .plate-box {
48
   background: $text-color;
48
   background: $text-color;
49
   padding: 0 0 0.3rem 0;
49
   padding: 0 0 0.3rem 0;
50
-  margin:  0 0.2rem;
51
   .title {
50
   .title {
52
     border-bottom: 1px $border-color solid;
51
     border-bottom: 1px $border-color solid;
53
     line-height: 1rem;
52
     line-height: 1rem;
293
   box-shadow: 0 0 15px #eee;
292
   box-shadow: 0 0 15px #eee;
294
   .popover-demo-content {
293
   .popover-demo-content {
295
     ul {
294
     ul {
296
-      width: 6.4rem;
295
+      // width: 6.4rem;
297
       padding: 0.28rem;
296
       padding: 0.28rem;
298
       li {
297
       li {
299
         font-size: 0.32rem;
298
         font-size: 0.32rem;
740
   min-height: calc(100vh - 2px);
739
   min-height: calc(100vh - 2px);
741
   padding-left: 0.45rem;
740
   padding-left: 0.45rem;
742
 }
741
 }
742
+
743
+