fixing display request edit registry
This commit is contained in:
parent
c7bbe78fc7
commit
b0a5fa5e01
1 changed files with 12 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
<script setup lang="ts">
|
||||
import { ref } from "vue";
|
||||
import { onMounted, ref } from "vue";
|
||||
|
||||
import { useRouter } from "vue-router";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
|
||||
import { useRegistryNewDataStore } from "@/modules/04_registryPerson/store";
|
||||
|
||||
|
|
@ -9,7 +9,16 @@ import TabInformation from "@/modules/04_registryPerson/components/requestEdit/0
|
|||
import TabIDP from "@/modules/04_registryPerson/components/requestEdit/02_TabIDP.vue";
|
||||
|
||||
const router = useRouter();
|
||||
const route = useRoute();
|
||||
const store = useRegistryNewDataStore();
|
||||
|
||||
const isIDP = ref<boolean>();
|
||||
|
||||
onMounted(() => {
|
||||
const check =
|
||||
route.name?.toString() == "registryNewRequestEditEMP" ? false : true;
|
||||
store.tabs = !check ? "Main" : store.tabs;
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
@ -33,6 +42,7 @@ const store = useRegistryNewDataStore();
|
|||
<q-card-section style="padding: 0px">
|
||||
<q-separator />
|
||||
<q-tabs
|
||||
v-if="isIDP"
|
||||
v-model="store.tabs"
|
||||
inline-label
|
||||
align="left"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue