shuishen
2023-02-07 e0acf79e36d45b04386658f8d76706f986a186f5
实时警情刷新
1 files modified
12 ■■■■■ changed files
src/views/home/components/bottomContainer.vue 12 ●●●●● patch | view | raw | blame | history
src/views/home/components/bottomContainer.vue
@@ -2,7 +2,7 @@
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2023-01-13 15:52:59
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2023-02-04 15:23:10
 * @LastEditTime: 2023-02-07 11:27:50
 * @FilePath: \srs-police-affairs\src\views\home\components\bottomContainer.vue
 * @Description: 
 * 
@@ -148,6 +148,8 @@
</template>
<script>
let alarmTiming = null
import vueSeamlessScroll from 'vue-seamless-scroll'
import { getAnswerPolices, getAlarmList } from "@/api/home/index.js"
@@ -560,9 +562,17 @@
                return this.dateFormat(item)
            })
            if (alarmTiming != null) {
                clearInterval(alarmTiming)
                alarmTiming = null
            }
            if (type == 0) {
                await this.getAnswerPolices()
                alarmTiming = setInterval(() => {
                    this.getAnswerPolices()
                }, 60000)
            } else {
                this.currentPage = 1