From d8974877d22023abc8fa3108e0e4117c39d3a43f Mon Sep 17 00:00:00 2001
From: Vitaly <53114367+Nukeap@users.noreply.github.com>
Date: Wed, 6 Sep 2023 08:59:08 +0300
Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B0=D1=87=D0=B0=D0=BB=D0=BE=20=D0=BF?=
=?UTF-8?q?=D0=B5=D1=80=D0=B5=D0=B2=D0=B5=D1=80=D1=81=D1=82=D0=BA=D0=B8=20?=
=?UTF-8?q?Project?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
front/src/components/UI/project-stepper.vue | 37 ++++++++++++++-------
front/src/views/Project.vue | 32 +++++++++---------
2 files changed, 42 insertions(+), 27 deletions(-)
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"
/>
+
+
@@ -130,24 +143,12 @@
-
-
+
@@ -211,7 +212,7 @@ export default {
},
data: () => ({
- show_change_dialog:true,
+ show_change_dialog:false,
statid: [1, 3, 4, 5, 6],
message: {mes:"", show: false},
comment:"",
@@ -490,10 +491,11 @@ takeprev(payload){
data.project_files.forEach((el,index)=> data.project_files[index].visible =el.visible.split("") )
this.project=data;
- console.log(this.project, 'this.project');
+ console.log(this.project, 'this.project _2load');
this.setProject(this.project)
this.tasksaccepted=this.getProject.tasks.filter(el=>el.status.id==5).length*100/this.getProject.tasks.length
+
this.setLoad(false)
// if (this.gantview) this.$refs.gantproject.rebuild()
if("datachat" in data){