refs #6772 feat: refresh shelving.basic-data
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
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 { t } = useI18n();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const shelvingId = route.params?.id || null;
|
const shelvingId = ref(route.params?.id || null);
|
||||||
const isNew = Boolean(!shelvingId);
|
const isNew = Boolean(!shelvingId.value);
|
||||||
const defaultInitialData = {
|
const defaultInitialData = {
|
||||||
parkingFk: null,
|
parkingFk: null,
|
||||||
priority: null,
|
priority: null,
|
||||||
|
@ -75,7 +75,7 @@ const onSave = (shelving, newShelving) => {
|
||||||
auto-load
|
auto-load
|
||||||
/>
|
/>
|
||||||
<FormModel
|
<FormModel
|
||||||
:url="isNew ? null : `Shelvings/${shelvingId}`"
|
:url="isNew ? null : `Shelvings/${route.params?.id}`"
|
||||||
:url-create="isNew ? 'Shelvings' : null"
|
:url-create="isNew ? 'Shelvings' : null"
|
||||||
:observe-form-changes="!isNew"
|
:observe-form-changes="!isNew"
|
||||||
:filter="shelvingFilter"
|
:filter="shelvingFilter"
|
||||||
|
|
Loading…
Reference in New Issue