|
|
@@ -23,6 +23,7 @@
|
|
|
import { getUnits, deleteUnit } from "src/api/unit";
|
|
|
import DefaultTable from "src/components/defaults/DefaultTable.vue";
|
|
|
import DefaultHeaderPage from "src/components/layout/DefaultHeaderPage.vue";
|
|
|
+import { formatDateYMDtoDMY } from "src/helpers/utils";
|
|
|
import { ref } from "vue";
|
|
|
|
|
|
const columns = ref([
|
|
|
@@ -44,9 +45,7 @@ const columns = ref([
|
|
|
name: "location",
|
|
|
label: "Cidade / Estado",
|
|
|
field: (row) =>
|
|
|
- row.city && row.state
|
|
|
- ? `${row.city.name} / ${row.state.code}`
|
|
|
- : "—",
|
|
|
+ row.city && row.state ? `${row.city.name} / ${row.state.code}` : "—",
|
|
|
align: "left",
|
|
|
},
|
|
|
{
|
|
|
@@ -65,6 +64,7 @@ const columns = ref([
|
|
|
name: "created_at",
|
|
|
label: "Cadastrado em",
|
|
|
field: "created_at",
|
|
|
+ format: (val) => formatDateYMDtoDMY(val),
|
|
|
align: "left",
|
|
|
sortable: true,
|
|
|
},
|