diff --git a/src/views/Stats.vue b/src/views/Stats.vue index 5120810078..e411a562bf 100644 --- a/src/views/Stats.vue +++ b/src/views/Stats.vue @@ -23,6 +23,7 @@ + @@ -37,6 +38,17 @@ + + + + +

+ Total + {{ locationTotal }} +

+
+
+
@@ -51,6 +63,7 @@ export default { priceWithoutProduct: null, productTotal: null, productWithPriceTotal: null, + locationTotal: null, loading: false, } }, @@ -64,6 +77,7 @@ export default { this.getPricesWithProduct() this.getProducts() this.getProductsWithPrice() + this.getLocations() }, methods: { getPrices() { @@ -98,6 +112,14 @@ export default { this.loading = false }) }, + getLocations() { + this.loading = true + return api.getLocations({ size: 1 }) + .then((data) => { + this.locationTotal = data.total + this.loading = false + }) + } } }