|
|
@@ -232,7 +232,7 @@
|
|
|
<div class="stats-section">
|
|
|
<div class="stats-panel" role="region" aria-label="统计面板">
|
|
|
<div v-if="statsLoaded" class="stats-cards">
|
|
|
- <q-card class="stat-card">
|
|
|
+ <q-card class="stat-card" @click="reFreshStatistics">
|
|
|
<q-card-section>
|
|
|
<div class="card-title">总体统计</div>
|
|
|
<div class="big-num">{{ stats.total_locations }}</div>
|
|
|
@@ -1253,6 +1253,12 @@ export default {
|
|
|
this.statsLoaded = true;
|
|
|
});
|
|
|
},
|
|
|
+ reFreshStatistics() {
|
|
|
+ const layer = this.shelf.layer_now || 1;
|
|
|
+ const url = `location_statistics/refresh-statistics/?layer=${layer}`;
|
|
|
+ postauth(url)
|
|
|
+
|
|
|
+ },
|
|
|
|
|
|
_applyStats(item) {
|
|
|
this.stats = item || {};
|