Compare commits

...

8 Commits

Author SHA1 Message Date
Jorge Penadés 8b52629b0b refactor: refs #8207 improve logic
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-11-22 15:55:30 +01:00
Jorge Penadés 3a4c0e729a refactor: refs #8207 improve logic
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-11-22 15:52:22 +01:00
Jorge Penadés 9d8698fa2f refactor: refs #8207 improve logic
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-11-22 15:49:07 +01:00
Jorge Penadés 661cc0b5ee refactor: refs #8207 improve logic
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-11-22 15:37:48 +01:00
Jorge Penadés 0eeb22d40a chore: refs #8207 drop useless code
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-11-22 13:56:30 +01:00
Jorge Penadés 7048f96565 refactor: refs #8207 imrove logic
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-11-22 13:55:22 +01:00
Jorge Penadés 50fbf64cf9 fix: refs #8207 update btn wip
gitea/salix-front/pipeline/pr-master This commit looks good Details
2024-11-22 13:33:35 +01:00
Jorge Penadés c72fa52851 fix: refs #8207 auto-refresh 2024-11-22 13:03:23 +01:00
2 changed files with 13 additions and 4 deletions

View File

@ -130,10 +130,19 @@ const addFilter = async (filter, params) => {
await arrayData.addFilter({ filter, params });
};
async function fetch(params) {
async function fetch(params, keepPagination = false) {
useArrayData(props.dataKey, params);
arrayData.reset(['filter.skip', 'skip']);
if (!keepPagination) await arrayData.fetch({ append: false });
else {
const { limit, skip } = store;
store.limit = limit + skip;
store.skip = 0;
await arrayData.fetch({ append: false });
store.limit = limit;
store.skip = skip;
}
if (!store.hasMoreData) isLoading.value = false;
emit('onFetch', store.data);

View File

@ -352,7 +352,7 @@ const openTab = (id) =>
class="q-mr-sm"
dense
flat
@click="$refs.tableRef.reload()"
@click="tableRef.CrudModelRef.vnPaginateRef.fetch(undefined, true)"
>
<QTooltip>{{ $t('globals.refresh') }}</QTooltip>
</QBtn>