diff --git a/src/views/Text/textrecognition.vue b/src/views/Text/textrecognition.vue index 56c2c82..394625b 100644 --- a/src/views/Text/textrecognition.vue +++ b/src/views/Text/textrecognition.vue @@ -248,7 +248,6 @@ export default { } }, created() { - setInterval(this.updateDateTime, 1000); } } diff --git a/src/views/Video/SurveillanceVideo.vue b/src/views/Video/SurveillanceVideo.vue index 54c4b17..865591d 100644 --- a/src/views/Video/SurveillanceVideo.vue +++ b/src/views/Video/SurveillanceVideo.vue @@ -544,7 +544,7 @@ export default { } }, created() { - setInterval(this.updateDateTime, 1000); + }, } diff --git a/src/views/Violation/Violation.vue b/src/views/Violation/Violation.vue index d902dd2..d2b4235 100644 --- a/src/views/Violation/Violation.vue +++ b/src/views/Violation/Violation.vue @@ -378,7 +378,7 @@ export default { } }, created() { - setInterval(this.updateDateTime, 1000); + } } diff --git a/src/views/Violation/pieVioResultCount.vue b/src/views/Violation/pieVioResultCount.vue index b5022b8..f7c82fb 100644 --- a/src/views/Violation/pieVioResultCount.vue +++ b/src/views/Violation/pieVioResultCount.vue @@ -38,9 +38,7 @@ export default { }, created() { - this.interval_VioPie = setInterval(() => { - this.pieVioResultCount(); - }, 60 * 60 * 1000); // 5分钟 = 5 * 60 * 1000 毫秒 + }, methods: { @@ -147,4 +145,4 @@ export default { .pieTextVioResultCount { flex: 1 } - \ No newline at end of file + diff --git a/src/views/largeScreen/onlineCount.vue b/src/views/largeScreen/onlineCount.vue index 28924a1..c670edb 100644 --- a/src/views/largeScreen/onlineCount.vue +++ b/src/views/largeScreen/onlineCount.vue @@ -27,7 +27,6 @@ export default { }; }, created() { - this.largeScreenOnlineRefresh = setInterval(this.getOnlineNumLC, 60 * 1000); // 1分钟 = 60 * 1000 毫秒 }, beforeDestroy() { clearInterval(this.largeScreenOnlineRefresh); diff --git a/src/views/updateFace/updateFace.vue b/src/views/updateFace/updateFace.vue index 0877f8f..256a365 100644 --- a/src/views/updateFace/updateFace.vue +++ b/src/views/updateFace/updateFace.vue @@ -201,7 +201,7 @@ export default { } }, created() { - setInterval(this.updateDateTime, 1000); + }, } diff --git a/src/views/updateIDCard/listIDResultShow.vue b/src/views/updateIDCard/listIDResultShow.vue index f7a87c1..4471679 100644 --- a/src/views/updateIDCard/listIDResultShow.vue +++ b/src/views/updateIDCard/listIDResultShow.vue @@ -53,9 +53,6 @@ export default { this.getListSearchData(); }, created() { - this.interval_IDPie = setInterval(() => { - this.getListSearchData(); - }, 1 * 60 * 1000); // 1分钟 = 1 * 60 * 1000 毫秒 }, methods: { showId(item) { diff --git a/src/views/updateIDCard/listSevericeResWatch.vue b/src/views/updateIDCard/listSevericeResWatch.vue index c6d9f02..753aa7e 100644 --- a/src/views/updateIDCard/listSevericeResWatch.vue +++ b/src/views/updateIDCard/listSevericeResWatch.vue @@ -40,9 +40,7 @@ export default { }, created() { - this.interval_IDPie = setInterval(() => { - this.getListWatchData(); - }, 1 * 60 * 1000); // 5分钟 = 5 * 60 * 1000 毫秒 + }, computed: { @@ -50,7 +48,7 @@ export default { methods: { updateScrollHeightWatch() { const rowHeight = 2 ; - const tableHeight = this.ServerResult.length * rowHeight; + const tableHeight = this.ServerResult.length * rowHeight; if(this.ServerResult.length<=7){ this.num = 0 }else{ @@ -192,4 +190,4 @@ tbody tr { display: flex; } - \ No newline at end of file + diff --git a/src/views/updateIDCard/pieIDResultCount.vue b/src/views/updateIDCard/pieIDResultCount.vue index 57a7788..0fa52c2 100644 --- a/src/views/updateIDCard/pieIDResultCount.vue +++ b/src/views/updateIDCard/pieIDResultCount.vue @@ -39,9 +39,7 @@ export default { }, created() { - this.interval_IDPie = setInterval(() => { - this.pieIDResultCount(); - }, 1 * 60 * 1000); // 5分钟 = 5 * 60 * 1000 毫秒 + }, methods: { diff --git a/src/views/updateIDCard/rectangleIDInvokeCount.vue b/src/views/updateIDCard/rectangleIDInvokeCount.vue index 67e889d..d94683a 100644 --- a/src/views/updateIDCard/rectangleIDInvokeCount.vue +++ b/src/views/updateIDCard/rectangleIDInvokeCount.vue @@ -20,10 +20,7 @@ export default { }, created() { - // 创建定时器 - this.interval_IDRect = setInterval(() => { - this.getRectIDData(); - }, 1 * 60 * 1000); // 5分钟 = 5 * 60 * 1000 毫秒 + }, beforeDestroy() { //在组件销毁前清除定时器 @@ -130,7 +127,7 @@ export default { }) }, - + } } @@ -141,4 +138,4 @@ export default { width: 98%; margin-left: 1%; } - \ No newline at end of file +