解决不显示子工作项的问题

main
wuyize 2022-07-12 14:41:02 +08:00
parent ac646086f6
commit 55e0fdf078
1 changed files with 2 additions and 0 deletions

View File

@ -745,6 +745,7 @@ export default {
that.workitems = response.data.data.records that.workitems = response.data.data.records
for (let workitem of that.workitems) { for (let workitem of that.workitems) {
workitem['editable'] = that.projectAccessLevel < 3 workitem['editable'] = that.projectAccessLevel < 3
workitem['hasChildren'] = workitem.childrenCount !==0
//console.log(workitem) //console.log(workitem)
} }
//console.log(that.workitems) //console.log(that.workitems)
@ -769,6 +770,7 @@ export default {
const editable = row.editable || row.taskHolderId === that.$store.state.staff.staffId const editable = row.editable || row.taskHolderId === that.$store.state.staff.staffId
for (let workitem of records) { for (let workitem of records) {
workitem['editable'] = editable workitem['editable'] = editable
workitem['hasChildren'] = workitem.childrenCount!==0
//console.log(workitem) //console.log(workitem)
} }
resolve(records) resolve(records)