解决不显示子工作项的问题
parent
ac646086f6
commit
55e0fdf078
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue