|
|
@@ -189,6 +189,42 @@
|
|
|
outlined
|
|
|
/>
|
|
|
|
|
|
+ <div class="col-12 q-mt-md">
|
|
|
+ <div class="text-subtitle2 text-grey-7 q-mb-sm">
|
|
|
+ Configurações de Dashboard (Metas de Alunos)
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <DefaultInput
|
|
|
+ v-model="form.active_students_min"
|
|
|
+ type="number"
|
|
|
+ :error="!!validationErrors.active_students_min"
|
|
|
+ :error-message="validationErrors.active_students_min"
|
|
|
+ class="col-4"
|
|
|
+ label="Mínimo de Alunos (🔴 Abaixo deste valor)"
|
|
|
+ outlined
|
|
|
+ />
|
|
|
+
|
|
|
+ <DefaultInput
|
|
|
+ v-model="form.active_students_medium"
|
|
|
+ type="number"
|
|
|
+ :error="!!validationErrors.active_students_medium"
|
|
|
+ :error-message="validationErrors.active_students_medium"
|
|
|
+ class="col-4"
|
|
|
+ label="Meta Média (🟡 Entre mín e médio)"
|
|
|
+ outlined
|
|
|
+ />
|
|
|
+
|
|
|
+ <DefaultInput
|
|
|
+ v-model="form.active_students_max"
|
|
|
+ type="number"
|
|
|
+ :error="!!validationErrors.active_students_max"
|
|
|
+ :error-message="validationErrors.active_students_max"
|
|
|
+ class="col-4"
|
|
|
+ label="Meta Máxima (🟢 Acima da média)"
|
|
|
+ outlined
|
|
|
+ />
|
|
|
+
|
|
|
<div class="col-12 q-mt-sm">
|
|
|
<div class="text-subtitle2 text-grey-7 q-mb-sm">
|
|
|
Alterar Senha
|
|
|
@@ -322,6 +358,9 @@ const {
|
|
|
state_id: null,
|
|
|
state_registration: null,
|
|
|
street: null,
|
|
|
+ active_students_min: null,
|
|
|
+ active_students_medium: null,
|
|
|
+ active_students_max: null,
|
|
|
});
|
|
|
|
|
|
const hasChanges = computed(
|
|
|
@@ -418,6 +457,10 @@ onMounted(async () => {
|
|
|
|
|
|
form.street = unit.street;
|
|
|
|
|
|
+ form.active_students_min = unit.active_students_min ?? 30;
|
|
|
+ form.active_students_medium = unit.active_students_medium ?? 50;
|
|
|
+ form.active_students_max = unit.active_students_max ?? 80;
|
|
|
+
|
|
|
cityName.value = unit.city?.name ?? "";
|
|
|
stateName.value = unit.state?.name ?? "";
|
|
|
|