mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
[Master task] Created_by fix
This commit is contained in:
1 parent
66eeec4525
commit
6b73deb0f4
4 files changed
+19
-9
No files matched your search
@@ -124,9 +124,9 @@ export default {
|
|||||||
|
|
||||||
watch: {
|
watch: {
|
||||||
'$route'() {
|
'$route'() {
|
||||||
if (this.$route.query['master-task']) {
|
// if (this.$route.query['master-task']) {
|
||||||
this.$events.emit('show-master-task-modal', { mastertask: { id: this.$route.query['master-task'] }, editMode: false })
|
// this.$events.emit('show-master-task-modal', { mastertask: { id: this.$route.query['master-task'] }, editMode: false })
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,12 +21,22 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { mapGetters } from 'vuex';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
employee: {
|
employeeId: {
|
||||||
type: [Object, Number],
|
type: [Number],
|
||||||
required: false
|
required: false
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
computed: {
|
||||||
|
...mapGetters('tm', ['enrichedEmployees']),
|
||||||
|
|
||||||
|
employee() {
|
||||||
|
return this.enrichedEmployees.find(employee => employee.id == this.employeeId)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<Z-status :status="mastertask.is_finished" />
|
<Z-status :status="mastertask.is_finished" />
|
||||||
<Z-deadline :deadline="mastertask.deadline" />
|
<Z-deadline :deadline="mastertask.deadline" />
|
||||||
<Z-created-by :employee="mastertask.created_by" />
|
<Z-created-by :employee-id="mastertask.created_by" />
|
||||||
<Z-team :team="mastertask.team" :employees="mastertask.employees" />
|
<Z-team :team="mastertask.team" :employees="mastertask.employees" />
|
||||||
<Z-planned-time :hours="mastertask.duration" />
|
<Z-planned-time :hours="mastertask.duration" />
|
||||||
<Z-remaining-time :hours="mastertask.duration - mastertask.time_worked" />
|
<Z-remaining-time :hours="mastertask.duration - mastertask.time_worked" />
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<A-mastertask-name :name="task.master_task?.name || task.master_task" :id="task.master_task.id" :color="task.master_task.color" @close-modal="$emit('close-modal')" />
|
<A-mastertask-name :name="task.master_task?.name || task.master_task" :id="task.master_task.id" :color="task.master_task.color" @close-modal="$emit('close-modal')" />
|
||||||
<A-mastertask-status :status="task.is_finished" />
|
<A-mastertask-status :status="task.is_finished" />
|
||||||
<A-task-timeblocks :timeblocks="task.timeblocks" :task="task" />
|
<A-task-timeblocks :timeblocks="task.timeblocks" :task="task" />
|
||||||
<A-task-assigned-by :employee="task._created_by" v-if="task._created_by" />
|
<Z-created-by :employee-id="task.created_by" />
|
||||||
<A-task-assigned-employee :employee="task.employee" />
|
<A-task-assigned-employee :employee="task.employee" />
|
||||||
<A-task-planned-time :hours="task.duration" />
|
<A-task-planned-time :hours="task.duration" />
|
||||||
<A-task-remaining-time :hours="task.duration - task.spent_time" />
|
<A-task-remaining-time :hours="task.duration - task.spent_time" />
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
import AMastertaskName from './_components/a-mastertask-name.vue'
|
import AMastertaskName from './_components/a-mastertask-name.vue'
|
||||||
import AMastertaskStatus from './_components/a-mastertask-status.vue'
|
import AMastertaskStatus from './_components/a-mastertask-status.vue'
|
||||||
import ATaskTimeblocks from './_components/a-task-timeblocks.vue'
|
import ATaskTimeblocks from './_components/a-task-timeblocks.vue'
|
||||||
import ATaskAssignedBy from './_components/a-task-assigned-by.vue'
|
import ZCreatedBy from '../../_components/read-only/z-created-by.vue'
|
||||||
import ATaskAssignedEmployee from './_components/a-task-assigned-employee.vue'
|
import ATaskAssignedEmployee from './_components/a-task-assigned-employee.vue'
|
||||||
import ATaskPlannedTime from './_components/a-task-planned-time.vue'
|
import ATaskPlannedTime from './_components/a-task-planned-time.vue'
|
||||||
import ATaskSpentTime from './_components/a-task-spent-time.vue'
|
import ATaskSpentTime from './_components/a-task-spent-time.vue'
|
||||||
@@ -31,7 +31,7 @@ export default {
|
|||||||
AMastertaskName,
|
AMastertaskName,
|
||||||
AMastertaskStatus,
|
AMastertaskStatus,
|
||||||
ATaskTimeblocks,
|
ATaskTimeblocks,
|
||||||
ATaskAssignedBy,
|
ZCreatedBy,
|
||||||
ATaskAssignedEmployee,
|
ATaskAssignedEmployee,
|
||||||
ATaskPlannedTime,
|
ATaskPlannedTime,
|
||||||
ATaskSpentTime,
|
ATaskSpentTime,
|
||||||
|
|||||||
Reference in new issue
Block a user