forked from verdnatura/salix-front
refs #7355 fix privileges
This commit is contained in:
parent
c84786e053
commit
8568d36ee5
|
@ -9,7 +9,6 @@ import VnSelect from 'src/components/common/VnSelect.vue';
|
|||
|
||||
const { t } = useI18n();
|
||||
const route = useRoute();
|
||||
const loading = ref(false);
|
||||
|
||||
const rolesOptions = ref([]);
|
||||
const formModelRef = ref();
|
||||
|
@ -17,18 +16,11 @@ watch(
|
|||
() => route.params.id,
|
||||
() => formModelRef.value.reset()
|
||||
);
|
||||
console.log('formModelRef', formModelRef.value);
|
||||
</script>
|
||||
<template>
|
||||
<FetchData url="VnRoles" auto-load @on-fetch="(data) => (rolesOptions = data)" />
|
||||
|
||||
<QSpinner v-if="loading" color="primary" size="md" />
|
||||
<FormModel
|
||||
ref="formModelRef"
|
||||
model="AccountPrivileges"
|
||||
url="VnUsers/preview"
|
||||
auto-load
|
||||
@on-data-saved="formModelRef.fetch()"
|
||||
>
|
||||
<FormModel ref="formModelRef" model="AccountPrivileges" url="VnUsers" auto-load>
|
||||
<template #form="{ data }">
|
||||
{{ data }}
|
||||
<div class="q-gutter-y-sm">
|
||||
|
|
Loading…
Reference in New Issue