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,7 +37,9 @@ const columns = computed(() => [
fields: ['id', 'name'],
},
disable: false,
inWhere: true,
columnFilter: {
inWhere: true,
},
},
{
align: 'left',
@ -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,7 +69,9 @@ const columns = computed(() => [
fields: ['id', 'name'],
},
disable: false,
inWhere: true,
columnFilter: {
inWhere: true,
},
},
{
align: 'left',
@ -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',