mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-22 06:49:35 +00:00
[v-autocomplete] Fix for special characters
This commit is contained in:
1 parent
2d7f29e9f4
commit
994356628d
10 files changed
+147
-83
No files matched your search
@@ -53,6 +53,24 @@ export default {
|
||||
return employee
|
||||
})
|
||||
|
||||
if (!this.mastertask.team)
|
||||
return this.mastertask.duration = totalDuration
|
||||
|
||||
this.mastertask.team.employees = this.mastertask.team.employees.map(employee => {
|
||||
if (isNaN(employee.duration) || isNaN(parseFloat(employee.duration)))
|
||||
return employee
|
||||
|
||||
if (typeof employee.duration == 'string') {
|
||||
totalDuration += parseFloat(employee.duration)
|
||||
employee.duration = parseFloat(employee.duration)
|
||||
}
|
||||
else if (typeof employee.duration == 'number') {
|
||||
totalDuration += employee.duration
|
||||
}
|
||||
|
||||
return employee
|
||||
})
|
||||
|
||||
this.mastertask.duration = totalDuration
|
||||
}
|
||||
},
|
||||
@@ -62,7 +80,7 @@ export default {
|
||||
if (!value) return
|
||||
|
||||
this.mastertask.team = this.teams.find(team => team.id == value)
|
||||
this.mastertask.employees = this.mastertask.team.employees
|
||||
// this.mastertask.employees = this.mastertask.team.employees
|
||||
},
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user