From d760aff6c539dfe721c6299ae097f329806078a5 Mon Sep 17 00:00:00 2001 From: Shikong <919411476@qq.com> Date: Fri, 19 May 2023 12:14:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E8=BD=A6=E5=8A=A8=E7=94=BB=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E8=B0=83=E8=8A=82=E9=80=9F=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/record/AMapLocation.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/matrix-middle-service-web/src/views/record/AMapLocation.vue b/frontend/matrix-middle-service-web/src/views/record/AMapLocation.vue index 9fc6342..cc3a3dc 100644 --- a/frontend/matrix-middle-service-web/src/views/record/AMapLocation.vue +++ b/frontend/matrix-middle-service-web/src/views/record/AMapLocation.vue @@ -187,7 +187,9 @@ function stop(){ stopAnimation(map,data,view) } function play(item){ - stop() + if(view.animating !== item.value){ + stop() + } console.log(item,view.lines,data.polylines) options.showLines = [item.value] changeShowLines() @@ -461,6 +463,7 @@ function drawMap(autoSelect=false){ function search() { console.log(date.value) + view.animating = -1 let params = { startTime: !date.value.from ? undefined : moment(date.value.from).format("YYYY-MM-DD HH:mm:ss"), endTime: !date.value.to ? undefined : moment(date.value.to).format("YYYY-MM-DD HH:mm:ss"),