|
@@ -12,7 +12,6 @@
|
|
vertical-align: middle;
|
|
vertical-align: middle;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|
|
-
|
|
|
|
<div class="p-3">
|
|
<div class="p-3">
|
|
<div class="">
|
|
<div class="">
|
|
<div class="row mcp-theme-1" id="pro-dashboard-container" v-cloak>
|
|
<div class="row mcp-theme-1" id="pro-dashboard-container" v-cloak>
|
|
@@ -296,12 +295,12 @@
|
|
<div class="card mb-4">
|
|
<div class="card mb-4">
|
|
<div class="card-header pl-2">
|
|
<div class="card-header pl-2">
|
|
<strong>
|
|
<strong>
|
|
- Appointments @{{ selectedDate }}
|
|
|
|
|
|
+ Appointments @{{ formatDate(selectedDate) }}
|
|
</strong>
|
|
</strong>
|
|
</div>
|
|
</div>
|
|
<div class="card-body p-0">
|
|
<div class="card-body p-0">
|
|
|
|
|
|
- <table class="table table-sm table-bordered appointments">
|
|
|
|
|
|
+ <table v-if="events.length > 0" class="table table-sm table-bordered appointments">
|
|
<tr v-for="event in events" class="">
|
|
<tr v-for="event in events" class="">
|
|
<td>
|
|
<td>
|
|
<a :href="'/patients/view/' + event.clientUid" class="font-weight-bold">@{{
|
|
<a :href="'/patients/view/' + event.clientUid" class="font-weight-bold">@{{
|
|
@@ -366,8 +365,8 @@
|
|
|
|
|
|
<div v-if="numEventsForDate === 0"
|
|
<div v-if="numEventsForDate === 0"
|
|
class="bg-light p-3 text-secondary border bounded">
|
|
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>
|
|
|
|
|
|
+ <span v-if="filterStatus === ''">You have no appointments on <b>@{{ formatDate(selectedDate) }}</b></span>
|
|
|
|
+ <span v-if="filterStatus !== ''">You have no appointments on <b>@{{ formatDate(selectedDate) }}</b> with status <b>@{{ filterStatus }}</b></span>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div v-show="!selectedDate" class="bg-light p-3 text-secondary border bounded">
|
|
<div v-show="!selectedDate" class="bg-light p-3 text-secondary border bounded">
|
|
@@ -1143,6 +1142,12 @@
|
|
day = day < 10 ? '0' + day : day;
|
|
day = day < 10 ? '0' + day : day;
|
|
|
|
|
|
return date.getFullYear()+'-'+parseInt(date.getMonth()+1) +'-' + day;
|
|
return date.getFullYear()+'-'+parseInt(date.getMonth()+1) +'-' + day;
|
|
|
|
+ },
|
|
|
|
+ formatDate: function(_date, _format) {
|
|
|
|
+ _format = _format || 'MM/DD/YYYY';
|
|
|
|
+ if(_date) {
|
|
|
|
+ return moment(_date).format(_format);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted: function () {
|
|
mounted: function () {
|