[z-delete-masterTask-modal, spenTime formatted, addSubTask, style team in subTask detail]

This commit is contained in:
romankko2 committed 2023-02-02 19:14:50 +01:00
1 parent 5eea588984
commit 2c4299616d
8 files changed
+118 -71

No files matched your search

@@ -103,13 +103,13 @@
<h1>{{ task.title }}</h1>
<div class="d-flex justify-start">
<img
class="pencil-icon"
class="icon"
:src="require('@/plugins/tm@overview/_img/pencil-icon.svg')"
alt="pencil-icon"
@click.stop="editMode = !editMode"
/>
<img
class="trash-icon"
class="icon trash"
:src="require('@/plugins/tm@overview/_img/trash-icon.svg')"
alt="trash-icon"
@click.stop="openDeleteTaskModal(task)"
@@ -232,7 +232,7 @@
</v-col>
<v-col cols="7">
<v-sheet class="ma-2">
<p>{{ task.duration / 3600 }} h</p>
<p>{{ (task.duration / 3600000).toFixed(2) }} h</p>
</v-sheet>
</v-col>
</v-row>
@@ -275,7 +275,7 @@
<v-col cols="7">
<v-sheet class="ma-2">
<p>
{{ (task.duration - task.spent_time) / 3600 }} h
{{ ((task.duration / 3600000) - (task.spent_time)).toFixed(2) }} h
</p>
</v-sheet>
</v-col>
@@ -396,9 +396,10 @@ export default {
if (task?.id) {
const t = await this.$axios.get_auth_data(`v1/tasks/${task.id}`)
this.employeeIdSelect = t.employee.id
this.employeeIdSelect = t.employee.id
this.masterTaskIdSelect = t.master_task.id
this.task = t
this.task.spent_time = ((t.spent_time) / 3600000).toFixed(2)
} else {
this.task = {master_task: {}}
}