forked from verdnatura/salix-front
Update worker dms remove
This commit is contained in:
parent
9ae79a5631
commit
e676933942
|
@ -244,7 +244,7 @@ function deleteDms(dmsFk) {
|
|||
},
|
||||
})
|
||||
.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);
|
||||
rows.value.splice(index, 1);
|
||||
});
|
||||
|
|
|
@ -7,7 +7,7 @@ const route = useRoute();
|
|||
<VnDmsList
|
||||
:model="`WorkerDms/${route.params.id}/filter`"
|
||||
update-model="Workers"
|
||||
:delete-model="`WorkerDms/${route.params.id}/removeFile`"
|
||||
delete-model="WorkerDms"
|
||||
download-model="WorkerDms"
|
||||
default-dms-code="hhrrData"
|
||||
filter="worker"
|
||||
|
|
Loading…
Reference in New Issue