0
0
Fork 0

Update worker dms remove

This commit is contained in:
William Buezas 2024-04-10 08:59:05 -03:00
parent 9ae79a5631
commit e676933942
2 changed files with 2 additions and 2 deletions

View File

@ -244,7 +244,7 @@ function deleteDms(dmsFk) {
}, },
}) })
.onOk(async () => { .onOk(async () => {
await axios.post($props.deleteModel ?? `${$props.model}/${dmsFk}/removeFile`); await axios.post(`${$props.deleteModel ?? $props.model}/${dmsFk}/removeFile`);
const index = rows.value.findIndex((row) => row.id == dmsFk); const index = rows.value.findIndex((row) => row.id == dmsFk);
rows.value.splice(index, 1); rows.value.splice(index, 1);
}); });

View File

@ -7,7 +7,7 @@ const route = useRoute();
<VnDmsList <VnDmsList
:model="`WorkerDms/${route.params.id}/filter`" :model="`WorkerDms/${route.params.id}/filter`"
update-model="Workers" update-model="Workers"
:delete-model="`WorkerDms/${route.params.id}/removeFile`" delete-model="WorkerDms"
download-model="WorkerDms" download-model="WorkerDms"
default-dms-code="hhrrData" default-dms-code="hhrrData"
filter="worker" filter="worker"