7355-fixesAccountMigration #643

Merged
carlossa merged 5 commits from 7355-fixesAccountMigration into dev 2024-08-27 08:46:11 +00:00
1 changed files with 2 additions and 10 deletions
Showing only changes of commit 8568d36ee5 - Show all commits

View File

@ -9,7 +9,6 @@ import VnSelect from 'src/components/common/VnSelect.vue';
const { t } = useI18n(); const { t } = useI18n();
const route = useRoute(); const route = useRoute();
const loading = ref(false);
const rolesOptions = ref([]); const rolesOptions = ref([]);
const formModelRef = ref(); const formModelRef = ref();
@ -17,18 +16,11 @@ watch(
() => route.params.id, () => route.params.id,
() => formModelRef.value.reset() () => formModelRef.value.reset()
); );
console.log('formModelRef', formModelRef.value);
</script> </script>
<template> <template>
<FetchData url="VnRoles" auto-load @on-fetch="(data) => (rolesOptions = data)" /> <FetchData url="VnRoles" auto-load @on-fetch="(data) => (rolesOptions = data)" />
<FormModel ref="formModelRef" model="AccountPrivileges" url="VnUsers" auto-load>
<QSpinner v-if="loading" color="primary" size="md" />
<FormModel
ref="formModelRef"
model="AccountPrivileges"
url="VnUsers/preview"
auto-load
@on-data-saved="formModelRef.fetch()"
>
<template #form="{ data }"> <template #form="{ data }">
{{ data }} {{ data }}
<div class="q-gutter-y-sm"> <div class="q-gutter-y-sm">