2018-12-25 23:41:55 +01:00
|
|
|
<template>
|
|
|
|
<div class="content has-text-centered">
|
2020-05-12 15:08:17 +02:00
|
|
|
<ShowTasks
|
2018-12-25 23:41:55 +01:00
|
|
|
:end-date="endDate"
|
2020-09-05 22:35:52 +02:00
|
|
|
:start-date="startDate"
|
2018-12-25 23:41:55 +01:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2020-09-05 22:35:52 +02:00
|
|
|
import ShowTasks from './ShowTasks'
|
2020-05-12 15:08:17 +02:00
|
|
|
|
2020-09-05 22:35:52 +02:00
|
|
|
export default {
|
|
|
|
name: 'ShowTasksInRange',
|
|
|
|
components: {
|
|
|
|
ShowTasks,
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
2021-06-03 17:18:38 +02:00
|
|
|
startDate: null,
|
|
|
|
endDate: null,
|
2020-09-05 22:35:52 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
created() {
|
2020-11-22 18:05:25 +01:00
|
|
|
this.setDatesToNextWeek()
|
2020-09-05 22:35:52 +02:00
|
|
|
},
|
|
|
|
methods: {
|
2020-11-22 18:05:25 +01:00
|
|
|
setDatesToNextWeek() {
|
|
|
|
this.startDate = new Date()
|
|
|
|
this.endDate = new Date((new Date()).getTime() + 7 * 24 * 60 * 60 * 1000)
|
2018-12-25 23:41:55 +01:00
|
|
|
},
|
2020-09-05 22:35:52 +02:00
|
|
|
},
|
|
|
|
}
|
2018-12-25 23:41:55 +01:00
|
|
|
</script>
|