fix: refs #7323 fix department & email table filter

This commit is contained in:
Jon Elias 2024-07-18 12:13:38 +02:00
parent 9e78d30a4c
commit 901a9e1f6d
2 changed files with 12 additions and 12 deletions

View File

@ -2,7 +2,6 @@
import { watch, computed, ref, nextTick } from 'vue';
import { useI18n } from 'vue-i18n';
import { date } from 'quasar';
import { nextTick } from 'vue';
const model = defineModel({ type: String });
const props = defineProps({

View File

@ -42,26 +42,27 @@ const columns = computed(() => [
},
{
align: 'left',
name: 'department',
name: 'departmentFk',
label: t('tableColumns.department'),
cardVisible: true,
columnFilter: {
component: 'select',
inWhere: true,
alias: 'wd',
attrs: {
url: 'Departments',
fields: ['id', 'name'],
},
columnField: {
component: null,
},
format: (row, dashIfEmpty) => dashIfEmpty(row.department),
},
{
align: 'left',
name: 'email',
label: t('tableColumns.email'),
component: 'input',
cardVisible: true,
columnField: {
component: null,
columnFilter: {
alias: 'mu',
inWhere: true,
},
},
{