| @@ -330,15 +330,14 @@ | |||||
| this.$cookies.set("item",JSON.stringify(item)); | this.$cookies.set("item",JSON.stringify(item)); | ||||
| }, | }, | ||||
| getList() { | getList() { | ||||
| this.totalList = [] | |||||
| this.doneList = []; | |||||
| this.todoList = []; | |||||
| listTask(this.queryParams).then(response => { | listTask(this.queryParams).then(response => { | ||||
| this.total = response.total | this.total = response.total | ||||
| this.totalList = [] | |||||
| this.done = 0; | this.done = 0; | ||||
| this.doneList = []; | |||||
| this.todo = 0; | this.todo = 0; | ||||
| this.todoList = []; | |||||
| response.rows.map(res => { | response.rows.map(res => { | ||||
| console.log(res.reportNhNumber) | |||||
| if(res.taskStatus == "FINISHED"){ | if(res.taskStatus == "FINISHED"){ | ||||
| this.done+=1 | this.done+=1 | ||||
| this.doneList.push(res); | this.doneList.push(res); | ||||
| @@ -346,7 +345,6 @@ | |||||
| this.todo+=1 | this.todo+=1 | ||||
| this.todoList.push(res); | this.todoList.push(res); | ||||
| } | } | ||||
| /*this.totalList.push(res);*/ | |||||
| if(res.taskExecutor!=null&&res.taskExecutor!=''){ | if(res.taskExecutor!=null&&res.taskExecutor!=''){ | ||||
| res.taskExecutor = res.taskExecutor.split(',') | res.taskExecutor = res.taskExecutor.split(',') | ||||
| } | } | ||||