forked from verdnatura/salix-front
refs #6772 feat: refresh shelving.basic-data
This commit is contained in:
parent
2e86cdfe52
commit
1fecb6b954
|
@ -11,8 +11,8 @@ import VnSubToolbar from 'src/components/ui/VnSubToolbar.vue';
|
|||
const { t } = useI18n();
|
||||
const route = useRoute();
|
||||
const router = useRouter();
|
||||
const shelvingId = route.params?.id || null;
|
||||
const isNew = Boolean(!shelvingId);
|
||||
const shelvingId = ref(route.params?.id || null);
|
||||
const isNew = Boolean(!shelvingId.value);
|
||||
const defaultInitialData = {
|
||||
parkingFk: null,
|
||||
priority: null,
|
||||
|
@ -75,7 +75,7 @@ const onSave = (shelving, newShelving) => {
|
|||
auto-load
|
||||
/>
|
||||
<FormModel
|
||||
:url="isNew ? null : `Shelvings/${shelvingId}`"
|
||||
:url="isNew ? null : `Shelvings/${route.params?.id}`"
|
||||
:url-create="isNew ? 'Shelvings' : null"
|
||||
:observe-form-changes="!isNew"
|
||||
:filter="shelvingFilter"
|
||||
|
|
Loading…
Reference in New Issue