fix: refs #7323 fix department & email table filter
This commit is contained in:
parent
9e78d30a4c
commit
901a9e1f6d
|
@ -2,7 +2,6 @@
|
||||||
import { watch, computed, ref, nextTick } from 'vue';
|
import { watch, computed, ref, nextTick } from 'vue';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
import { date } from 'quasar';
|
import { date } from 'quasar';
|
||||||
import { nextTick } from 'vue';
|
|
||||||
|
|
||||||
const model = defineModel({ type: String });
|
const model = defineModel({ type: String });
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
|
|
|
@ -42,26 +42,27 @@ const columns = computed(() => [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
name: 'department',
|
name: 'departmentFk',
|
||||||
label: t('tableColumns.department'),
|
label: t('tableColumns.department'),
|
||||||
cardVisible: true,
|
cardVisible: true,
|
||||||
|
columnFilter: {
|
||||||
component: 'select',
|
component: 'select',
|
||||||
|
inWhere: true,
|
||||||
|
alias: 'wd',
|
||||||
attrs: {
|
attrs: {
|
||||||
url: 'Departments',
|
url: 'Departments',
|
||||||
fields: ['id', 'name'],
|
|
||||||
},
|
},
|
||||||
columnField: {
|
|
||||||
component: null,
|
|
||||||
},
|
},
|
||||||
|
format: (row, dashIfEmpty) => dashIfEmpty(row.department),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
name: 'email',
|
name: 'email',
|
||||||
label: t('tableColumns.email'),
|
label: t('tableColumns.email'),
|
||||||
component: 'input',
|
|
||||||
cardVisible: true,
|
cardVisible: true,
|
||||||
columnField: {
|
columnFilter: {
|
||||||
component: null,
|
alias: 'mu',
|
||||||
|
inWhere: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue