feat(VnLogFilter): refs #8449 add changedModelValue filter
This commit is contained in:
parent
42646fd570
commit
4a2b147320
|
@ -267,6 +267,8 @@ async function applyFilter() {
|
|||
|
||||
function exprBuilder(param, value) {
|
||||
switch (param) {
|
||||
case 'changedModelValue':
|
||||
return { [param]: { like: `%${value}%` } };
|
||||
case 'change':
|
||||
if (value)
|
||||
return {
|
||||
|
|
|
@ -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')"
|
||||
|
|
|
@ -371,6 +371,7 @@ globals:
|
|||
companyFk: Company
|
||||
nickname: Alias
|
||||
changedModel: Entity
|
||||
changedModelValue: Search
|
||||
userFk: User
|
||||
action: Action
|
||||
model: Model
|
||||
|
|
|
@ -372,6 +372,7 @@ globals:
|
|||
companyFk: Empresa
|
||||
nickname: Alias
|
||||
changedModel: Entidad
|
||||
changedModelValue: Buscar
|
||||
userFk: Usuario
|
||||
action: Acción
|
||||
errors:
|
||||
|
|
Loading…
Reference in New Issue