From de5bee9f351594a1c110b153885f5641e4e6b4cd Mon Sep 17 00:00:00 2001
From: zengh <123456>
Date: Fri, 11 Feb 2022 09:14:32 +0800
Subject: [PATCH] 路线导航
---
src/views/activitys/policeTracking.vue | 3 ++-
public/map/widgets/task/task.js | 3 +--
public/map/index.html | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/public/map/index.html b/public/map/index.html
index d0f5bcd..fa4f9a8 100644
--- a/public/map/index.html
+++ b/public/map/index.html
@@ -43,10 +43,10 @@
if(ISinit == null){
init(openId,null);
}
- function locations() {
+ function locations(res) {
require(["dojo/topic"],
function (topic) {
- topic.publish("location", "2323");
+ topic.publish("location", res);
}
);
}
diff --git a/public/map/widgets/task/task.js b/public/map/widgets/task/task.js
index 18aec66..4050cdb 100644
--- a/public/map/widgets/task/task.js
+++ b/public/map/widgets/task/task.js
@@ -189,8 +189,7 @@
return (document.location.search.match(new RegExp("(?:^\\?|&)" + key + "=(.*?)(?=&|$)")) || ['', null])[1];
},
location: function (ces) {
- debugger
- alert("@3232")
+ alert(ces)
},
open: function () {
var that = this;
diff --git a/src/views/activitys/policeTracking.vue b/src/views/activitys/policeTracking.vue
index 530f712..46246ee 100644
--- a/src/views/activitys/policeTracking.vue
+++ b/src/views/activitys/policeTracking.vue
@@ -396,7 +396,8 @@
methods: {
rowclick(row, column, event){
var iframe = window.document.getElementById("mapDiv");
- iframe.contentWindow.locations();
+ // console.log(row);
+ iframe.contentWindow.locations(row.id);
},
onSubmit() {
var that = this;
--
Gitblit v1.9.3