diff --git a/safesite/static/safesite/mystatic/js/util2.js b/safesite/static/safesite/mystatic/js/util2.js
index aaab891d..886c4956 100644
--- a/safesite/static/safesite/mystatic/js/util2.js
+++ b/safesite/static/safesite/mystatic/js/util2.js
@@ -2,12 +2,12 @@
function update() {
if ($('#mapshowinput').length) {
source.clear()
- $.get('../api/mapshow?a=risk', function (res) {
+ $.get('/api/mapshow?a=risk', function (res) {
for (let i = 0, len = res.length; i < len; i++) {
setPolygon(res[i])
}
})
- $.get('../api/mapshow?a=trouble', function (res) {
+ $.get('/api/mapshow?a=trouble', function (res) {
for (let i = 0, len = res.length; i < len; i++) {
var data = res[i]
data.id = data.yhqy__id
@@ -18,7 +18,7 @@ function update() {
setPoint(data)
}
})
- $.get('../api/mapshow?a=miss', function (res) {
+ $.get('/api/mapshow?a=miss', function (res) {
for (let i = 0, len = res.length; i < len; i++) {
var data = res[i]
data.id = data.missqy__id
@@ -29,7 +29,7 @@ function update() {
setPoint(data)
}
})
- $.get('../api/mapshow?a=operation', function (res) {
+ $.get('/api/mapshow?a=operation', function (res) {
console.log(res)
for (let i = 0, len = res.length; i < len; i++) {
var data = res[i]
@@ -44,4 +44,4 @@ function update() {
})
}
}
-var t1 = window.setInterval(update, 1000 * 60)
\ No newline at end of file
+var t1 = window.setInterval(update, 1000 * 60 * 5)
\ No newline at end of file
diff --git a/safesite/templates/datashow2.html b/safesite/templates/datashow2.html
new file mode 100644
index 00000000..4da6bbdc
--- /dev/null
+++ b/safesite/templates/datashow2.html
@@ -0,0 +1,395 @@
+
+
+
+