Начало переверстки Project
This commit is contained in:
1 parent
4716effcf7
commit
d8974877d2
2 files changed
+41
-26
No files matched your search
@@ -251,12 +251,15 @@
|
|||||||
|
|
||||||
<template #4>
|
<template #4>
|
||||||
|
|
||||||
<v-container>
|
|
||||||
|
|
||||||
|
|
||||||
|
<v-container style="height:100%">
|
||||||
|
|
||||||
<v-row style="height:100%">
|
<v-row style="height:100%">
|
||||||
<v-col>
|
<v-col class="flex-col justify-space-between">
|
||||||
<v-treeview
|
<v-treeview
|
||||||
:active.sync="selection"
|
:active.sync="selection[0]"
|
||||||
:items="newproject.tasks"
|
:items="newproject.tasks"
|
||||||
:selection-type="'independent'"
|
:selection-type="'independent'"
|
||||||
hoverable
|
hoverable
|
||||||
@@ -265,16 +268,20 @@
|
|||||||
item-children="task_work"
|
item-children="task_work"
|
||||||
open-all
|
open-all
|
||||||
></v-treeview>
|
></v-treeview>
|
||||||
|
<v-btn
|
||||||
|
@click="addtask"
|
||||||
|
>Добавить задачу</v-btn>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-divider vertical></v-divider>
|
<v-divider vertical></v-divider>
|
||||||
<v-col
|
<v-col
|
||||||
class="pa-6"
|
class="flex-col justify-space-between"
|
||||||
cols="6"
|
cols="6"
|
||||||
>
|
>
|
||||||
<template v-if="!selection.length">
|
<template v-if="!selection.length">
|
||||||
Ничего не выбрано
|
Ничего не выбрано
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
|
<div>
|
||||||
<div
|
<div
|
||||||
v-for="node in selection"
|
v-for="node in selection"
|
||||||
:key="node.id"
|
:key="node.id"
|
||||||
@@ -416,13 +423,18 @@
|
|||||||
></v-textarea>
|
></v-textarea>
|
||||||
</template>
|
</template>
|
||||||
</row-pirow>
|
</row-pirow>
|
||||||
|
</div>
|
||||||
|
<v-btn
|
||||||
|
v-if="'task_work' in selection[0]"
|
||||||
|
@click="addwork"
|
||||||
|
>Добавить работу</v-btn>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
|
|
||||||
</v-container>
|
</v-container>
|
||||||
<b-btn>Добавить задачу</b-btn>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1068,14 +1080,15 @@ formatDate (date) {
|
|||||||
this.newproject.info[rem.field].splice(rem.key, 1)
|
this.newproject.info[rem.field].splice(rem.key, 1)
|
||||||
},
|
},
|
||||||
|
|
||||||
newTask() {
|
addtask() {
|
||||||
this.newproject.tasks.push({id: this.indx, longname: "", name:"Новая задача", description: "", datestart: "", dateend: "", responsible: "", task_work:[]})
|
this.newproject.tasks.push({id: -1*(this.newproject.tasks.length), longname: "", name:"Новая задача", description: "", datestart: "", dateend: "", responsible: "", task_work:[]})
|
||||||
this.indx--
|
this.selection[0]=this.newproject.tasks[this.newproject.tasks.length-1]
|
||||||
},
|
},
|
||||||
|
|
||||||
adddwork() {
|
addwork() {
|
||||||
this.selected.task_work.push({id: this.indexwork, longname: "", name:"Новая работа", description: "", datestart: "", dateend: "", responsible: ""})
|
console.log(this.selection);
|
||||||
this.indexwork--
|
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() {
|
deltasksworks() {
|
||||||
|
|||||||
+16
-14
@@ -92,6 +92,19 @@
|
|||||||
@createtabchat="createtabchat"
|
@createtabchat="createtabchat"
|
||||||
@changestatus="changestatus"
|
@changestatus="changestatus"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<v-dialog
|
||||||
|
v-model="show_change_dialog"
|
||||||
|
width="75vw"
|
||||||
|
>
|
||||||
|
<project-stepper
|
||||||
|
@closes="closes"
|
||||||
|
@newproject='newproject'
|
||||||
|
@showuserinfo='showuserinfo'
|
||||||
|
/>
|
||||||
|
</v-dialog>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template #projdocs>
|
<template #projdocs>
|
||||||
@@ -130,18 +143,6 @@
|
|||||||
|
|
||||||
<template #graphic>
|
<template #graphic>
|
||||||
|
|
||||||
<div>
|
|
||||||
<v-dialog
|
|
||||||
v-model="show_change_dialog"
|
|
||||||
width="75vw"
|
|
||||||
>
|
|
||||||
<project-stepper
|
|
||||||
@closes="closes"
|
|
||||||
@newproject='newproject'
|
|
||||||
@showuserinfo='showuserinfo'
|
|
||||||
/>
|
|
||||||
</v-dialog>
|
|
||||||
</div>
|
|
||||||
<work-pie-chart
|
<work-pie-chart
|
||||||
:title="'Статусы задач в проекте'"
|
:title="'Статусы задач в проекте'"
|
||||||
:data="task_statuses_calc"
|
:data="task_statuses_calc"
|
||||||
@@ -211,7 +212,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
data: () => ({
|
data: () => ({
|
||||||
show_change_dialog:true,
|
show_change_dialog:false,
|
||||||
statid: [1, 3, 4, 5, 6],
|
statid: [1, 3, 4, 5, 6],
|
||||||
message: {mes:"", show: false},
|
message: {mes:"", show: false},
|
||||||
comment:"",
|
comment:"",
|
||||||
@@ -490,10 +491,11 @@ takeprev(payload){
|
|||||||
|
|
||||||
data.project_files.forEach((el,index)=> data.project_files[index].visible =el.visible.split("") )
|
data.project_files.forEach((el,index)=> data.project_files[index].visible =el.visible.split("") )
|
||||||
this.project=data;
|
this.project=data;
|
||||||
console.log(this.project, 'this.project');
|
console.log(this.project, 'this.project _2load');
|
||||||
this.setProject(this.project)
|
this.setProject(this.project)
|
||||||
|
|
||||||
this.tasksaccepted=this.getProject.tasks.filter(el=>el.status.id==5).length*100/this.getProject.tasks.length
|
this.tasksaccepted=this.getProject.tasks.filter(el=>el.status.id==5).length*100/this.getProject.tasks.length
|
||||||
|
|
||||||
this.setLoad(false)
|
this.setLoad(false)
|
||||||
// if (this.gantview) this.$refs.gantproject.rebuild()
|
// if (this.gantview) this.$refs.gantproject.rebuild()
|
||||||
if("datachat" in data){
|
if("datachat" in data){
|
||||||
|
|||||||
Reference in new issue
Block a user