From 80bd8f8281a338cb171b3037c39c491a251d834f Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Wed, 21 Dec 2022 14:08:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=B0=E5=8C=BA=E9=80=89=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AppDataStatistics/AppDataStatistics.vue | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) 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 = "数据统计"