[blocker] employee prefill, [unscheduled] deadline

This commit is contained in:
romankko2 committed 2023-08-08 20:06:47 +02:00
1 parent 4163580fd6
commit a2fb04d3b2
5 files changed
+24 -4

No files matched your search

@@ -64,7 +64,8 @@ export default {
blocker: null,
datepicker: null,
starts_at_time: null,
ends_at_time: null
ends_at_time: null,
employee: null
}
},
@@ -112,9 +113,10 @@ export default {
} else {
this.blocker = {start: null }
if (blocker.starts_at_time && blocker.datepicker) {
if (blocker.starts_at_time && blocker.datepicker && blocker.employee_id) {
this.datepicker = blocker.datepicker
this.starts_at_time = blocker.starts_at_time
this.blocker.employee_id = blocker.employee_id
}
}
} catch (error) {
@@ -57,7 +57,7 @@ export default {
this.$events.emit('show-subtask-modal', {
subtask: {
deadline: this.localData.date,
_deadline_time: this.localData.time,
_deadline_time: this.localData.time
},
onTaskCreated: () => {
this.closeModal()
@@ -70,6 +70,7 @@ export default {
blocker: {
starts_at_time: this.localData.time,
datepicker: this.localData.date,
employee_id: this.localData.employee
},
onBlockerCreated: () => {
this.closeModal()
@@ -15,6 +15,11 @@
{{ employee.name.charAt(0) + employee.surname.charAt(0) }}
</p>
<p class="ml-2" v-html="`${employee.name} ${employee.surname}`" />
<!-- <v-tooltip text="Vymazať priradeného zamestnanca" location="top">
<template v-slot:activator="{ props }">
<v-icon v-bind="props" class="ml-2 cursor-pointer" icon="mdi-close" />
</template>
</v-tooltip> -->
</v-sheet>
</v-col>
</v-row>