|
|
|
|
@ -3,7 +3,9 @@
|
|
|
|
|
<va-card class="content-container">
|
|
|
|
|
<map-component />
|
|
|
|
|
</va-card>
|
|
|
|
|
<va-card class="content-container"></va-card>
|
|
|
|
|
<va-card class="content-container">
|
|
|
|
|
<va-data-table :items="items" />
|
|
|
|
|
</va-card>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
@ -12,7 +14,25 @@
|
|
|
|
|
import MapComponent from "./MapComponent.vue";
|
|
|
|
|
export default {
|
|
|
|
|
name: "overview-screen",
|
|
|
|
|
components: { MapComponent }
|
|
|
|
|
components: { MapComponent },
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
items: []
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
fetchItems() {
|
|
|
|
|
const baseURL = "http://localhost:8080/api/v1"
|
|
|
|
|
|
|
|
|
|
fetch(`${baseURL}/items/`)
|
|
|
|
|
.then(res => res.json())
|
|
|
|
|
.then(data => this.items = data)
|
|
|
|
|
.catch((e) => console.log(e))
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.fetchItems()
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|