My information is as follows:
data() {
return {
monday_start: '',
monday_end: '',
tuesday_start: '',
tuesday_end: '',
wednesday_start: '',
wednesday_end: '',
thursday_start: '',
thursday_end: '',
friday_start: '',
friday_end: '',
saturday_start: '',
saturday_end: '',
sunday_start: '',
sunday_end: '',
notifmsg: '',
};
},
In my calendar system, you can specify the start and end times for each day in this manner:
<tr>
<td>Monday</td>
<td>
<base-time-picker
:input-data.sync="monday_start"
field="monday_start"
label="Monday - Start Time"
:long-time="true"
class="mb-3"
/>
</td>
<td>
<base-time-picker
:input-data.sync="monday_end"
field="monday_end"
label="Monday - End Time"
:long-time="true"
class="mb-3"
/>
</td>
<td>
<v-icon
class="ml-2"
@click="copy(monday_start,monday_end)"
>
mdi-compare
</v-icon>
<v-icon
class="ml-2"
@click="reset('monday')"
>
mdi-delete
</v-icon>
</td>
</tr>
A function called copy has been implemented to easily replicate the same timings across all days:
copy(start,end){
this.monday_start = start;
this.tuesday_start = start;
this.wednesday_start = start;
this.thursday_start = start;
this.friday_start = start;
this.saturday_start = start;
this.sunday_start = start;
this.monday_end = end;
this.tuesday_end = end;
this.wednesday_end = end;
this.thursday_end = end;
this.friday_end = end;
this.saturday_end = end;
this.sunday_end = end;
},
If there's a better way of managing this data, I'm open to suggestions.