This commit is contained in:
parent
e38e9b1dd7
commit
1455d8ce02
|
@ -144,6 +144,20 @@ const columns = computed(() => [
|
|||
url: 'ItemTypes',
|
||||
order: 'name ASC',
|
||||
exprBuilder,
|
||||
userFilter: {
|
||||
include: {
|
||||
relation: 'worker',
|
||||
scope: {
|
||||
fields: ['id'],
|
||||
include: {
|
||||
relation: 'user',
|
||||
scope: {
|
||||
fields: ['id', 'name'],
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}"
|
||||
>
|
||||
<template #body>
|
||||
|
@ -156,20 +170,6 @@ const columns = computed(() => [
|
|||
onDataSaved: () => tableRef.reload(),
|
||||
formInitialData: {},
|
||||
}"
|
||||
:user-filter="{
|
||||
include: {
|
||||
relation: 'worker',
|
||||
scope: {
|
||||
fields: ['id'],
|
||||
include: {
|
||||
relation: 'user',
|
||||
scope: {
|
||||
fields: ['id', 'name'],
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}"
|
||||
:columns="columns"
|
||||
auto-load
|
||||
redirect="item/item-type"
|
||||
|
|
Loading…
Reference in New Issue