diff --git a/front/src/components/UI/project-stepper.vue b/front/src/components/UI/project-stepper.vue index 45df1c6..be79335 100644 --- a/front/src/components/UI/project-stepper.vue +++ b/front/src/components/UI/project-stepper.vue @@ -250,13 +250,16 @@ + -Добавить задачу + @@ -1068,14 +1080,15 @@ formatDate (date) { this.newproject.info[rem.field].splice(rem.key, 1) }, - newTask() { - this.newproject.tasks.push({id: this.indx, longname: "", name:"Новая задача", description: "", datestart: "", dateend: "", responsible: "", task_work:[]}) - this.indx-- + addtask() { + this.newproject.tasks.push({id: -1*(this.newproject.tasks.length), longname: "", name:"Новая задача", description: "", datestart: "", dateend: "", responsible: "", task_work:[]}) + this.selection[0]=this.newproject.tasks[this.newproject.tasks.length-1] }, - adddwork() { - this.selected.task_work.push({id: this.indexwork, longname: "", name:"Новая работа", description: "", datestart: "", dateend: "", responsible: ""}) - this.indexwork-- + addwork() { + console.log(this.selection); + this.selection[0].task_work.push({id: -1*(this.selection[0].task_work.length), longname: "", name:"Новая работа", description: "", datestart: "", dateend: "", responsible: ""}) + this.selection[0]= this.selection[0].task_work[this.selection[0].task_work.length-1] }, deltasksworks() { diff --git a/front/src/views/Project.vue b/front/src/views/Project.vue index 03e0901..823dc7f 100644 --- a/front/src/views/Project.vue +++ b/front/src/views/Project.vue @@ -92,6 +92,19 @@ @createtabchat="createtabchat" @changestatus="changestatus" /> + +
+ + + +