diff --git a/safesite/static/safesite/easyui/themes/icon.css b/safesite/static/safesite/easyui/themes/icon.css index 9be80535..8ed26feb 100644 --- a/safesite/static/safesite/easyui/themes/icon.css +++ b/safesite/static/safesite/easyui/themes/icon.css @@ -206,6 +206,18 @@ .icon-offence { background: url('icons/offence.png') no-repeat center center; } +.icon-safelist { + background: url('icons/safelist.png') no-repeat center center; +} +.icon-dutylist { + background: url('icons/dutyist.png') no-repeat center center; +} +.icon-worklist { + background: url('icons/worklist.png') no-repeat center center; +} +.icon-feedbacklist { + background: url('icons/feedbacklist.png') no-repeat center center; +} diff --git a/safesite/static/safesite/easyui/themes/icons/dutyist.png b/safesite/static/safesite/easyui/themes/icons/dutyist.png new file mode 100644 index 00000000..22798203 Binary files /dev/null and b/safesite/static/safesite/easyui/themes/icons/dutyist.png differ diff --git a/safesite/static/safesite/easyui/themes/icons/feedbacklist.png b/safesite/static/safesite/easyui/themes/icons/feedbacklist.png new file mode 100644 index 00000000..be3fcb85 Binary files /dev/null and b/safesite/static/safesite/easyui/themes/icons/feedbacklist.png differ diff --git a/safesite/static/safesite/easyui/themes/icons/safelist.png b/safesite/static/safesite/easyui/themes/icons/safelist.png new file mode 100644 index 00000000..d63d92a0 Binary files /dev/null and b/safesite/static/safesite/easyui/themes/icons/safelist.png differ diff --git a/safesite/static/safesite/easyui/themes/icons/worklist.png b/safesite/static/safesite/easyui/themes/icons/worklist.png new file mode 100644 index 00000000..bb27e69a Binary files /dev/null and b/safesite/static/safesite/easyui/themes/icons/worklist.png differ diff --git a/safesite/static/safesite/mystatic/js/util.js b/safesite/static/safesite/mystatic/js/util.js index df52c61e..2508d228 100644 --- a/safesite/static/safesite/mystatic/js/util.js +++ b/safesite/static/safesite/mystatic/js/util.js @@ -321,13 +321,28 @@ function isIntNum(val) { // } // } function changehref(o) { - _clickTab = $(o).attr('url');// 找到链接a中的targer的值 + _title = $(o).attr('title'); _value = $(o).attr('value'); $("#main").attr('value', _value); - $("#main").panel({ href: _clickTab, title: $(o).attr('title') }); + + if ($('#tt').tabs('tabs').length > 10) { + alert('标签页过多,请先关闭') + return + } + if ($('#tt').tabs('exists', _title)) { + $('#tt').tabs('select', _title); + //var tab2 = $('#tt').tabs('getSelected'); + //tab2.panel('refresh'); + } else { + $('#tt').tabs('add', { + title: _title, + href: _clickTab, + closable: true, + }); + } // $.ajax({ // type: "get", // url: _clickTab, @@ -578,15 +593,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 +612,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 +623,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 +647,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 @@
-