shuishen
2023-01-03 84017ddc72a03bb3335b02cda78f7200f4d1472e
src/views/home/components/bottomContainer.vue
@@ -92,6 +92,8 @@
import realtimeArr from '@/assets/data/policeSituationArr/realtimeArr.js'
import historyArr from '@/assets/data/policeSituationArr/historyArr.js'
import { getCallPolices } from "@/api/home/index.js"
export default {
    data () {
        return {
@@ -144,6 +146,8 @@
        this.policeSituationRealtimeArr = realtimeArr
        this.policeSituationHistoryArr = historyArr
        this.policeSituationHistorySaveArr = historyArr
        this.getCallPolices()
    },
    mounted () {
@@ -159,6 +163,15 @@
    },
    methods: {
        getCallPolices () {
            getCallPolices().thne(res => {
                setTimeout(() => {
                    console.log(res, 465464)
                }, 5000)
            })
        },
        timeTabClick (type) {
            this.timetype = type
            this.$emit('changePoliceSituationTimeType', type)