feat(WorkerFormation): add columnFilter
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

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'], fields: ['id', 'name'],
}, },
disable: false, disable: false,
columnFilter: {
inWhere: true, inWhere: true,
}, },
},
{ {
align: 'left', align: 'left',
name: 'started', name: 'started',
@ -60,7 +62,6 @@ const columns = computed(() => [
align: 'left', align: 'left',
name: 'centerFk', name: 'centerFk',
label: t('worker.formation.tableVisibleColumns.center'), label: t('worker.formation.tableVisibleColumns.center'),
field: 'centerFk',
create: true, create: true,
component: 'select', component: 'select',
attrs: { attrs: {
@ -68,8 +69,10 @@ const columns = computed(() => [
fields: ['id', 'name'], fields: ['id', 'name'],
}, },
disable: false, disable: false,
columnFilter: {
inWhere: true, inWhere: true,
}, },
},
{ {
align: 'left', align: 'left',
name: 'invoice', name: 'invoice',
@ -90,20 +93,13 @@ const columns = computed(() => [
name: 'remark', name: 'remark',
label: t('worker.formation.tableVisibleColumns.remark'), label: t('worker.formation.tableVisibleColumns.remark'),
create: true, create: true,
chip: { component: 'checkbox',
color: null,
condition: (value) => value,
},
}, },
{ {
align: 'left', align: 'left',
name: 'hasDiploma', name: 'hasDiploma',
label: t('worker.formation.tableVisibleColumns.hasDiploma'), label: t('worker.formation.tableVisibleColumns.hasDiploma'),
create: true, create: true,
chip: {
color: null,
condition: (value) => value,
},
}, },
]); ]);
</script> </script>
@ -113,7 +109,7 @@ const columns = computed(() => [
data-key="WorkerFormation" data-key="WorkerFormation"
:url="`Workers/${entityId}/trainingCourse`" :url="`Workers/${entityId}/trainingCourse`"
:url-create="`Workers/${entityId}/trainingCourse`" :url-create="`Workers/${entityId}/trainingCourse`"
:user-filter="courseFilter" :filter="courseFilter"
:create="{ :create="{
urlCreate: 'trainingCourses', urlCreate: 'trainingCourses',
title: 'Create trainingCourse', title: 'Create trainingCourse',