feat: #8192 remove expr-builder proposal

This commit is contained in:
Javier Segarra 2024-11-14 13:27:38 +01:00
parent faf307bc16
commit aa5eb005fd
1 changed files with 0 additions and 19 deletions

View File

@ -133,25 +133,6 @@ const onThermographCreated = async (data) => {
warehouseId: data.warehouseFk,
};
};
const exprBuilder = (param, value) => {
switch (param) {
case 'search':
return /^\d+$/.test(value)
? { id: value }
: {
or: [
{ name: { like: `%${value}%` } },
{ nickname: { like: `%${value}%` } },
],
};
case 'name':
case 'nickname':
return { [param]: { like: `%${value}%` } };
case 'roleFk':
return { [param]: value };
}
};
</script>
<template>
<FetchData