forked from verdnatura/salix-front
feat(WorkerFormation): add columnFilter
This commit is contained in:
parent
ced3fb05e0
commit
aa2601ac45
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue