|
@@ -187,6 +187,8 @@ export default {
|
|
this.$api.personal.list(this.listQuery).then(res=>{
|
|
this.$api.personal.list(this.listQuery).then(res=>{
|
|
if (res.code ===200){
|
|
if (res.code ===200){
|
|
this.pageData = res.data;
|
|
this.pageData = res.data;
|
|
|
|
+ const businessIds = res.data.records.map(item=>item.id)
|
|
|
|
+ this.queryLastComments(businessIds);
|
|
loadingInstance.close();
|
|
loadingInstance.close();
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -204,6 +206,8 @@ export default {
|
|
this.$api.personal.list(params).then(res=>{
|
|
this.$api.personal.list(params).then(res=>{
|
|
if (res.code ===200){
|
|
if (res.code ===200){
|
|
this.pageData = res.data;
|
|
this.pageData = res.data;
|
|
|
|
+ const businessIds = res.data.records.map(item=>item.id)
|
|
|
|
+ this.queryLastComments(businessIds);
|
|
loadingInstance.close();
|
|
loadingInstance.close();
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -302,6 +306,19 @@ export default {
|
|
const seconds = String(now.getSeconds()).padStart(2, '0');
|
|
const seconds = String(now.getSeconds()).padStart(2, '0');
|
|
return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
|
|
return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
|
|
},
|
|
},
|
|
|
|
+ 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].id == res.data[j].id){
|
|
|
|
+ this.pageData.records[i].comments = res.data[j].comments;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
},
|
|
},
|
|
|
|
|
|
}
|
|
}
|