guanqb
2022-11-10 487a8565680ed0f99fd872252901aa4dfc3ba641
警情周月切换完善
1 files modified
11 ■■■■ changed files
src/views/home/components/bottomContainer.vue 11 ●●●● patch | view | raw | blame | history
src/views/home/components/bottomContainer.vue
@@ -96,11 +96,15 @@
    },
    mounted () {
        this.timeTabClick()
        if (this.timetype == 0) {
            this.policeSituationHistoryArr = this.chooseWeekTimeDate(this.policeSituationHistorySaveArr)
        } else {
            this.policeSituationHistoryArr = this.chooseMouthTimeDate(this.policeSituationHistorySaveArr)
        }
    },
    methods: {
        timeTabClick (type = 0) {
        timeTabClick (type) {
            this.timetype = type
            this.$emit('changePoliceSituationTimeType', type)
            this.$emit('policeSituationChange')
@@ -121,6 +125,7 @@
            if (name == '全部') {
                this.policeSituationRealtimeArr = realtimeArr
                this.policeSituationHistoryArr = historyArr
                this.timeTabClick(this.timetype)
            } else {
                let realtimeNewArr = []
                let historyNewArr = []
@@ -137,7 +142,7 @@
                })
                this.policeSituationHistorySaveArr = historyNewArr
                this.policeSituationHistoryArr = historyNewArr
                this.timeTabClick()
                this.timeTabClick(this.timetype)
            }
        },