mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
50 lines
2.0 KiB
Vue
50 lines
2.0 KiB
Vue
<template>
|
|
<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-task-timeblocks :timeblocks="task.timeblocks" :task="task" />
|
|
<A-task-assigned-by :employee="task._created_by" v-if="task._created_by" />
|
|
<A-task-assigned-employee :employee="task.employee" />
|
|
<A-task-planned-time :hours="task.duration" />
|
|
<A-task-remaining-time :hours="task.duration - task.spent_time" />
|
|
<A-task-spent-time :hours="task.spent_time" :task="task" />
|
|
<A-task-description :description="task.description" :mastertask-description="task.master_task_description" />
|
|
<Z-files :files="task.files" />
|
|
</template>
|
|
|
|
<script>
|
|
import AMastertaskName from './_components/a-mastertask-name.vue'
|
|
import AMastertaskStatus from './_components/a-mastertask-status.vue'
|
|
import ATaskTimeblocks from './_components/a-task-timeblocks.vue'
|
|
import ATaskAssignedBy from './_components/a-task-assigned-by.vue'
|
|
import ATaskAssignedEmployee from './_components/a-task-assigned-employee.vue'
|
|
import ATaskPlannedTime from './_components/a-task-planned-time.vue'
|
|
import ATaskSpentTime from './_components/a-task-spent-time.vue'
|
|
import ATaskRemainingTime from './_components/a-task-remaining-time.vue'
|
|
import ATaskDescription from './_components/a-task-description.vue'
|
|
import ZFiles from '@/plugins/tm@modal/_components/read-only/z-files.vue'
|
|
|
|
export default {
|
|
emits: ['close-modal'],
|
|
|
|
components: {
|
|
ZFiles,
|
|
AMastertaskName,
|
|
AMastertaskStatus,
|
|
ATaskTimeblocks,
|
|
ATaskAssignedBy,
|
|
ATaskAssignedEmployee,
|
|
ATaskPlannedTime,
|
|
ATaskSpentTime,
|
|
ATaskRemainingTime,
|
|
ATaskDescription
|
|
},
|
|
|
|
props: {
|
|
task: {
|
|
type: Object,
|
|
required: true
|
|
}
|
|
}
|
|
}
|
|
</script>
|