guanqb
2023-01-04 04939a35daf2ce84a524a6afba01984ac97090c1
Merge branch 'master' of http://192.168.0.105:10010/r/srs-police-affairs
2 files modified
32 ■■■■■ changed files
src/api/home/index.js 19 ●●●●● patch | view | raw | blame | history
src/views/home/components/bottomContainer.vue 13 ●●●●● patch | view | raw | blame | history
src/api/home/index.js
@@ -1,3 +1,13 @@
/*
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2022-12-27 14:19:19
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2023-01-03 16:02:57
 * @FilePath: \srs-police-affairs\src\api\home\index.js
 * @Description:
 *
 * Copyright (c) 2023 by shuishen 1109946754@qq.com, All Rights Reserved.
 */
import request from "@/router/axios.js"
@@ -16,4 +26,13 @@
            sameday: 1,
        }
    })
}
export const getCallPolices = () => {
    return request({
        url: `/api/doorplate/doorplate/setOutAlarmList`,
        method: 'get',
        params: {}
    })
}
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)