0
0
Fork 0

feat(WorkerFormation): add columnFilter

This commit is contained in:
Alex Moreno 2024-06-10 09:15:17 +02:00
parent ced3fb05e0
commit aa2601ac45
1 changed files with 8 additions and 12 deletions

View File

@ -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',