Петрович
This commit is contained in:
1 parent
d9864d86b6
commit
3f9d9185ad
7 files changed
+59
-347
No files matched your search
+21
-42
@@ -217,13 +217,13 @@ export default {
|
||||
message: {mes:"", show: false},
|
||||
comment:"",
|
||||
tabProj: null,
|
||||
test:{test:[{test:'test','test2':'test2'}]},
|
||||
chatview:true,
|
||||
tasksaccepted:0,
|
||||
gantview:false,
|
||||
|
||||
|
||||
tasksaccepted:0,
|
||||
gantview:false,
|
||||
show:false,
|
||||
tabs: ['Карточка','Документация', 'История'],
|
||||
btns_otchet: ['Приказ', 'План', 'Паспорт', 'Отчет', 'План КС', 'Итоговый отчет', 'Состав РГ', 'Протокол'],
|
||||
|
||||
|
||||
menu:null,
|
||||
waiter:false,
|
||||
|
||||
@@ -231,7 +231,7 @@ export default {
|
||||
task:{name:"",datestart:"",dateend:"",responsible:{id:""},status:{id:0,name:"",description:""}},
|
||||
activedCh: {},
|
||||
ws: null,
|
||||
position: true,
|
||||
|
||||
documents:[],
|
||||
project:{
|
||||
id:0,
|
||||
@@ -249,7 +249,7 @@ export default {
|
||||
id: 0
|
||||
},
|
||||
datestart:'',
|
||||
dateenf:'',
|
||||
|
||||
tasks: [],
|
||||
author: {
|
||||
id: 0
|
||||
@@ -262,7 +262,7 @@ export default {
|
||||
|
||||
|
||||
|
||||
box: {},
|
||||
|
||||
|
||||
|
||||
userFields: [
|
||||
@@ -374,19 +374,16 @@ takeprev(payload){
|
||||
|
||||
},
|
||||
messagedeleted(payload){
|
||||
try{
|
||||
|
||||
// console.log(this.mychats[ind].lastmessage)
|
||||
try{
|
||||
let ind2=this.activedCh.lastmessage.findIndex(e=>e.id==payload.id)
|
||||
this.activedCh.lastmessage.splice(ind2,1)
|
||||
console.log(this.activedCh.lastmessage, "slice");}
|
||||
}
|
||||
catch{
|
||||
|
||||
}
|
||||
|
||||
} ,
|
||||
filedeleted(payload){
|
||||
|
||||
filedeleted(payload){
|
||||
|
||||
let ind = this.project.project_files.findIndex(el=>el.id==payload.id)
|
||||
this.project.project_files.splice(ind,1)
|
||||
@@ -394,7 +391,7 @@ takeprev(payload){
|
||||
},
|
||||
|
||||
createnewTask(){
|
||||
console.log('ioi');
|
||||
|
||||
this.$refs.gantproject.createnewTask()
|
||||
},
|
||||
|
||||
@@ -407,12 +404,9 @@ takeprev(payload){
|
||||
|
||||
|
||||
|
||||
|
||||
// afterEnter(){
|
||||
// console.log("@after-enter=")
|
||||
// },
|
||||
|
||||
VisSwitcher(file){
|
||||
// console.log(file);
|
||||
|
||||
this.ws.send({"action":"updateFile","payload":{id:file.id,visible: file.visible.join("")}})
|
||||
|
||||
},
|
||||
@@ -422,19 +416,12 @@ takeprev(payload){
|
||||
this.ws.send({"action":"rebuild","payload": this.project.id})
|
||||
},
|
||||
|
||||
// afterLeave(){
|
||||
// console.log(`jjjjjjj`);
|
||||
// this.tab=this.nedotab
|
||||
// // this.currentid = this.tab==0?this.work.id:this.work.work_assignment[this.tab-1].id
|
||||
// this.activeChat()
|
||||
// this.show=true
|
||||
// },
|
||||
|
||||
chatviewer(){
|
||||
|
||||
chatviewer(){
|
||||
this.chatview=!this.chatview
|
||||
},
|
||||
createtabchat(){
|
||||
|
||||
createtabchat(){
|
||||
let name = this.getProject.name
|
||||
let level = 1
|
||||
let parent =this.getProject.id
|
||||
@@ -449,10 +436,7 @@ takeprev(payload){
|
||||
|
||||
async uploadfile(formData){
|
||||
let fileinfo = {project:this.getProject.id, visible: '1000'}
|
||||
// if (this.level==3){
|
||||
// fileinfo['assignment']=this.work.work_assignment[this.tab-1].id
|
||||
// fileinfo.visible='0001'
|
||||
// }
|
||||
|
||||
// // Тут же заделаем потом на другие уровни - задачи и проекты
|
||||
formData.append('info', JSON.stringify(fileinfo))
|
||||
|
||||
@@ -473,9 +457,7 @@ takeprev(payload){
|
||||
}
|
||||
|
||||
},
|
||||
console(val){
|
||||
console.log(val);
|
||||
},
|
||||
|
||||
addTask(val){
|
||||
console.log(val,"!!!!!!!!!!!!!!!!!!!!!!!!!");
|
||||
delete val.val.history
|
||||
@@ -515,10 +497,7 @@ takeprev(payload){
|
||||
this.setProjectusers(users)
|
||||
},
|
||||
|
||||
editField(field) {
|
||||
|
||||
this.box=field
|
||||
},
|
||||
|
||||
newmessageincome(payload){
|
||||
this.activedCh.lastmessage.push(payload)
|
||||
|
||||
|
||||
Reference in new issue
Block a user