forked from verdnatura/salix-front
feat(WorkerFormation): add columnFilter
This commit is contained in:
parent
ced3fb05e0
commit
aa2601ac45
|
@ -37,8 +37,10 @@ const columns = computed(() => [
|
|||
fields: ['id', 'name'],
|
||||
},
|
||||
disable: false,
|
||||
columnFilter: {
|
||||
inWhere: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
align: 'left',
|
||||
name: 'started',
|
||||
|
@ -60,7 +62,6 @@ const columns = computed(() => [
|
|||
align: 'left',
|
||||
name: 'centerFk',
|
||||
label: t('worker.formation.tableVisibleColumns.center'),
|
||||
field: 'centerFk',
|
||||
create: true,
|
||||
component: 'select',
|
||||
attrs: {
|
||||
|
@ -68,8 +69,10 @@ const columns = computed(() => [
|
|||
fields: ['id', 'name'],
|
||||
},
|
||||
disable: false,
|
||||
columnFilter: {
|
||||
inWhere: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
align: 'left',
|
||||
name: 'invoice',
|
||||
|
@ -90,20 +93,13 @@ const columns = computed(() => [
|
|||
name: 'remark',
|
||||
label: t('worker.formation.tableVisibleColumns.remark'),
|
||||
create: true,
|
||||
chip: {
|
||||
color: null,
|
||||
condition: (value) => value,
|
||||
},
|
||||
component: 'checkbox',
|
||||
},
|
||||
{
|
||||
align: 'left',
|
||||
name: 'hasDiploma',
|
||||
label: t('worker.formation.tableVisibleColumns.hasDiploma'),
|
||||
create: true,
|
||||
chip: {
|
||||
color: null,
|
||||
condition: (value) => value,
|
||||
},
|
||||
},
|
||||
]);
|
||||
</script>
|
||||
|
@ -113,7 +109,7 @@ const columns = computed(() => [
|
|||
data-key="WorkerFormation"
|
||||
:url="`Workers/${entityId}/trainingCourse`"
|
||||
:url-create="`Workers/${entityId}/trainingCourse`"
|
||||
:user-filter="courseFilter"
|
||||
:filter="courseFilter"
|
||||
:create="{
|
||||
urlCreate: 'trainingCourses',
|
||||
title: 'Create trainingCourse',
|
||||
|
|
Loading…
Reference in New Issue