zhongrj
2024-03-18 5abdc9cf17df0fe383dac3525fd1d07823cadeed
驾驶舱切换不刷新问题解决
1 files modified
25 ■■■■■ changed files
pages/statistics/index.vue 25 ●●●●● patch | view | raw | blame | history
pages/statistics/index.vue
@@ -256,17 +256,22 @@
                sexData: []
            }
        },
        onLoad() {
            this.getHouseHoldData();
            this.getHouseData();
            this.getHouseLabelData();
            this.getReportData();
            this.getGridData();
        },
        onTabItemTap(e) {
            // tab 点击时执行,此处直接接收单击事件
            console.log(e)
            this.refreshData();
        },
        // onLoad() {
        // },
        methods: {
            refreshData(){
                this.getHouseHoldData();
                this.getHouseData();
                this.getHouseLabelData();
                this.getReportData();
                this.getGridData();
            },
            getRoleType() {
                let roleName = uni.getStorageSync("activeRole").roleName;
                if (roleName == "网格员") {