feat(VnLogFilter): refs #8449 add changedModelValue filter

This commit is contained in:
Alex Moreno 2025-03-26 07:38:07 +01:00
parent 42646fd570
commit 4a2b147320
4 changed files with 17 additions and 4 deletions

View File

@ -267,6 +267,8 @@ async function applyFilter() {
function exprBuilder(param, value) {
switch (param) {
case 'changedModelValue':
return { [param]: { like: `%${value}%` } };
case 'change':
if (value)
return {

View File

@ -38,10 +38,7 @@ const checkboxOptions = ref([
{ name: 'select', label: 'Accesses', selected: false },
]);
const columns = computed(() => [
{
name: 'search',
label: t('globals.search'),
},
{ name: 'changedModelValue' },
{ name: 'changedModel' },
{ name: 'userType' },
{ name: 'userFk' },
@ -105,6 +102,18 @@ function getActions() {
:exprBuilder
search-url="logs"
>
<template #filter-changedModelValue="{ params, columnName, searchFn }">
<VnInput
:label="t('globals.search')"
v-model="params[columnName]"
@keyup.enter="searchFn"
@blur="searchFn"
@remove="searchFn"
:info="t('tooltips.search')"
dense
filled
/>
</template>
<template #filter-changedModel="{ params, columnName, searchFn }">
<VnSelect
:label="t('globals.entity')"

View File

@ -371,6 +371,7 @@ globals:
companyFk: Company
nickname: Alias
changedModel: Entity
changedModelValue: Search
userFk: User
action: Action
model: Model

View File

@ -372,6 +372,7 @@ globals:
companyFk: Empresa
nickname: Alias
changedModel: Entidad
changedModelValue: Buscar
userFk: Usuario
action: Acción
errors: