Merge branch 'dev' into 8604-FixTicketFuture
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Jon Elias 2025-02-14 11:43:52 +00:00
commit 3a8d15030f
2 changed files with 6 additions and 7 deletions

View File

@ -534,6 +534,9 @@ function formatColumnValue(col, row, dashIfEmpty) {
}
}
const checkbox = ref(null);
function cardClick(_, row) {
if ($props.redirect) router.push({ path: `/${$props.redirect}/${row.id}` });
}
</script>
<template>
<QDrawer
@ -769,18 +772,13 @@ const checkbox = ref(null);
</template>
<template #item="{ row, colsMap }">
<component
:is="$props.redirect ? 'router-link' : 'span'"
:to="`/${$props.redirect}/` + row.id"
v-bind:is="'div'"
@click="(event) => cardClick(event, row)"
>
<QCard
bordered
flat
class="row no-wrap justify-between cursor-pointer q-pa-sm"
@click="
(_, row) => {
$props.rowClick && $props.rowClick(row);
}
"
style="height: 100%"
>
<QCardSection

View File

@ -61,6 +61,7 @@ function exprBuilder(param, value) {
case 'nickname':
return { [`t.nickname`]: { like: `%${value}%` } };
case 'zoneFk':
return { 't.zoneFk': value };
case 'department':
return { 'd.name': value };
case 'totalWithVat':