Merge branch 'master' of http://192.168.0.105:10010/r/jfptweb-publicSecurity
| | |
| | | |
| | | |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/equipment/equipment/detail?id=' + code, |
| | | url: 'http://s16s652780.51mypc.cn/api/equipment/equipment/detail?id=' + code, |
| | | type: 'GET', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | $("#client_bc").off("click").click(function () { |
| | | |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/equipment/equipment/updateClinent?', |
| | | url: 'http://s16s652780.51mypc.cn/api/equipment/equipment/updateClinent?', |
| | | data: { |
| | | "id": code, |
| | | |
| | |
| | | |
| | | // 查看设备的详细信息 |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/equipment/equipment/detail?id=' + code, |
| | | url: 'http://s16s652780.51mypc.cn/api/equipment/equipment/detail?id=' + code, |
| | | type: 'GET', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | console.log(code, 1212121); |
| | | |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/jingdan/jingdan/selectdInfo?deviceNumber=' + code, |
| | | url: 'http://s16s652780.51mypc.cn/api/jingdan/jingdan/selectdInfo?deviceNumber=' + code, |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | |
| | | // 查看警情的详细信息 |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/suser/suser/detail?id=' + code, |
| | | url: 'http://s16s652780.51mypc.cn/api/suser/suser/detail?id=' + code, |
| | | type: 'GET', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | var viewVideoLayer = null; |
| | | // 查看保安人员的详细信息 |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/security/security/selectInfo?snumber=' + code, |
| | | url: 'http://s16s652780.51mypc.cn/api/security/security/selectInfo?snumber=' + code, |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | |
| | | // 查看警情的详细信息 |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/jingdan/jingdan/selectdInfo?deviceNumber=&id=' + code, |
| | | url: 'http://s16s652780.51mypc.cn/api/jingdan/jingdan/selectdInfo?deviceNumber=&id=' + code, |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | console.log(code, 1212121); |
| | | |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/jingdan/jingdan/selectdInfo?deviceNumber=' + code, |
| | | url: 'http://s16s652780.51mypc.cn/api/jingdan/jingdan/selectdInfo?deviceNumber=' + code, |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | |
| | | // 查看警情的详细信息 |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/alarm/alarm/selectInfo?id=' + code, |
| | | url: 'http://s16s652780.51mypc.cn/api/alarm/alarm/selectInfo?id=' + code, |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | return |
| | | } |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/jingdan/jingdan/saves', |
| | | url: 'http://s16s652780.51mypc.cn/api/jingdan/jingdan/saves', |
| | | type: 'POST', |
| | | data: { |
| | | rName: result.rname, |
| | |
| | | layer.confirm('确定撤销该警情?', { icon: 3, title: '提示' }, function (index) { |
| | | |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/alarm/alarm/deletejj', |
| | | url: 'http://s16s652780.51mypc.cn/api/alarm/alarm/deletejj', |
| | | type: 'POST', |
| | | data: { |
| | | id: id |
| | |
| | | function updateJType(id, czTime, bz, jjTime) { |
| | | |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/alarm/alarm/updateJtype', |
| | | url: 'http://s16s652780.51mypc.cn/api/alarm/alarm/updateJtype', |
| | | type: 'POST', |
| | | data: { |
| | | id: id, |
| | |
| | | |
| | | // 查看保安人员下拉 |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/security/security/selectry', |
| | | url: 'http://s16s652780.51mypc.cn/api/security/security/selectry', |
| | | type: 'GET', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | |
| | | // 查看保安人员下拉 |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/security/security/selectry', |
| | | url: 'http://s16s652780.51mypc.cn/api/security/security/selectry', |
| | | type: 'GET', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | $('.police-container-distribute-details .content table tbody').empty(); |
| | | var str = ''; |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/jingdan/jingdan/selectdInfo?deviceNumber=&id=' + id, |
| | | url: 'http://s16s652780.51mypc.cn/api/jingdan/jingdan/selectdInfo?deviceNumber=&id=' + id, |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | var str = ''; |
| | | $('.police-container-distribute-details .security-guard-nearby .security-staff-content tbody').empty(); |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/position/position/selectry', |
| | | url: 'http://s16s652780.51mypc.cn/api/position/position/selectry', |
| | | type: 'POST', |
| | | data: { |
| | | coordinate: "point(" + $(this).attr('lgtd') + "," + $(this).attr('lttd') + ")" |
| | |
| | | } |
| | | // 发送请求修改警单数据 |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/jingdan/jingdan/updateInfo', |
| | | url: 'http://s16s652780.51mypc.cn/api/jingdan/jingdan/updateInfo', |
| | | type: 'POST', |
| | | data: { |
| | | id: id, |
| | |
| | | |
| | | var str = ''; |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/jingdan/jingdan/selectdInfo?deviceNumber=&id=' + id, |
| | | url: 'http://s16s652780.51mypc.cn/api/jingdan/jingdan/selectdInfo?deviceNumber=&id=' + id, |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | if ($(this).index() == 1) { |
| | | $('.police-dispatching .police-container .police-container-patrol .main-content .select-list ul').empty(); |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/regions/regions/selectqy', |
| | | url: 'http://s16s652780.51mypc.cn/api/regions/regions/selectqy', |
| | | type: 'GET', |
| | | dataType: 'JSON', |
| | | success: function (res) { |
| | |
| | | that.layuiLayer.msg('人员未更改!'); |
| | | } else { |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/duty/duty/updatedtInfo', |
| | | url: 'http://s16s652780.51mypc.cn/api/duty/duty/updatedtInfo', |
| | | type: 'POST', |
| | | data: { |
| | | rid: routeId, |
| | |
| | | if (that.tabIndex == 1) { |
| | | if (that.patrolIndex == 1) { |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/routeIn/routein/insertlx', |
| | | url: 'http://s16s652780.51mypc.cn/api/routeIn/routein/insertlx', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | that.polygonData = []; |
| | | that.getRouteInformation($('.police-dispatching .police-container .police-container-patrol .table .tbody tbody'), ''); |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/duty/duty/insertduty', |
| | | url: 'http://s16s652780.51mypc.cn/api/duty/duty/insertduty', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | // that.pepleRealId = pepleRealId; |
| | | } else { |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/regions/regions/insterqy', |
| | | url: 'http://s16s652780.51mypc.cn/api/regions/regions/insterqy', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | } |
| | | } else if (that.tabIndex == 2) { |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/enclosure/enclosure/insertes', |
| | | url: 'http://s16s652780.51mypc.cn/api/enclosure/enclosure/insertes', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | $('.police-dispatching .police-container .distribute-district .select-list ul').empty(); |
| | | $('.police-dispatching .police-container .distribute-district .select-list ul').append("<li key='addvcd' addvcd=''>全部</li>"); |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/district/district/selectList', |
| | | url: 'http://s16s652780.51mypc.cn/api/district/district/selectList', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | dom.empty(); |
| | | var that = this; |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/jingdan/jingdan/selectList', |
| | | url: 'http://s16s652780.51mypc.cn/api/jingdan/jingdan/selectList', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | that.currentDrawing = []; |
| | | that.entityPolygonAll.clear(); |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/regions/regions/selectList', |
| | | url: 'http://s16s652780.51mypc.cn/api/regions/regions/selectList', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | that.currentDrawing = []; |
| | | that.entityPolygonAll.clear(); |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/routeIn/routein/selectList', |
| | | url: 'http://s16s652780.51mypc.cn/api/routeIn/routein/selectList', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | that.entityPolygonAll.clear(); |
| | | |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/alarm/alarm/queryBa', |
| | | url: 'http://s16s652780.51mypc.cn/api/alarm/alarm/queryBa', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | } |
| | | }) |
| | | // $.ajax({ |
| | | // url: 'https://web.byisf.com/api/security/security/selectList', |
| | | // url: 'http://s16s652780.51mypc.cn/api/security/security/selectList', |
| | | // type: 'POST', |
| | | // dataType: 'JSON', |
| | | // success: function (data) { |
| | |
| | | dataStr = dataStr.substring(0, dataStr.length - 1); |
| | | |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/routeIn/routein/updatelx', |
| | | url: 'http://s16s652780.51mypc.cn/api/routeIn/routein/updatelx', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | dataStr = dataStr.substring(0, dataStr.length - 1); |
| | | |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/regions/regions/updateqy', |
| | | url: 'http://s16s652780.51mypc.cn/api/regions/regions/updateqy', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | dataStr = dataStr.substring(0, dataStr.length - 1); |
| | | |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/enclosure/enclosure/updatee', |
| | | url: 'http://s16s652780.51mypc.cn/api/enclosure/enclosure/updatee', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | that.createTwinkleEntitys(that.addEntitys, lgtd, lttd, './images/real-time-callPolice-opcity.png'); |
| | | // console.log(deptId,153454) |
| | | $.ajax({ |
| | | url: "https://web.byisf.com/api/blade-user/pages?current=1&size=9999&work_status=&deptId=" + deptId, |
| | | url: "http://s16s652780.51mypc.cn/api/blade-user/pages?current=1&size=9999&work_status=&deptId=" + deptId, |
| | | type: 'get', |
| | | dataType: 'JSON', |
| | | success: function (res) { |
| | |
| | | |
| | | addPoint: function (entitys, lgtd, lttd, img) { |
| | | var symbol = new esri.symbol.PictureMarkerSymbol(img, 22, 32); |
| | | symbol.xoffset = 0; |
| | | symbol.xoffset = 0; |
| | | symbol.yoffset = -2; |
| | | var pt = new Point(lgtd, lttd, new SpatialReference({ |
| | | wkid: 4326 |
| | |
| | | createEntitys: function (entitys, lgtd, lttd, image) { |
| | | |
| | | var symbol = new esri.symbol.PictureMarkerSymbol(image, 44, 44); |
| | | |
| | | |
| | | var width = 44; |
| | | var height = 44; |
| | | var pt = new Point(lgtd, lttd, new SpatialReference({ |
| | |
| | | dom.children('.select-list').children('ul').append($("<li areaid='all'>全部</li>")); |
| | | var that = this; |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-system/region/select?code=3601', |
| | | url: 'http://s16s652780.51mypc.cn/api/blade-system/region/select?code=3601', |
| | | type: 'GET', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | dom.empty(); |
| | | var that = this; |
| | | $.ajax({ |
| | | url: "https://web.byisf.com/api/alarm/alarm/page?current=1&size=99999&waringType=&beginTime=" + beginTime + "&endTime=" +endTime +"&province=36&city=3601&district=" + addvcd, |
| | | url: "http://s16s652780.51mypc.cn/api/alarm/alarm/page?current=1&size=99999&waringType=&beginTime=" + beginTime + "&endTime=" +endTime +"&province=36&city=3601&district=" + addvcd, |
| | | type: 'get', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | dom.children('.select-list').children('ul').empty(); |
| | | dom.children('.select-list').children('ul').append($("<li ownerid='all'>全部</li>")); |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/lx/lx/seleclx', |
| | | url: 'http://s16s652780.51mypc.cn/api/lx/lx/seleclx', |
| | | type: 'GET', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | dom.children('.select-list').children('ul').empty(); |
| | | dom.children('.select-list').children('ul').append($("<li>全部</li>")); |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/dj/dj/selectName?tnumbers=' + tnumbers, |
| | | url: 'http://s16s652780.51mypc.cn/api/dj/dj/selectName?tnumbers=' + tnumbers, |
| | | type: 'GET', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | dom.empty(); |
| | | var that = this; |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/suser/suser/selectList?type=' + type + '&dj=' + dj, |
| | | url: 'http://s16s652780.51mypc.cn/api/suser/suser/selectList?type=' + type + '&dj=' + dj, |
| | | type: 'GET', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | dom.empty(); |
| | | var that = this; |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/equipment/equipment/selectList?deviceType=' + deviceType, |
| | | url: 'http://s16s652780.51mypc.cn/api/equipment/equipment/selectList?deviceType=' + deviceType, |
| | | type: 'GET', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | $('.police-container-distribute-details .content table tbody').empty(); |
| | | var str = ''; |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/jingdan/jingdan/selectdInfo?deviceNumber=&id=' + id, |
| | | url: 'http://s16s652780.51mypc.cn/api/jingdan/jingdan/selectdInfo?deviceNumber=&id=' + id, |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | var str = ''; |
| | | $('.police-container-distribute-details .security-guard-nearby .security-staff-content tbody').empty(); |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/position/position/selectry', |
| | | url: 'http://s16s652780.51mypc.cn/api/position/position/selectry', |
| | | type: 'POST', |
| | | data: { |
| | | coordinate: "point(" + $(this).attr('lgtd') + "," + $(this).attr('lttd') + ")" |
| | |
| | | } |
| | | // 发送请求修改警单数据 |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/jingdan/jingdan/updateInfo', |
| | | url: 'http://s16s652780.51mypc.cn/api/jingdan/jingdan/updateInfo', |
| | | type: 'POST', |
| | | data: { |
| | | id: id, |
| | |
| | | |
| | | var str = ''; |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/jingdan/jingdan/selectdInfo?deviceNumber=&id=' + id, |
| | | url: 'http://s16s652780.51mypc.cn/api/jingdan/jingdan/selectdInfo?deviceNumber=&id=' + id, |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | if ($(this).index() == 1) { |
| | | $('.police-dispatching .police-container .police-container-patrol .main-content .select-list ul').empty(); |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/regions/regions/selectqy', |
| | | url: 'http://s16s652780.51mypc.cn/api/regions/regions/selectqy', |
| | | type: 'GET', |
| | | dataType: 'JSON', |
| | | success: function (res) { |
| | |
| | | that.layuiLayer.msg('人员未更改!'); |
| | | } else { |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/duty/duty/updatedtInfo', |
| | | url: 'http://s16s652780.51mypc.cn/api/duty/duty/updatedtInfo', |
| | | type: 'POST', |
| | | data: { |
| | | rid: routeId, |
| | |
| | | if (that.tabIndex == 1) { |
| | | if (that.patrolIndex == 1) { |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/routeIn/routein/insertlx', |
| | | url: 'http://s16s652780.51mypc.cn/api/routeIn/routein/insertlx', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | that.polygonData = []; |
| | | that.getRouteInformation($('.police-dispatching .police-container .police-container-patrol .table .tbody tbody'), ''); |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/duty/duty/insertduty', |
| | | url: 'http://s16s652780.51mypc.cn/api/duty/duty/insertduty', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | // that.pepleRealId = pepleRealId; |
| | | } else { |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/regions/regions/insterqy', |
| | | url: 'http://s16s652780.51mypc.cn/api/regions/regions/insterqy', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | } |
| | | } else if (that.tabIndex == 2) { |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/enclosure/enclosure/insertes', |
| | | url: 'http://s16s652780.51mypc.cn/api/enclosure/enclosure/insertes', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | $('.police-dispatching .police-container .distribute-district .select-list ul').empty(); |
| | | $('.police-dispatching .police-container .distribute-district .select-list ul').append("<li key='addvcd' addvcd=''>全部</li>"); |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/district/district/selectList', |
| | | url: 'http://s16s652780.51mypc.cn/api/district/district/selectList', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | dom.empty(); |
| | | var that = this; |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/jingdan/jingdan/selectList', |
| | | url: 'http://s16s652780.51mypc.cn/api/jingdan/jingdan/selectList', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | that.currentDrawing = []; |
| | | that.entityPolygonAll.clear(); |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/regions/regions/selectList', |
| | | url: 'http://s16s652780.51mypc.cn/api/regions/regions/selectList', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | that.currentDrawing = []; |
| | | that.entityPolygonAll.clear(); |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/routeIn/routein/selectList', |
| | | url: 'http://s16s652780.51mypc.cn/api/routeIn/routein/selectList', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | that.currentDrawing = []; |
| | | that.entityPolygonAll.clear(); |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/security/security/selectList', |
| | | url: 'http://s16s652780.51mypc.cn/api/security/security/selectList', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | dataStr = dataStr.substring(0, dataStr.length - 1); |
| | | |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/routeIn/routein/updatelx', |
| | | url: 'http://s16s652780.51mypc.cn/api/routeIn/routein/updatelx', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | dataStr = dataStr.substring(0, dataStr.length - 1); |
| | | |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/regions/regions/updateqy', |
| | | url: 'http://s16s652780.51mypc.cn/api/regions/regions/updateqy', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | dataStr = dataStr.substring(0, dataStr.length - 1); |
| | | |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/enclosure/enclosure/updatee', |
| | | url: 'http://s16s652780.51mypc.cn/api/enclosure/enclosure/updatee', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | $('.police-container-distribute-details .content table tbody').empty(); |
| | | var str = ''; |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/jingdan/jingdan/selectdInfo?deviceNumber=&id=' + id, |
| | | url: 'http://s16s652780.51mypc.cn/api/jingdan/jingdan/selectdInfo?deviceNumber=&id=' + id, |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | var str = ''; |
| | | $('.police-container-distribute-details .security-guard-nearby .security-staff-content tbody').empty(); |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/position/position/selectry', |
| | | url: 'http://s16s652780.51mypc.cn/api/position/position/selectry', |
| | | type: 'POST', |
| | | data: { |
| | | coordinate: "point(" + $(this).attr('lgtd') + "," + $(this).attr('lttd') + ")" |
| | |
| | | } |
| | | // 发送请求修改警单数据 |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/jingdan/jingdan/updateInfo', |
| | | url: 'http://s16s652780.51mypc.cn/api/jingdan/jingdan/updateInfo', |
| | | type: 'POST', |
| | | data: { |
| | | id: id, |
| | |
| | | |
| | | var str = ''; |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/jingdan/jingdan/selectdInfo?deviceNumber=&id=' + id, |
| | | url: 'http://s16s652780.51mypc.cn/api/jingdan/jingdan/selectdInfo?deviceNumber=&id=' + id, |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | if ($(this).index() == 1) { |
| | | $('.police-dispatching .police-container .police-container-patrol .main-content .select-list ul').empty(); |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/regions/regions/selectqy', |
| | | url: 'http://s16s652780.51mypc.cn/api/regions/regions/selectqy', |
| | | type: 'GET', |
| | | dataType: 'JSON', |
| | | success: function (res) { |
| | |
| | | that.layuiLayer.msg('人员未更改!'); |
| | | } else { |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/duty/duty/updatedtInfo', |
| | | url: 'http://s16s652780.51mypc.cn/api/duty/duty/updatedtInfo', |
| | | type: 'POST', |
| | | data: { |
| | | rid: routeId, |
| | |
| | | if (that.tabIndex == 1) { |
| | | if (that.patrolIndex == 1) { |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/routeIn/routein/insertlx', |
| | | url: 'http://s16s652780.51mypc.cn/api/routeIn/routein/insertlx', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | that.polygonData = []; |
| | | that.getRouteInformation($('.police-dispatching .police-container .police-container-patrol .table .tbody tbody'), ''); |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/duty/duty/insertduty', |
| | | url: 'http://s16s652780.51mypc.cn/api/duty/duty/insertduty', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | // that.pepleRealId = pepleRealId; |
| | | } else { |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/regions/regions/insterqy', |
| | | url: 'http://s16s652780.51mypc.cn/api/regions/regions/insterqy', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | } |
| | | } else if (that.tabIndex == 2) { |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/enclosure/enclosure/insertes', |
| | | url: 'http://s16s652780.51mypc.cn/api/enclosure/enclosure/insertes', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | $('.police-dispatching .police-container .distribute-district .select-list ul').empty(); |
| | | $('.police-dispatching .police-container .distribute-district .select-list ul').append("<li key='addvcd' addvcd=''>全部</li>"); |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/district/district/selectList', |
| | | url: 'http://s16s652780.51mypc.cn/api/district/district/selectList', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | dom.empty(); |
| | | var that = this; |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/jingdan/jingdan/selectList', |
| | | url: 'http://s16s652780.51mypc.cn/api/jingdan/jingdan/selectList', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | that.currentDrawing = []; |
| | | that.entityPolygonAll.clear(); |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/regions/regions/selectList', |
| | | url: 'http://s16s652780.51mypc.cn/api/regions/regions/selectList', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | that.currentDrawing = []; |
| | | that.entityPolygonAll.clear(); |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/routeIn/routein/selectList', |
| | | url: 'http://s16s652780.51mypc.cn/api/routeIn/routein/selectList', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | that.currentDrawing = []; |
| | | that.entityPolygonAll.clear(); |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/security/security/selectList', |
| | | url: 'http://s16s652780.51mypc.cn/api/security/security/selectList', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | dataStr = dataStr.substring(0, dataStr.length - 1); |
| | | |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/routeIn/routein/updatelx', |
| | | url: 'http://s16s652780.51mypc.cn/api/routeIn/routein/updatelx', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | dataStr = dataStr.substring(0, dataStr.length - 1); |
| | | |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/regions/regions/updateqy', |
| | | url: 'http://s16s652780.51mypc.cn/api/regions/regions/updateqy', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | dataStr = dataStr.substring(0, dataStr.length - 1); |
| | | |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/enclosure/enclosure/updatee', |
| | | url: 'http://s16s652780.51mypc.cn/api/enclosure/enclosure/updatee', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | } |
| | | |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/jingdan/jingdan/saves', |
| | | url: 'http://s16s652780.51mypc.cn/api/jingdan/jingdan/saves', |
| | | type: 'POST', |
| | | data: { |
| | | rName: $(_self).data('rname'), |
| | |
| | | |
| | | // 行政区 |
| | | // $.ajax({ |
| | | // url: 'https://web.byisf.com/api/district/district/selectList', |
| | | // url: 'http://s16s652780.51mypc.cn/api/district/district/selectList', |
| | | // type: 'POST', |
| | | // dataType: 'JSON', |
| | | // success: function (data) { |
| | |
| | | |
| | | // // 警情类型下拉 |
| | | // $.ajax({ |
| | | // url: 'https://web.byisf.com/api/alarm/alarm/selectScount', |
| | | // url: 'http://s16s652780.51mypc.cn/api/alarm/alarm/selectScount', |
| | | // type: 'GET', |
| | | // dataType: 'JSON', |
| | | // success: function (data) { |
| | |
| | | that.updateRealTable = table.render({ |
| | | elem: '#real_time_table' |
| | | , height: (layerTabHei - 20) |
| | | , url: 'https://web.byisf.com/api/alarm/alarm/selectList' //数据接口 |
| | | , url: 'http://s16s652780.51mypc.cn/api/alarm/alarm/selectList' //数据接口 |
| | | , method: "post" |
| | | , where: { jtype: '', beginTime: that.realBeginTime, endTime: that.realEndTime } |
| | | , parseData: function (res) { //res 即为原始返回的数据 |
| | |
| | | that.realTimeQuery = setInterval(function () { |
| | | if (that.historyPoliceId != null) { |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/alarm/alarm/selecttx', |
| | | url: 'http://s16s652780.51mypc.cn/api/alarm/alarm/selecttx', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | layer.confirm('确定撤销该警情?', { icon: 3, title: '提示' }, function (index) { |
| | | |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/alarm/alarm/deletejj', |
| | | url: 'http://s16s652780.51mypc.cn/api/alarm/alarm/deletejj', |
| | | type: 'POST', |
| | | data: { |
| | | id: id |
| | |
| | | |
| | | updateJType: function (id, czTime, bz, jjTime) { |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/alarm/alarm/updateJtype', |
| | | url: 'http://s16s652780.51mypc.cn/api/alarm/alarm/updateJtype', |
| | | type: 'POST', |
| | | data: { |
| | | id: id, |
| | |
| | | |
| | | //基础路径 |
| | | //pathUrl: "http://localhost:89", |
| | | pathUrl: "https://web.byisf.com/api/blade-jfpts", |
| | | pathUrl: "http://s16s652780.51mypc.cn/api/blade-jfpts", |
| | | |
| | | // 电子围栏需要新增的Id |
| | | newElectronicFenceId: null, |
| | |
| | | |
| | | |
| | | return Widget; |
| | | }); |
| | | }); |
| | |
| | | |
| | | //基础路径 |
| | | pathUrl: "http://localhost:89", |
| | | //pathUrl: "https://web.byisf.com/api/blade-jfpts", |
| | | //pathUrl: "http://s16s652780.51mypc.cn/api/blade-jfpts", |
| | | |
| | | // 电子围栏需要新增的Id |
| | | newElectronicFenceId: null, |
| | |
| | | |
| | | |
| | | return Widget; |
| | | }); |
| | | }); |
| | |
| | | this.showMap = true; |
| | | this.$nextTick(() => { |
| | | this.$refs.mapDiv.onload = () => { |
| | | window.frames[1].init("equipment", { x: row.jd, y: row.wd }); |
| | | window.frames[0].init("equipment", { x: row.jd, y: row.wd }); |
| | | }; |
| | | }); |
| | | }, |
| | |
| | | this.showMap = true; |
| | | this.$nextTick(() => { |
| | | this.$refs.mapDiv.onload = () => { |
| | | window.frames[1].init("equipment", {x: row.jd, y: row.wd}); |
| | | window.frames[0].init("equipment", {x: row.jd, y: row.wd}); |
| | | }; |
| | | }) |
| | | }, |
| | |
| | | this.startEcharts01(); |
| | | }, |
| | | getMap() { |
| | | window.frames[1].init("DetailMap", { |
| | | window.frames[0].init("DetailMap", { |
| | | x: this.a.jd, |
| | | y: this.a.wd, |
| | | }); |
| | |
| | | // this.doEvents(); |
| | | // var timel = setTimeout(() => { |
| | | this.$refs.detailMap.onload = () => { |
| | | // window.frames[1].init("DetailMap", { |
| | | // window.frames[0].init("DetailMap", { |
| | | // x: this.a.jd, |
| | | // y: this.a.wd, |
| | | // }); |
| | | if (window.frames[1].init) { |
| | | if (window.frames[0].init) { |
| | | this.getMap(); |
| | | } else { |
| | | // this.re(); |
| | | console.log(`没有找到到window.frames[1].init`); |
| | | console.log(`没有找到到window.frames[0].init`); |
| | | } |
| | | }; |
| | | }, |
| | |
| | | |
| | | mounted() { |
| | | this.$refs.DistributionMapDiv.onload = () => { |
| | | window.frames[1].init("AlertSecurity", { |
| | | window.frames[0].init("AlertSecurity", { |
| | | x: this.form.jd, |
| | | y: this.form.wd, |
| | | }); |
| | |
| | | this.showMap = true; |
| | | this.$nextTick(() => { |
| | | this.$refs.mapDiv.onload = () => { |
| | | window.frames[1].init("ClientManagement", {x: row.jd, y: row.wd}); |
| | | window.frames[0].init("ClientManagement", {x: row.jd, y: row.wd}); |
| | | }; |
| | | }); |
| | | }, |
| | |
| | | <template> |
| | | <iframe src="https://web.byisf.com/map/index.html?openid=PatrolManagement" style="width: 100%;height: 100%" frameborder="0"></iframe> |
| | | <iframe src="http://s16s652780.51mypc.cn/map/index.html?openid=PatrolManagement" style="width: 100%;height: 100%" frameborder="0"></iframe> |
| | | </template> |
| | | |
| | | <script> |
| | |
| | | this.getAudios(); |
| | | this.getImgAndVideo(); |
| | | this.$refs.mapDiv.onload = () => { |
| | | window.frames[1].init("AlertSecurity", { |
| | | window.frames[0].init("AlertSecurity", { |
| | | x: this.form.jd, |
| | | y: this.form.wd, |
| | | }); |
| | |
| | | |
| | | var userId = JSON.parse( |
| | | window.localStorage.getItem("群防群控后台管理系统-userInfo") |
| | | ).content.real_name; |
| | | ).content.nick_name; |
| | | |
| | | if (that.form.securityArr != null && that.form.securityArr != "") { |
| | | that.form.jtype = "1"; |
| | |
| | | editDisplay: true, |
| | | viewDisplay: true, |
| | | }, |
| | | { |
| | | label: "巡逻路线", |
| | | prop: "xllx", |
| | | hide: true, |
| | | display: true, |
| | | type: "tree", |
| | | filter: false, |
| | | dicUrl: "/api/routeIn/routein/tree", |
| | | props: { |
| | | label: "title", |
| | | }, |
| | | }, |
| | | // { |
| | | // label: "巡逻路线", |
| | | // prop: "xllx", |
| | | // hide: true, |
| | | // display: true, |
| | | // type: "tree", |
| | | // filter: false, |
| | | // dicUrl: "/api/routeIn/routein/tree", |
| | | // props: { |
| | | // label: "title", |
| | | // }, |
| | | // }, |
| | | ], |
| | | }, |
| | | data: [], |
| | |
| | | }, |
| | | immediate: true, |
| | | }, |
| | | "form.alarmType": { |
| | | handler(val) { |
| | | var xllx = this.findObject(this.option.column, "xllx"); |
| | | if (val === "巡逻任务") { |
| | | xllx.display = true; |
| | | xllx.rules = [ |
| | | { |
| | | required: true, |
| | | message: "请选择巡逻路线", |
| | | trigger: "blur", |
| | | }, |
| | | ]; |
| | | } else { |
| | | xllx.display = false; |
| | | xllx.rules = []; |
| | | } |
| | | }, |
| | | immediate: true, |
| | | }, |
| | | // "form.alarmType": { |
| | | // handler(val) { |
| | | // var xllx = this.findObject(this.option.column, "xllx"); |
| | | // if (val === "巡逻任务") { |
| | | // xllx.display = true; |
| | | // xllx.rules = [ |
| | | // { |
| | | // required: true, |
| | | // message: "请选择巡逻路线", |
| | | // trigger: "blur", |
| | | // }, |
| | | // ]; |
| | | // } else { |
| | | // xllx.display = false; |
| | | // xllx.rules = []; |
| | | // } |
| | | // }, |
| | | // immediate: true, |
| | | // }, |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["permission", "flowRoutes"]), |
| | |
| | | } |
| | | var userId = JSON.parse( |
| | | window.localStorage.getItem("群防群控后台管理系统-userInfo") |
| | | ).content.real_name; |
| | | ).content.nick_name; |
| | | |
| | | if (row.securityArr == "" || row.securityArr == null) { |
| | | row.jtype = "0"; |
| | | row.alarmPeople = ""; |
| | | } else { |
| | | row.jtype = "1"; |
| | | //已派发保安 |
| | | row.alarmPeople = userId; |
| | | if (row.jtype != "2"){ |
| | | if (row.securityArr == "" || row.securityArr == null) { |
| | | row.jtype = "0"; |
| | | row.alarmPeople = ""; |
| | | } else { |
| | | row.jtype = "1"; |
| | | //已派发保安 |
| | | } |
| | | } |
| | | row.alarmPeople = userId; |
| | | |
| | | add(row).then( |
| | | () => { |
| | |
| | | rowUpdate(row, index, done, loading) { |
| | | var userId = JSON.parse( |
| | | window.localStorage.getItem("群防群控后台管理系统-userInfo") |
| | | ).content.real_name; |
| | | |
| | | ).content.nick_name; |
| | | if (typeof row.securityArr != "string") { |
| | | var security = ""; |
| | | row.securityArr.forEach((item) => { |
| | |
| | | }); |
| | | row.securityArr = security.substring(0, security.length - 1); |
| | | } |
| | | |
| | | if (row.securityArr == "" || row.securityArr == null) { |
| | | row.jtype = "0"; |
| | | row.alarmPeople = ""; |
| | | } else { |
| | | row.jtype = "1"; |
| | | //已派发保安 |
| | | row.alarmPeople = userId; |
| | | if (row.jtype != "2") { |
| | | if (row.securityArr == "" || row.securityArr == null) { |
| | | row.jtype = "0"; |
| | | row.alarmPeople = ""; |
| | | } else { |
| | | row.jtype = "1"; |
| | | //已派发保安 |
| | | } |
| | | } |
| | | |
| | | row.alarmPeople = userId; |
| | | row.coordinate = ""; |
| | | update(row).then( |
| | | () => { |
| | |
| | | this.showMap = true; |
| | | this.$nextTick(() => { |
| | | this.$refs.mapDiv.onload = () => { |
| | | window.frames[1].init("ClientManagement", { |
| | | window.frames[0].init("ClientManagement", { |
| | | x: row.jd, |
| | | y: row.wd, |
| | | clientID: row.deviceNumber, |
| | |
| | | |
| | | this.$nextTick(() => { |
| | | this.$refs.securityMap.onload = () => { |
| | | if (window.frames[1].init) { |
| | | if (window.frames[0].init) { |
| | | if (row.jd == "" || row.jd == "0.0") { |
| | | //如果处警员无位置信息,则赋值一个默认数据,否则地图无法加载 |
| | | window.frames[1].init("SecurityMap", { |
| | | window.frames[0].init("SecurityMap", { |
| | | x: rwjd, |
| | | y: rwwd, |
| | | code: row.code, |
| | | }); |
| | | } else { |
| | | window.frames[1].init("SecurityMap", { |
| | | window.frames[0].init("SecurityMap", { |
| | | x: row.jd, |
| | | y: row.wd, |
| | | code: row.code, |
| | | }); |
| | | } |
| | | } else { |
| | | console.log(`没有找到到window.frames[1].init`); |
| | | console.log(`没有找到到window.frames[0].init`); |
| | | } |
| | | }; |
| | | }); |
| | |
| | | |
| | | this.$nextTick(() => { |
| | | this.$refs.securityMap.onload = () => { |
| | | if (window.frames[1].init) { |
| | | if (window.frames[0].init) { |
| | | if (row.jd == "" || row.jd == "0.0") { |
| | | //如果处警员无位置信息,则赋值一个默认数据,否则地图无法加载 |
| | | window.frames[1].init("SecurityMap", { |
| | | window.frames[0].init("SecurityMap", { |
| | | x: rwjd, |
| | | y: rwwd, |
| | | code: row.code, |
| | | }); |
| | | } else { |
| | | window.frames[1].init("SecurityMap", { |
| | | window.frames[0].init("SecurityMap", { |
| | | x: row.jd, |
| | | y: row.wd, |
| | | code: row.code, |
| | | }); |
| | | } |
| | | } else { |
| | | console.log(`没有找到到window.frames[1].init`); |
| | | console.log(`没有找到到window.frames[0].init`); |
| | | } |
| | | }; |
| | | }); |
| | |
| | | }, |
| | | mounted() { |
| | | // this.$refs.supervisoryMap.onload = () => { |
| | | // window.frames[1].init("AlertSecurity", { |
| | | // window.frames[0].init("AlertSecurity", { |
| | | // x: this.form.jd, |
| | | // y: this.form.wd, |
| | | // }); |
| | |
| | | '/api': { |
| | | //本地服务接口地址 |
| | | target: 'http://s16s652780.51mypc.cn/api/', |
| | | //target: 'http://172.20.10.2:82/', |
| | | //target: 'http://localhost:82/', |
| | | //target: 'https://web.byisf.com/api/', |
| | | //远程演示服务地址,可用于直接启动项目 |
| | | //target: 'https://saber.bladex.vip/api', |