fix: minor bug related with vnTable selectAll
gitea/salix-front/pipeline/head This commit looks good Details

This commit is contained in:
Javier Segarra 2025-05-08 10:28:03 +02:00
parent fca1c77791
commit cbb36d0ec7
2 changed files with 6 additions and 4 deletions

View File

@ -684,8 +684,10 @@ const handleHeaderSelection = (evt, data) => {
ref="CrudModelRef" ref="CrudModelRef"
@on-fetch=" @on-fetch="
(...args) => { (...args) => {
if ($props.multiCheck.expand) {
selectAll = false; selectAll = false;
selected = []; selected = [];
}
emit('onFetch', ...args); emit('onFetch', ...args);
} }
" "

View File

@ -30,7 +30,7 @@ const onClick = async () => {
params: { filter: JSON.stringify(filter) }, params: { filter: JSON.stringify(filter) },
}; };
try { try {
const { data } = axios.get(props.url, params); const { data } = await axios.get(props.url, params);
rows.value = data; rows.value = data;
} catch (error) { } catch (error) {
const response = error.response; const response = error.response;
@ -83,7 +83,7 @@ defineEmits(['update:selected', 'select:all']);
/> />
<span <span
v-else v-else
v-text="t('records', { rows: rows.length ?? 0 })" v-text="t('records', { rows: rows?.length ?? 0 })"
/> />
</QItemLabel> </QItemLabel>
</QItemSection> </QItemSection>