51
51
>
52
52
<span v-uni-id =" props.rowData.id.toString()" >{{ props.rowData.name }}</span >
53
53
</template >
54
+ <template
55
+ slot="active_tasks"
56
+ slot-scope="props"
57
+ >
58
+ <div
59
+ v-for =" task in props.rowData.active_tasks"
60
+ :key =" `active_task-${task.id}`"
61
+ >
62
+ <b-link
63
+ class =" text-nowrap"
64
+ :href =" openTask(task)"
65
+ >
66
+ {{ task.element_name }}
67
+ </b-link >
68
+ </div >
69
+ </template >
54
70
<template
55
71
slot="participants"
56
72
slot-scope="props"
57
73
>
58
- <avatar-image
74
+ <div
59
75
v-for =" participant in props.rowData.participants"
60
- :key =" participant.id"
61
- size =" 25"
62
- hide-name =" true"
63
- :input-data =" participant"
64
- />
76
+ :key =" `participant-${participant.id}`"
77
+ >
78
+ <avatar-image
79
+ size =" 25"
80
+ hide-name =" true"
81
+ :input-data =" participant"
82
+ />
83
+ {{ participant.fullname }}
84
+ </div >
65
85
</template >
66
86
<template
67
87
slot="actions"
@@ -225,9 +245,10 @@ export default {
225
245
default: true ,
226
246
},
227
247
{
228
- label: " Status" ,
229
- field: " status" ,
230
- sortable: true ,
248
+ label: " Task Name" ,
249
+ field: " active_tasks" ,
250
+ name: " __slot:active_tasks" ,
251
+ sortable: false ,
231
252
default: true ,
232
253
},
233
254
{
@@ -236,6 +257,12 @@ export default {
236
257
sortable: false ,
237
258
default: true ,
238
259
},
260
+ {
261
+ label: " Status" ,
262
+ field: " status" ,
263
+ sortable: true ,
264
+ default: true ,
265
+ },
239
266
{
240
267
label: " Started" ,
241
268
field: " initiated_at" ,
@@ -255,6 +282,9 @@ export default {
255
282
openRequest (data , index ) {
256
283
return ` /requests/${ data .id } ` ;
257
284
},
285
+ openTask (task ) {
286
+ return ` /tasks/${ task .id } /edit` ;
287
+ },
258
288
formatStatus (status ) {
259
289
let color = " success" ,
260
290
label = " In Progress" ;
@@ -339,7 +369,7 @@ export default {
339
369
this .page +
340
370
" &per_page=" +
341
371
this .perPage +
342
- " &include=process,participants,data" +
372
+ " &include=process,participants,activeTasks, data" +
343
373
" &pmql=" +
344
374
encodeURIComponent (pmql) +
345
375
" &filter=" +
0 commit comments