0
0
Fork 0

perf: RoleCard, BasicData, summary

This commit is contained in:
Javier Segarra 2024-05-21 08:52:34 +02:00
parent 2cae2168ac
commit dc14116717
4 changed files with 9 additions and 29 deletions

View File

@ -13,18 +13,14 @@ const { t } = useI18n();
<template #form="{ data }"> <template #form="{ data }">
<VnRow class="row q-gutter-md q-mb-md"> <VnRow class="row q-gutter-md q-mb-md">
<div class="col"> <div class="col">
<VnInput <VnInput v-model="data.name" :label="t('role.card.name')" />
v-model="data.client.name"
:label="t('role.basicData.name')"
disable
/>
</div> </div>
</VnRow> </VnRow>
<VnRow class="row q-gutter-md q-mb-md"> <VnRow class="row q-gutter-md q-mb-md">
<div class="col"> <div class="col">
<VnInputDate <VnInput
v-model="data.created" v-model="data.description"
:label="t('role.basicData.description')" :label="t('role.card.description')"
/> />
</div> </div>
</VnRow> </VnRow>

View File

@ -1,14 +1,11 @@
<script setup> <script setup>
import { ref, computed, onMounted } from 'vue'; import { ref, computed } from 'vue';
import { useRoute, useRouter } from 'vue-router'; import { useRoute, useRouter } from 'vue-router';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import { toDate, toPercentage } from 'src/filters';
import { useState } from 'src/composables/useState'; import { useState } from 'src/composables/useState';
import CardDescriptor from 'components/ui/CardDescriptor.vue'; import CardDescriptor from 'components/ui/CardDescriptor.vue';
import VnLv from 'src/components/ui/VnLv.vue'; import VnLv from 'src/components/ui/VnLv.vue';
import useCardDescription from 'src/composables/useCardDescription'; import useCardDescription from 'src/composables/useCardDescription';
import VnUserLink from 'src/components/ui/VnUserLink.vue';
import { getUrl } from 'src/composables/getUrl';
import { useQuasar } from 'quasar'; import { useQuasar } from 'quasar';
import axios from 'axios'; import axios from 'axios';
@ -27,9 +24,7 @@ const quasar = useQuasar();
const router = useRouter(); const router = useRouter();
const { notify } = useNotify(); const { notify } = useNotify();
const state = useState();
const { t } = useI18n(); const { t } = useI18n();
const salixUrl = ref();
const entityId = computed(() => { const entityId = computed(() => {
return $props.id || route.params.id; return $props.id || route.params.id;
}); });

View File

@ -1,24 +1,13 @@
<script setup> <script setup>
import { onMounted, ref, computed } from 'vue'; import { ref, computed } from 'vue';
import { useRoute, useRouter } from 'vue-router'; import { useRoute } from 'vue-router';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import { toDate, toCurrency } from 'src/filters';
import CardSummary from 'components/ui/CardSummary.vue'; import CardSummary from 'components/ui/CardSummary.vue';
import FetchData from 'components/FetchData.vue';
import { getUrl } from 'src/composables/getUrl';
import { useSession } from 'src/composables/useSession';
import VnLv from 'src/components/ui/VnLv.vue'; import VnLv from 'src/components/ui/VnLv.vue';
import VnUserLink from 'src/components/ui/VnUserLink.vue';
import VnTitle from 'src/components/common/VnTitle.vue';
import axios from 'axios';
import dashIfEmpty from 'src/filters/dashIfEmpty';
import { useArrayData } from 'src/composables/useArrayData'; import { useArrayData } from 'src/composables/useArrayData';
const route = useRoute(); const route = useRoute();
const router = useRouter();
const { t } = useI18n(); const { t } = useI18n();
const { getTokenMultimedia } = useSession();
const token = getTokenMultimedia();
const $props = defineProps({ const $props = defineProps({
id: { id: {

View File

@ -9,7 +9,7 @@ export default {
moduleName: 'Role', moduleName: 'Role',
}, },
component: RouterView, component: RouterView,
redirect: { name: 'RoleCard' }, redirect: { name: 'AccountRoles' },
menus: { menus: {
main: [], main: [],
card: ['RoleBasicData', 'SubRoles', 'InheritedRoles', 'RoleLog'], card: ['RoleBasicData', 'SubRoles', 'InheritedRoles', 'RoleLog'],
@ -62,7 +62,7 @@ export default {
import('src/pages/Account/Role/Card/InheritedRoles.vue'), import('src/pages/Account/Role/Card/InheritedRoles.vue'),
}, },
{ {
name: 'RoleBasicData', name: 'RoleLog',
path: 'log', path: 'log',
meta: { meta: {
title: 'log', title: 'log',