|
|
@@ -1,6 +1,32 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
- <DefaultHeaderPage title="Contratos" show-filter-icon />
|
|
|
+ <DefaultHeaderPage
|
|
|
+ title="Contratos"
|
|
|
+ show-filter-icon
|
|
|
+ @show-filter="handleShowFilter"
|
|
|
+ />
|
|
|
+
|
|
|
+ <div class="row">
|
|
|
+ <q-select
|
|
|
+ v-if="showFilter"
|
|
|
+ v-model="statusSelected"
|
|
|
+ label="Selecione o Status"
|
|
|
+ :options="statusOptions"
|
|
|
+ option-value="value"
|
|
|
+ option-label="label"
|
|
|
+ class="col-3"
|
|
|
+ bg-color="white"
|
|
|
+ hide-dropdown-icon
|
|
|
+ emit-value
|
|
|
+ map-options
|
|
|
+ color="secondary"
|
|
|
+ outlined
|
|
|
+ >
|
|
|
+ <template #append>
|
|
|
+ <q-icon name="mdi-chevron-down" color="secondary" />
|
|
|
+ </template>
|
|
|
+ </q-select>
|
|
|
+ </div>
|
|
|
|
|
|
<DefaultTable
|
|
|
:columns
|
|
|
@@ -20,6 +46,10 @@ import { ref } from "vue";
|
|
|
|
|
|
const rows = ref([]);
|
|
|
|
|
|
+const showFilter = ref(false);
|
|
|
+
|
|
|
+const statusSelected = ref(null);
|
|
|
+
|
|
|
const columns = ref([
|
|
|
{
|
|
|
name: "student_name",
|
|
|
@@ -51,4 +81,18 @@ const columns = ref([
|
|
|
align: "center",
|
|
|
},
|
|
|
]);
|
|
|
+
|
|
|
+const statusOptions = ref([
|
|
|
+ { label: "Selecione", value: null },
|
|
|
+ { label: "Ativo", value: "active" },
|
|
|
+ { label: "Inativo", value: "inactive" },
|
|
|
+ { label: "Congelado", value: "frozen" },
|
|
|
+ { label: "Encerrado", value: "closed" },
|
|
|
+]);
|
|
|
+
|
|
|
+const handleShowFilter = () => {
|
|
|
+ showFilter.value == false
|
|
|
+ ? (showFilter.value = true)
|
|
|
+ : (showFilter.value = false);
|
|
|
+};
|
|
|
</script>
|