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"),