fix: update route parameter from 'id' to 'itemFk' in TicketLack components
gitea/salix-front/pipeline/pr-master This commit looks good
Details
gitea/salix-front/pipeline/pr-master This commit looks good
Details
This commit is contained in:
parent
d012c79356
commit
9d166691fa
|
@ -33,7 +33,7 @@ onUnmounted(() => {
|
||||||
stateStore.rightDrawer = true;
|
stateStore.rightDrawer = true;
|
||||||
});
|
});
|
||||||
|
|
||||||
const entityId = computed(() => route.params.id);
|
const entityId = computed(() => route.params.itemFk);
|
||||||
const item = ref({});
|
const item = ref({});
|
||||||
|
|
||||||
const itemProposalSelected = ref(null);
|
const itemProposalSelected = ref(null);
|
||||||
|
|
|
@ -7,7 +7,6 @@ import { onBeforeMount } from 'vue';
|
||||||
import { dashIfEmpty, toDate, toHour } from 'src/filters';
|
import { dashIfEmpty, toDate, toHour } from 'src/filters';
|
||||||
import { useRouter } from 'vue-router';
|
import { useRouter } from 'vue-router';
|
||||||
import { useState } from 'src/composables/useState';
|
import { useState } from 'src/composables/useState';
|
||||||
import { useRole } from 'src/composables/useRole';
|
|
||||||
import ItemDescriptorProxy from 'src/pages/Item/Card/ItemDescriptorProxy.vue';
|
import ItemDescriptorProxy from 'src/pages/Item/Card/ItemDescriptorProxy.vue';
|
||||||
import RightMenu from 'src/components/common/RightMenu.vue';
|
import RightMenu from 'src/components/common/RightMenu.vue';
|
||||||
import TicketLackFilter from './TicketLackFilter.vue';
|
import TicketLackFilter from './TicketLackFilter.vue';
|
||||||
|
@ -25,10 +24,11 @@ const negativeParams = reactive({
|
||||||
availabled: Date.getCurrentDateTimeFormatted(),
|
availabled: Date.getCurrentDateTimeFormatted(),
|
||||||
});
|
});
|
||||||
const redirectToCreateView = ({ itemFk }) => {
|
const redirectToCreateView = ({ itemFk }) => {
|
||||||
router.push({
|
const route = {
|
||||||
name: 'NegativeDetail',
|
name: 'NegativeDetail',
|
||||||
params: { id: itemFk },
|
params: { itemFk },
|
||||||
});
|
};
|
||||||
|
router.push(route);
|
||||||
};
|
};
|
||||||
const columns = computed(() => [
|
const columns = computed(() => [
|
||||||
{
|
{
|
||||||
|
|
|
@ -38,7 +38,7 @@ const filterLack = ref({
|
||||||
const selectedRows = ref([]);
|
const selectedRows = ref([]);
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const { notify } = useNotify();
|
const { notify } = useNotify();
|
||||||
const entityId = computed(() => route.params.id);
|
const entityId = computed(() => route.params.itemFk);
|
||||||
const item = ref({});
|
const item = ref({});
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const columns = computed(() => [
|
const columns = computed(() => [
|
||||||
|
|
|
@ -251,7 +251,7 @@ export default {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'NegativeDetail',
|
name: 'NegativeDetail',
|
||||||
path: ':id',
|
path: ':itemFk',
|
||||||
meta: {
|
meta: {
|
||||||
title: 'summary',
|
title: 'summary',
|
||||||
icon: 'launch',
|
icon: 'launch',
|
||||||
|
|
Loading…
Reference in New Issue