true
+ },
+
+ value: {
+ required: false
}
},
@@ -72,22 +87,39 @@ export default {
}
},
+ mounted() {
+ if (this.value)
+ this.search = this.value
+ },
+
methods: {
optionSelected() {
if (!this.suggestion)
return
this.$emit('option-selected', this.suggestion)
- this.search = ''
+
+ if (this.clearOnSubmit)
+ this.search = ''
+ else
+ this.search = this.suggestion.value
},
_normalize(value) {
+ if (!value) return ''
+
return value
.trim()
.toLowerCase()
.normalize("NFD")
.replace(/[\u0300-\u036f]/g, "")
}
+ },
+
+ watch: {
+ value(value) {
+ this.search = value
+ }
}
}
diff --git a/app/src/plugins/tm@dashboard/projects/projects.vue b/app/src/plugins/tm@dashboard/projects/projects.vue
index 331cce5..b5547cc 100644
--- a/app/src/plugins/tm@dashboard/projects/projects.vue
+++ b/app/src/plugins/tm@dashboard/projects/projects.vue
@@ -84,6 +84,7 @@ export default {
})
this.$events.on('on-master-task-edited', (masterTask) => {
+ this.masterTasks = this.masterTasks.map(mTask => mTask.id == masterTask.id ? masterTask : mTask)
this._getData()
})
},
@@ -92,7 +93,7 @@ export default {
async _getData() {
try {
this.teams = await this.$axios.get_auth_data('v1/teams')
- this.projects = await this.$axios.get_auth_data('v1/projects')
+ this.projects = await this.$axios.get_auth_data('v1/projects')
this.employees = await this.$axios.get_auth_data('v1/employees')
this.masterTasks = await this.$axios.get_auth_data('v1/mastertasks')
} catch (error) {
diff --git a/app/src/plugins/tm@modal/blocker/z-blocker-modal.vue b/app/src/plugins/tm@modal/blocker/z-blocker-modal.vue
index 68b9f88..734335a 100644
--- a/app/src/plugins/tm@modal/blocker/z-blocker-modal.vue
+++ b/app/src/plugins/tm@modal/blocker/z-blocker-modal.vue
@@ -46,6 +46,7 @@
>
+
+
+
+
+
+
+
+
+ Ukončený
+ Neukončený
+
+
+
+
+
+
+
+
+
+
+
+ {{ tmUtils.formatDateTime(masterTask.deadline) }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ masterTask.team?.name }}
+
+
+ {{ employee.name.charAt(0) + employee.surname.charAt(0) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ masterTask?.duration?.toFixed(2) }} h
+
+
+
+
+
+
+
+
+
+
+
+ {{ masterTask.time_worked?.toFixed(2) }} h
+
+
+
+
+
+
+
+
+
+
+
+ {{ (masterTask.duration - masterTask.time_worked)?.toFixed(2) }} h
+
+
+
+
+
Popis zadania
+
+
Prílohy
+
+
+
+ {{ file.name }}
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/plugins/tm@modal/master-task/_components/a-tasks-table.vue b/app/src/plugins/tm@modal/master-task/_components/a-tasks-table.vue
new file mode 100644
index 0000000..827ca12
--- /dev/null
+++ b/app/src/plugins/tm@modal/master-task/_components/a-tasks-table.vue
@@ -0,0 +1,71 @@
+