0
0
Fork 0

fix: refs #8083 update rightly

This commit is contained in:
Jorge Penadés 2024-10-23 15:17:06 +02:00
parent 81a55a9e7a
commit 9673f7be1e
1 changed files with 7 additions and 7 deletions

View File

@ -231,14 +231,14 @@ onUnmounted(() => (stateStore.rightDrawer = false));
:select-props="{ :select-props="{
options: expeditionStateTypes, options: expeditionStateTypes,
optionLabel: 'description', optionLabel: 'description',
optionValue: 'code',
}" }"
:promise=" :promise="
async (stateTypeFk) => { async (stateCode) => {
await vnTableRef.CrudModelRef.saveChanges({ await axios.post('ExpeditionStates/addExpeditionState', {
updates: selectedRows.map(({ id }) => ({ expeditions: selectedRows.map(({ id }) => {
data: { stateTypeFk }, return { expeditionFk: id, stateCode };
where: { id }, }),
})),
}); });
vnTableRef.tableRef.clearSelection(); vnTableRef.tableRef.clearSelection();
} }
@ -309,7 +309,7 @@ onUnmounted(() => (stateStore.rightDrawer = false));
'row-key': 'id', 'row-key': 'id',
selection: 'multiple', selection: 'multiple',
}" }"
save-url="Expeditions/crud" save-url="ExpeditionStates/crud"
auto-load auto-load
:expr-builder=" :expr-builder="
(param, value) => { (param, value) => {