|
@@ -478,6 +478,8 @@ export default {
|
|
|
this.$api.workNodeTaskRecord.personalTaskTodoList(this.listQuery).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
this.pageData = res.data;
|
|
|
+ const businessIds = res.data.records.map(item=>item.businessId)
|
|
|
+ this.queryLastComments(businessIds);
|
|
|
loadingInstance.close();
|
|
|
}
|
|
|
})
|
|
@@ -516,6 +518,8 @@ export default {
|
|
|
this.$api.workNodeTaskRecord.personalTaskTodoList(params).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
this.pageData = res.data;
|
|
|
+ const businessIds = res.data.records.map(item=>item.businessId)
|
|
|
+ this.queryLastComments(businessIds);
|
|
|
loadingInstance.close();
|
|
|
}
|
|
|
})
|
|
@@ -816,7 +820,20 @@ export default {
|
|
|
this.clientName = null;
|
|
|
this.inRepNodeCode = null;
|
|
|
this.outRepNodeCode = null;
|
|
|
- }
|
|
|
+ },
|
|
|
+ queryLastComments(businessIds){
|
|
|
+ this.$api.workflowLog.queryLastComments(businessIds).then(res=>{
|
|
|
+ if (res.code === 200){
|
|
|
+ for (let i in this.pageData.records){
|
|
|
+ for (let j in res.data){
|
|
|
+ if (this.pageData.records[i].businessId == res.data[j].id){
|
|
|
+ this.pageData.records[i].comments = res.data[j].comments;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
|
|
|
|
|
|
},
|