This commit is contained in:
romankko2 committed 2024-06-28 17:05:45 +02:00
commit ef7ab9dd17
9 files changed
+10 -12

No files matched your search

@@ -16,7 +16,7 @@ export default {
methods: { methods: {
_initScrollListener(repeat = 0) { _initScrollListener(repeat = 0) {
if (this.initialized) return if (this.initialized && repeat > 0) return
const calendar = this.$refs.page?.querySelector('.vuecal__bg') const calendar = this.$refs.page?.querySelector('.vuecal__bg')
@@ -120,7 +120,9 @@ export default {
this.$toast.error('Nepodarilo sa nacitat data!') this.$toast.error('Nepodarilo sa nacitat data!')
} }
this._initScrollListener() setTimeout(() => {
this._initScrollListener()
}, 100)
}, },
openMasterTaskModal(mastertaskId) { openMasterTaskModal(mastertaskId) {
+3 -1
View File
@@ -181,7 +181,9 @@ export default {
this.$toast.error('Nepodarilo sa nacitat data!') this.$toast.error('Nepodarilo sa nacitat data!')
} }
this._initScrollListener() setTimeout(() => {
this._initScrollListener()
}, 100)
} }
} }
} }
+3 -1
View File
@@ -86,7 +86,9 @@ export default {
this.$toast.error('Nepodarilo sa nacitat data!') this.$toast.error('Nepodarilo sa nacitat data!')
} }
this._initScrollListener() setTimeout(() => {
this._initScrollListener()
}, 100)
} }
} }
} }
@@ -43,7 +43,6 @@ export default {
onEmployeeSelected(id) { onEmployeeSelected(id) {
const employee = this.enrichedEmployees.find(employee => employee.id == id) const employee = this.enrichedEmployees.find(employee => employee.id == id)
console.log('add employee', employee)
this.mastertask.employees.push(employee) this.mastertask.employees.push(employee)
this.showAddEmployeeInput = false this.showAddEmployeeInput = false
}, },
@@ -280,8 +280,6 @@ export default {
return employee return employee
}) })
console.log('NEW', this.mastertask)
// this.mastertask.project_code = project.code // this.mastertask.project_code = project.code
} else { } else {
this.mastertask = { employees: [], duration: 0, _deadline_time: '17:00' } this.mastertask = { employees: [], duration: 0, _deadline_time: '17:00' }
@@ -54,7 +54,6 @@ export default {
}, },
createTask() { createTask() {
console.log(this.localData.date, this.localData.time, this.localData.employees)
this.$events.emit('show-subtask-modal', { this.$events.emit('show-subtask-modal', {
subtask: { subtask: {
deadline: this.localData.date, deadline: this.localData.date,
@@ -71,9 +71,6 @@ export default {
}) })
}) })
}, },
onFocus() {
console.log('focus')
},
updateDate(date) { updateDate(date) {
const timeblock = { ...this.timeblock } const timeblock = { ...this.timeblock }
if (date) timeblock.date = date if (date) timeblock.date = date
@@ -368,7 +368,6 @@ export default {
}, },
updateSubtask(subtask) { updateSubtask(subtask) {
console.log('UPDATE SUBTASK: ', subtask.timeblocks[0])
this.subtask = subtask this.subtask = subtask
}, },