From 268d47c26730d46e134e32e302abdc7b97df78ef Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 18 May 2021 22:01:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0tab=E9=A1=B5,=E4=B8=8D?= =?UTF-8?q?=E8=BF=87=E6=9C=89=E5=BE=88=E5=A4=9A=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- safesite/static/safesite/mystatic/js/util.js | 12 +-- safesite/templates/area.html | 6 +- safesite/templates/behavior.html | 8 +- safesite/templates/datashow.html | 6 +- safesite/templates/datashow2.html | 2 +- safesite/templates/gridtaskset.html | 12 +-- safesite/templates/index.html | 86 +++++++++++++------- safesite/templates/inspectitem.html | 32 ++++---- safesite/templates/mapshow copy.html | 2 +- safesite/templates/mapshow.html | 10 +-- safesite/templates/operproce.html | 18 ++-- safesite/templates/resbility.html | 18 ++-- safesite/templates/trainfigure.html | 20 ++--- 13 files changed, 131 insertions(+), 101 deletions(-) diff --git a/safesite/static/safesite/mystatic/js/util.js b/safesite/static/safesite/mystatic/js/util.js index df52c61e..3fd55fbc 100644 --- a/safesite/static/safesite/mystatic/js/util.js +++ b/safesite/static/safesite/mystatic/js/util.js @@ -578,15 +578,15 @@ function jsonSort(jsonObj) { return str.substr(0, str.length - 1) } //map定时显示,每分钟请求一次,如果存在map -function update() { +function mapupdate() { 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 @@ -597,7 +597,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 @@ -608,7 +608,7 @@ function update() { setPoint(data) } }) - $.get('api/mapshow?a=operation', function (res) { + $.get('/api/mapshow?a=operation', function (res) { for (let i = 0, len = res.length; i < len; i++) { var data = res[i] data.id = data.zyqy__id @@ -632,7 +632,7 @@ $.get('api/check_session',function(res){ } }) } -var t1 = window.setInterval(update, 1000 * 60) +var t1 = window.setInterval(mapupdate, 1000 * 60) var t2 = window.setInterval(checksession,1000*60*41) //扩展easyui表单的验证 diff --git a/safesite/templates/area.html b/safesite/templates/area.html index a53bfa81..812291e2 100644 --- a/safesite/templates/area.html +++ b/safesite/templates/area.html @@ -38,14 +38,14 @@ -
+
- + @@ -59,7 +59,7 @@
- +