mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 22:39:34 +00:00
[blocker] employee prefill, [unscheduled] deadline
This commit is contained in:
1 parent
4163580fd6
commit
a2fb04d3b2
5 files changed
+24
-4
No files matched your search
@@ -4,6 +4,7 @@
|
||||
<tr>
|
||||
<th class="text-left">Kód projektu</th>
|
||||
<th class="text-left">Názov</th>
|
||||
<th class="text-left">Deadline</th>
|
||||
<th class="text-left">Trvanie</th>
|
||||
<th class="text-left">Akcia</th>
|
||||
</tr>
|
||||
@@ -14,6 +15,8 @@
|
||||
|
||||
<td>{{ subtask.project_code }}</td>
|
||||
<td>{{ subtask.title ?? subtask.master_task?.name ?? subtask.master_task }}</td>
|
||||
<td v-if="subtask.deadline">{{ subtaskDeadline(subtask?.deadline) }}</td>
|
||||
<td v-else></td>
|
||||
<td>{{ subtask.spent_time }} h</td>
|
||||
<td class="task-action">
|
||||
<div class="d-flex justify-start">
|
||||
@@ -28,6 +31,8 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import moment from 'moment'
|
||||
|
||||
export default {
|
||||
props: {
|
||||
subtasks: {
|
||||
@@ -43,6 +48,10 @@ export default {
|
||||
|
||||
deleteTask(subtask) {
|
||||
this.$events.emit('show-delete-task-modal', {subtask})
|
||||
},
|
||||
|
||||
subtaskDeadline(value) {
|
||||
return moment(value).format('DD.MM.yyyy')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user