linwe
2024-06-27 8da6f33d33dbf768a6dd5de2fa33fd6fb28cd195
代码优化
5 files modified
51 ■■■■■ changed files
pages.json 9 ●●●●● patch | view | raw | blame | history
pages/home/index.vue 14 ●●●● patch | view | raw | blame | history
pages/statistics/index.vue 8 ●●●●● patch | view | raw | blame | history
subPackage/task/index.vue 2 ●●● patch | view | raw | blame | history
subPackage/workbench/views/cshw.vue 18 ●●●● patch | view | raw | blame | history
pages.json
@@ -80,8 +80,9 @@
        {
            "path": "pages/home/selectSiteTwo",
            "style": {
                "navigationBarTitleText": "",
                "enablePullDownRefresh": false
                "navigationBarTitleText": "区域选择",
                "navigationBarBackgroundColor": "#fff",
                "navigationBarTextStyle": "black"
            }
        }
    ],
@@ -1003,7 +1004,7 @@
            ]
        },
        //居住证
        //居住证
        {
            "root": "subPackage/reside",
            "pages": [{
@@ -1410,4 +1411,4 @@
            }
        ]
    }
}
}
pages/home/index.vue
@@ -1382,7 +1382,15 @@
                    } else if (path == '/subPackage/workbench/views/cscj') {
                        this.$u.func.globalNavigator(path, "navTo")
                    } else {
                        this.$u.func.globalNavigator(`${path}&houseCode=${this.curHouseCode}`, "navTo")
                        if (this.curHouseCode) {
                            if (path.includes('?')) {
                                this.$u.func.globalNavigator(`${path}&houseCode=${this.curHouseCode}`, "navTo")
                            } else {
                                this.$u.func.globalNavigator(`${path}?houseCode=${this.curHouseCode}`, "navTo")
                            }
                        } else {
                            this.$u.func.globalNavigator(`${path}`, "navTo")
                        }
                    }
                } else {
                    uni.showToast({
@@ -1511,7 +1519,7 @@
                })
            },
            //场所任务跳转
            //场所任务跳转
            navToSiteList() {
                let {
                    houseCode
@@ -1648,4 +1656,4 @@
<style lang="scss">
    @import "./index.scss";
</style>
</style>
pages/statistics/index.vue
@@ -392,6 +392,9 @@
                }
            },
            getHouseHoldData() {
                uni.showLoading({
                    title: '加载中'
                })
                statisticsModal.getHouseholdStatistics({
                    code: this.chilrenList.join(","),
                    roleType: this.getRoleType()
@@ -401,10 +404,14 @@
                    this.sexData = data.gender;
                    this.setPersonData(data.age)
                    this.setSexData(data.gender)
                    uni.hideLoading()
                })
            },
            getHouseLabelData() {
                uni.showLoading({
                    title: '加载中'
                })
                statisticsModal.getHouseLabelStatistic({
                    code: this.chilrenList.join(","),
                    roleType: this.getRoleType()
@@ -412,6 +419,7 @@
                    let data = res.data;
                    this.houseLabelData = data;
                    this.setHouseLabelData(data)
                    uni.hideLoading()
                })
            },
            // 设置房屋标签
subPackage/task/index.vue
@@ -232,7 +232,7 @@
                            } else if (i.name.trim() == "居住证申请") {
                                i.count = data.jzzsq;
                            } else if (i.name.trim() == "从业人员审核") {
                                i.count = data.cssh;
                                i.count = data.cyrysh;
                            } else if (i.name.trim() == "无诈申请") {
                                i.count = data.wztj;
                            } else if (i.name.trim() == "校园安全隐患排查") {
subPackage/workbench/views/cshw.vue
@@ -164,22 +164,22 @@
                // 过滤掉待完善状态的
                const isApp = 1;
                let res = ""
                if (this.type == 2) {
                    res = await getSiteMaintenanceData({
                        ...params,
                        roleName,
                        isApp,
                        ...this.pagingParams
                    })
                } else {
                if (this.type == 1) {
                    res = await getPlacePractitionerPage({
                        ...params,
                        roleName,
                        isApp,
                        ...this.pagingParams
                    })
                } else {
                    res = await getSiteMaintenanceData({
                        ...params,
                        roleName,
                        isApp,
                        ...this.pagingParams
                    })
                }
                console.log(res);
                // console.log(res);
                const {
                    code,
                    data: {