diff --git a/src/project/saas/AppDataStatistics/AppDataStatistics.vue b/src/project/saas/AppDataStatistics/AppDataStatistics.vue index 16dbb9eb..16ecf6e2 100644 --- a/src/project/saas/AppDataStatistics/AppDataStatistics.vue +++ b/src/project/saas/AppDataStatistics/AppDataStatistics.vue @@ -2,7 +2,7 @@
- +
@@ -13,7 +13,7 @@
{{ item.text }}
- +
@@ -22,6 +22,7 @@ import resident from './components/resident.vue' import update from './components/update' import wechat from './components/wechat' import message from './components/message' +import { mapState } from 'vuex' export default { name: "AppDataStatistics", @@ -51,11 +52,25 @@ export default { areaName: '', } }, + computed: { + ...mapState(['user']) + }, components: {resident, update, wechat, message}, methods: { tabClick(index) { this.tabIndex = index }, + areaSelect(e) { + this.areaId = e + this.refreshList() + }, + refreshList() { + // this.$nextTick(() => this.$refs.list.getData()) + } + }, + onLoad() { + this.areaId = this.user.areaId + this.areaName = this.user.areaName }, onShow() { document.title = "数据统计"