|
|
@@ -26,6 +26,7 @@
|
|
|
class="col-6"
|
|
|
outlined
|
|
|
label="Unidade"
|
|
|
+ :initial-id="editUnitId"
|
|
|
/>
|
|
|
|
|
|
<UserTypeSelect
|
|
|
@@ -170,6 +171,7 @@ const showPasswordConfirm = ref(false);
|
|
|
|
|
|
const editUserTypeValue = ref(null);
|
|
|
const editStateId = ref(null);
|
|
|
+const editUnitId = ref(null);
|
|
|
|
|
|
const isEdit = computed(() => !!route.params.id);
|
|
|
|
|
|
@@ -200,6 +202,7 @@ onMounted(async () => {
|
|
|
form.value.cpf = user.cpf;
|
|
|
editUserTypeValue.value = user.user_type;
|
|
|
editStateId.value = user.state_id ?? null;
|
|
|
+ editUnitId.value = user.unit_id ?? null;
|
|
|
if (user.avatar_url) {
|
|
|
avatarRef.value?.setImageUrl(user.avatar_url);
|
|
|
}
|