Browse Source

Main dashboard fast loading enabled

Vijayakrishnan 4 năm trước cách đây
mục cha
commit
6dc77989f6
1 tập tin đã thay đổi với 9 bổ sung6 xóa
  1. 9 6
      resources/views/app/dashboard.blade.php

+ 9 - 6
resources/views/app/dashboard.blade.php

@@ -179,7 +179,7 @@
                 </ul>
 
                 <div class="border-left border-right border-bottom p-3">
-                    <div v-show="tab==='appointments'">
+                    <div v-show="tab==='appointments'" class="appointments-tab">
                         <div class="d-flex align-items-end mb-3">
                             <b class="large"><span class="text-secondary">Today:</span> @{{ selectedDate }}</b>
                             <div class="ml-auto d-inline-flex align-items-center">
@@ -207,7 +207,7 @@
                                     <span class="d-inline-block ml- 2 text-secondary font-weight-bold">@{{ event.title }}</span>
                                 </div>
                                 <div class="pb-1">
-                                    <a target="_blank" :href="'/patients/view/' + event.clientUid" class="font-weight-bold">@{{ event.clientName }}</a>
+                                    <a :href="'/patients/view/' + event.clientUid" class="font-weight-bold">@{{ event.clientName }}</a>
                                     <span class="small d-inline-block pl-2 text-secondary font-weight-normal">@{{ event.clientSummary }}</span>
                                 </div>
                                 <div>
@@ -236,9 +236,9 @@
                             </div>
                         </div>
                         <div v-if="numEventsForDate === 0" class="bg-light p-3 text-secondary border bounded">
-                        <span v-if="filterStatus === ''">You have no appointments on <b>@{{ selectedDate }}</b></span>
-                        <span v-if="filterStatus !== ''">You have no appointments on <b>@{{ selectedDate }}</b> with status <b>@{{ filterStatus }}</b></span>
-                    </div>
+                            <span v-if="filterStatus === ''">You have no appointments on <b>@{{ selectedDate }}</b></span>
+                            <span v-if="filterStatus !== ''">You have no appointments on <b>@{{ selectedDate }}</b> with status <b>@{{ filterStatus }}</b></span>
+                        </div>
                     </div>
                     <div v-show="tab==='measurements'">
                         @include('app.dashboard.measurements')
@@ -311,6 +311,9 @@
                             // self.updateNumEventsForDate();
                             self.appointmentsLoaded = true;
                             hideMask();
+                            Vue.nextTick(() => {
+                                initFastLoad($('.appointments-tab'));
+                            });
                         });
                     },
                     selectToday: function () {
@@ -500,7 +503,7 @@
                     initMoes();
 
                     // init fast load
-                    initFastLoad($('#pro-dashboard-container'));
+                    // initFastLoad($('#pro-dashboard-container'));
 
                 }
             });