| | |
| | | * @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: |
| | | * |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | let alarmTiming = null |
| | | |
| | | import vueSeamlessScroll from 'vue-seamless-scroll' |
| | | |
| | | import { getAnswerPolices, getAlarmList } from "@/api/home/index.js" |
| | |
| | | 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 |
| | | |