部分接口协议,端口,域名更换,实时报警中得实时警情弹框和警情核实弹框样式更改
23 files modified
2 files added
| | |
| | | <meta http-equiv="X-UA-Compatible" content="ie=edge" /> |
| | | <title>Document</title> |
| | | <link rel="stylesheet" type="text/css" |
| | | href="https://web.byisf.com/arcgis_js_v318_api/arcgis_js_api/library/3.18/3.18/dijit/themes/tundra/tundra.css" /> |
| | | href="http://web.byisf.com:18001/arcgis_js_v318_api/arcgis_js_api/library/3.18/3.18/dijit/themes/tundra/tundra.css" /> |
| | | <link rel="stylesheet" type="text/css" |
| | | href="https://web.byisf.com/arcgis_js_v318_api/arcgis_js_api/library/3.18/3.18/esri/css/esri.css" /> |
| | | href="http://web.byisf.com:18001/arcgis_js_v318_api/arcgis_js_api/library/3.18/3.18/esri/css/esri.css" /> |
| | | <link rel="stylesheet" href="./lib/layui/css/layui.css" /> |
| | | <link rel="stylesheet" href="./css/forestry-map.css" /> |
| | | <link type="text/css" rel="stylesheet" href="framework.css" /> |
| | |
| | | <script src="env.js"></script> |
| | | |
| | | <script type="text/javascript" |
| | | src="https://web.byisf.com/arcgis_js_v318_api/arcgis_js_api/library/3.18/3.18/init.js"></script> |
| | | src="http://web.byisf.com:18001/arcgis_js_v318_api/arcgis_js_api/library/3.18/3.18/init.js"></script> |
| | | <script src='./lib/zTree_v3/js/jquery.ztree.all.js'></script> |
| | | <script> |
| | | var _framework = null; |
| | |
| | | |
| | | |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/equipment/equipment/detail?id=' + code, |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/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/blade-jfpts/equipment/equipment/updateClinent?', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/equipment/equipment/updateClinent?', |
| | | data: { |
| | | "id": code, |
| | | |
| | |
| | | |
| | | // 查看设备的详细信息 |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/equipment/equipment/detail?id=' + code, |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/equipment/equipment/detail?id=' + code, |
| | | type: 'GET', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | console.log(code, 1212121); |
| | | |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/jingdan/jingdan/selectdInfo?deviceNumber=' + code, |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/jingdan/jingdan/selectdInfo?deviceNumber=' + code, |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | |
| | | // 查看警情的详细信息 |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/suser/suser/detail?id=' + code, |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/suser/suser/detail?id=' + code, |
| | | type: 'GET', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | var viewVideoLayer = null; |
| | | // 查看保安人员的详细信息 |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/security/security/selectInfo?snumber=' + code, |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/security/security/selectInfo?snumber=' + code, |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | |
| | | // 查看警情的详细信息 |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/jingdan/jingdan/selectdInfo?deviceNumber=&id=' + code, |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/jingdan/jingdan/selectdInfo?deviceNumber=&id=' + code, |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | console.log(code, 1212121); |
| | | |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/jingdan/jingdan/selectdInfo?deviceNumber=' + code, |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/jingdan/jingdan/selectdInfo?deviceNumber=' + code, |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | |
| | | // 查看警情的详细信息 |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/alarm/alarm/selectInfo?id=' + code, |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/alarm/alarm/selectInfo?id=' + code, |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | return |
| | | } |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/jingdan/jingdan/saves', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/jingdan/jingdan/saves', |
| | | type: 'POST', |
| | | data: { |
| | | rName: result.rname, |
| | |
| | | $(this).addClass('on'); |
| | | |
| | | $.ajax({ |
| | | url: "https://web.byisf.com/talk?deviceCode=" + $('.realtime-police-details-box>div:eq(1)').data('code'), |
| | | url: "http://web.byisf.com:18001/talk?deviceCode=" + $('.realtime-police-details-box>div:eq(1)').data('code'), |
| | | type: "POST", |
| | | data: '12345', |
| | | dataType: 'JSON', |
| | |
| | | var getPCMBlob = recorder.getPCMBlob(); |
| | | |
| | | $.ajax({ |
| | | url: "https://web.byisf.com/talk", |
| | | url: "http://web.byisf.com:18001/talk", |
| | | type: 'POST', |
| | | data: { |
| | | PktType: URL.createObjectURL(getPCMBlob), |
| | |
| | | layer.confirm('确定撤销该警情?', { icon: 3, title: '提示' }, function (index) { |
| | | |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/alarm/alarm/deletejj', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/alarm/alarm/deletejj', |
| | | type: 'POST', |
| | | data: { |
| | | id: id |
| | |
| | | function updateJType(id, czTime, bz, jjTime) { |
| | | |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/alarm/alarm/updateJtype', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/alarm/alarm/updateJtype', |
| | | type: 'POST', |
| | | data: { |
| | | id: id, |
| | |
| | | |
| | | // 查看保安人员下拉 |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/security/security/selectry', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/security/security/selectry', |
| | | type: 'GET', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | |
| | | // 查看保安人员下拉 |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/security/security/selectry', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/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/blade-jfpts/jingdan/jingdan/selectdInfo?deviceNumber=&id=' + id, |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/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/blade-jfpts/position/position/selectry', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/position/position/selectry', |
| | | type: 'POST', |
| | | data: { |
| | | coordinate: "point(" + $(this).attr('lgtd') + "," + $(this).attr('lttd') + ")" |
| | |
| | | } |
| | | // 发送请求修改警单数据 |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/jingdan/jingdan/updateInfo', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/jingdan/jingdan/updateInfo', |
| | | type: 'POST', |
| | | data: { |
| | | id: id, |
| | |
| | | |
| | | var str = ''; |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/jingdan/jingdan/selectdInfo?deviceNumber=&id=' + id, |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/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/blade-jfpts/regions/regions/selectqy', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/regions/regions/selectqy', |
| | | type: 'GET', |
| | | dataType: 'JSON', |
| | | success: function (res) { |
| | |
| | | that.layuiLayer.msg('人员未更改!'); |
| | | } else { |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/duty/duty/updatedtInfo', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/duty/duty/updatedtInfo', |
| | | type: 'POST', |
| | | data: { |
| | | rid: routeId, |
| | |
| | | if (that.tabIndex == 1) { |
| | | if (that.patrolIndex == 1) { |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/routeIn/routein/insertlx', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/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/blade-jfpts/duty/duty/insertduty', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/duty/duty/insertduty', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | // that.pepleRealId = pepleRealId; |
| | | } else { |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/regions/regions/insterqy', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/regions/regions/insterqy', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | } |
| | | } else if (that.tabIndex == 2) { |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/enclosure/enclosure/insertes', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/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/blade-jfpts/district/district/selectList', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/district/district/selectList', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | dom.empty(); |
| | | var that = this; |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/jingdan/jingdan/selectList', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/jingdan/jingdan/selectList', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | that.currentDrawing = []; |
| | | that.entityPolygonAll.clear(); |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/regions/regions/selectList', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/regions/regions/selectList', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | that.currentDrawing = []; |
| | | that.entityPolygonAll.clear(); |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/routeIn/routein/selectList', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/routeIn/routein/selectList', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | that.currentDrawing = []; |
| | | that.entityPolygonAll.clear(); |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/security/security/selectList', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/security/security/selectList', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | dataStr = dataStr.substring(0, dataStr.length - 1); |
| | | |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/routeIn/routein/updatelx', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/routeIn/routein/updatelx', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | dataStr = dataStr.substring(0, dataStr.length - 1); |
| | | |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/regions/regions/updateqy', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/regions/regions/updateqy', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | dataStr = dataStr.substring(0, dataStr.length - 1); |
| | | |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/enclosure/enclosure/updatee', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/enclosure/enclosure/updatee', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | var lttd = that.getQueryStringByKey('wd'); |
| | | |
| | | $.ajax({ |
| | | url: "https://web.byisf.com/api/blade-jfpts/jingdan/jingdan/detail?id=" + openid, |
| | | url: "http://web.byisf.com:18001/api/blade-jfpts/jingdan/jingdan/detail?id=" + openid, |
| | | type: 'get', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | }) |
| | | |
| | | $.ajax({ |
| | | url: "https://web.byisf.com/api/blade-jfpts/position/position/selectfj", |
| | | url: "http://web.byisf.com:18001/api/blade-jfpts/position/position/selectfj", |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | 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://web.byisf.com:18001/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/blade-jfpts/jingdan/jingdan/selectList', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/jingdan/jingdan/selectList', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | 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/blade-jfpts/lx/lx/seleclx', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/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/blade-jfpts/dj/dj/selectName?tnumbers=' + tnumbers, |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/dj/dj/selectName?tnumbers=' + tnumbers, |
| | | type: 'GET', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | dom.empty(); |
| | | var that = this; |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/suser/suser/selectList?type=' + type + '&dj=' + dj, |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/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/blade-jfpts/equipment/equipment/selectList?deviceType=' + deviceType, |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/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/blade-jfpts/jingdan/jingdan/selectdInfo?deviceNumber=&id=' + id, |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/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/blade-jfpts/position/position/selectry', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/position/position/selectry', |
| | | type: 'POST', |
| | | data: { |
| | | coordinate: "point(" + $(this).attr('lgtd') + "," + $(this).attr('lttd') + ")" |
| | |
| | | } |
| | | // 发送请求修改警单数据 |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/jingdan/jingdan/updateInfo', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/jingdan/jingdan/updateInfo', |
| | | type: 'POST', |
| | | data: { |
| | | id: id, |
| | |
| | | |
| | | var str = ''; |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/jingdan/jingdan/selectdInfo?deviceNumber=&id=' + id, |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/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/blade-jfpts/regions/regions/selectqy', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/regions/regions/selectqy', |
| | | type: 'GET', |
| | | dataType: 'JSON', |
| | | success: function (res) { |
| | |
| | | that.layuiLayer.msg('人员未更改!'); |
| | | } else { |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/duty/duty/updatedtInfo', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/duty/duty/updatedtInfo', |
| | | type: 'POST', |
| | | data: { |
| | | rid: routeId, |
| | |
| | | if (that.tabIndex == 1) { |
| | | if (that.patrolIndex == 1) { |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/routeIn/routein/insertlx', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/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/blade-jfpts/duty/duty/insertduty', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/duty/duty/insertduty', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | // that.pepleRealId = pepleRealId; |
| | | } else { |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/regions/regions/insterqy', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/regions/regions/insterqy', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | } |
| | | } else if (that.tabIndex == 2) { |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/enclosure/enclosure/insertes', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/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/blade-jfpts/district/district/selectList', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/district/district/selectList', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | dom.empty(); |
| | | var that = this; |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/jingdan/jingdan/selectList', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/jingdan/jingdan/selectList', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | that.currentDrawing = []; |
| | | that.entityPolygonAll.clear(); |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/regions/regions/selectList', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/regions/regions/selectList', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | that.currentDrawing = []; |
| | | that.entityPolygonAll.clear(); |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/routeIn/routein/selectList', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/routeIn/routein/selectList', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | that.currentDrawing = []; |
| | | that.entityPolygonAll.clear(); |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/security/security/selectList', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/security/security/selectList', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | dataStr = dataStr.substring(0, dataStr.length - 1); |
| | | |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/routeIn/routein/updatelx', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/routeIn/routein/updatelx', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | dataStr = dataStr.substring(0, dataStr.length - 1); |
| | | |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/regions/regions/updateqy', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/regions/regions/updateqy', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | dataStr = dataStr.substring(0, dataStr.length - 1); |
| | | |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/enclosure/enclosure/updatee', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/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/blade-jfpts/jingdan/jingdan/selectdInfo?deviceNumber=&id=' + id, |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/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/blade-jfpts/position/position/selectry', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/position/position/selectry', |
| | | type: 'POST', |
| | | data: { |
| | | coordinate: "point(" + $(this).attr('lgtd') + "," + $(this).attr('lttd') + ")" |
| | |
| | | } |
| | | // 发送请求修改警单数据 |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/jingdan/jingdan/updateInfo', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/jingdan/jingdan/updateInfo', |
| | | type: 'POST', |
| | | data: { |
| | | id: id, |
| | |
| | | |
| | | var str = ''; |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/jingdan/jingdan/selectdInfo?deviceNumber=&id=' + id, |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/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/blade-jfpts/regions/regions/selectqy', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/regions/regions/selectqy', |
| | | type: 'GET', |
| | | dataType: 'JSON', |
| | | success: function (res) { |
| | |
| | | that.layuiLayer.msg('人员未更改!'); |
| | | } else { |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/duty/duty/updatedtInfo', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/duty/duty/updatedtInfo', |
| | | type: 'POST', |
| | | data: { |
| | | rid: routeId, |
| | |
| | | if (that.tabIndex == 1) { |
| | | if (that.patrolIndex == 1) { |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/routeIn/routein/insertlx', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/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/blade-jfpts/duty/duty/insertduty', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/duty/duty/insertduty', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | // that.pepleRealId = pepleRealId; |
| | | } else { |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/regions/regions/insterqy', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/regions/regions/insterqy', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | } |
| | | } else if (that.tabIndex == 2) { |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/enclosure/enclosure/insertes', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/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/blade-jfpts/district/district/selectList', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/district/district/selectList', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | dom.empty(); |
| | | var that = this; |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/jingdan/jingdan/selectList', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/jingdan/jingdan/selectList', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | that.currentDrawing = []; |
| | | that.entityPolygonAll.clear(); |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/regions/regions/selectList', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/regions/regions/selectList', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | that.currentDrawing = []; |
| | | that.entityPolygonAll.clear(); |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/routeIn/routein/selectList', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/routeIn/routein/selectList', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | that.currentDrawing = []; |
| | | that.entityPolygonAll.clear(); |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/security/security/selectList', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/security/security/selectList', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | dataStr = dataStr.substring(0, dataStr.length - 1); |
| | | |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/routeIn/routein/updatelx', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/routeIn/routein/updatelx', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | dataStr = dataStr.substring(0, dataStr.length - 1); |
| | | |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/regions/regions/updateqy', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/regions/regions/updateqy', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | dataStr = dataStr.substring(0, dataStr.length - 1); |
| | | |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/enclosure/enclosure/updatee', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/enclosure/enclosure/updatee', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | } |
| | | |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/jingdan/jingdan/saves', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/jingdan/jingdan/saves', |
| | | type: 'POST', |
| | | data: { |
| | | rName: $(_self).data('rname'), |
| | |
| | | |
| | | // 行政区 |
| | | // $.ajax({ |
| | | // url: 'https://web.byisf.com/api/blade-jfpts/district/district/selectList', |
| | | // url: 'http://web.byisf.com:18001/api/blade-jfpts/district/district/selectList', |
| | | // type: 'POST', |
| | | // dataType: 'JSON', |
| | | // success: function (data) { |
| | |
| | | |
| | | // // 警情类型下拉 |
| | | // $.ajax({ |
| | | // url: 'https://web.byisf.com/api/blade-jfpts/alarm/alarm/selectScount', |
| | | // url: 'http://web.byisf.com:18001/api/blade-jfpts/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/blade-jfpts/alarm/alarm/selectList' //数据接口 |
| | | , url: 'http://web.byisf.com:18001/api/blade-jfpts/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/blade-jfpts/alarm/alarm/selecttx', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/alarm/alarm/selecttx', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | layer.confirm('确定撤销该警情?', { icon: 3, title: '提示' }, function (index) { |
| | | |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/alarm/alarm/deletejj', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/alarm/alarm/deletejj', |
| | | type: 'POST', |
| | | data: { |
| | | id: id |
| | |
| | | |
| | | updateJType: function (id, czTime, bz, jjTime) { |
| | | $.ajax({ |
| | | url: 'https://web.byisf.com/api/blade-jfpts/alarm/alarm/updateJtype', |
| | | url: 'http://web.byisf.com:18001/api/blade-jfpts/alarm/alarm/updateJtype', |
| | | type: 'POST', |
| | | data: { |
| | | id: id, |
| | |
| | | <template> |
| | | <div class="avue-logo"> |
| | | <transition name="fade"> |
| | | <span v-if="keyCollapse" |
| | | class="avue-logo_subtitle" |
| | | key="0"> |
| | | <span v-if="keyCollapse" class="avue-logo_subtitle" key="0"> |
| | | {{website.logo}} |
| | | </span> |
| | | </transition> |
| | | <transition-group name="fade"> |
| | | <template v-if="!keyCollapse"> |
| | | <span class="avue-logo_title" |
| | | key="1">{{website.indexTitle}} </span> |
| | | <span class="avue-logo_title" key="1">{{ website.indexTitle }} </span> |
| | | </template> |
| | | </transition-group> |
| | | <audio ref='realAudio' loop> |
| | | </audio> |
| | | <audio ref="realAudio" loop></audio> |
| | | <div> |
| | | <el-dialog class="real-dialog" title="实时警情" center="true" :visible.sync="dialogTableVisible" top="190px" |
| | | append-to-body="true" @close='closeDialog'> |
| | | <el-form :model="form" label-position="right" size="mini" label-width="100px"> |
| | | <el-dialog |
| | | class="real-dialog" |
| | | title="实时警情" |
| | | :center="true" |
| | | :visible.sync="dialogTableVisible" |
| | | :append-to-body="true" |
| | | :close-on-press-escape="false" |
| | | :close-on-click-modal="false" |
| | | :show-close="false" |
| | | @close="closeDialog" |
| | | > |
| | | <el-form |
| | | :model="form" |
| | | label-position="right" |
| | | size="mini" |
| | | label-width="100px" |
| | | > |
| | | <el-row> |
| | | <el-col span="12"> |
| | | <el-form-item label="报警人"> |
| | | <el-input disabled="true" v-model="form.galarmPeople" autocomplete="off"></el-input> |
| | | <el-input |
| | | disabled="true" |
| | | v-model="form.galarmPeople" |
| | | autocomplete="off" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col span="12"> |
| | | <el-form-item label="联系电话"> |
| | | <el-input disabled="true" v-model="form.phoneNumber" autocomplete="off"></el-input> |
| | | <el-input |
| | | disabled="true" |
| | | v-model="form.phoneNumber" |
| | | autocomplete="off" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col span="12"> |
| | | <el-form-item label="负责人"> |
| | | <el-input |
| | | disabled="true" |
| | | v-model="form.galarmPeople" |
| | | autocomplete="off" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col span="12"> |
| | | <el-form-item label="负责人电话"> |
| | | <el-input |
| | | disabled="true" |
| | | v-model="form.phoneNumber" |
| | | autocomplete="off" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col span="12"> |
| | | <el-form-item label="行政区"> |
| | | <el-input disabled="true" v-model="form.district" autocomplete="off"></el-input> |
| | | <el-input |
| | | disabled="true" |
| | | v-model="form.district" |
| | | autocomplete="off" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col span="12"> |
| | | <el-form-item label="事发地址"> |
| | | <el-input disabled="true" v-model="form.place" autocomplete="off"></el-input> |
| | | <el-input |
| | | disabled="true" |
| | | v-model="form.place" |
| | | autocomplete="off" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col span="12"> |
| | | <el-form-item label="警情类别"> |
| | | <el-input disabled="true" v-model="form.waringType" autocomplete="off"></el-input> |
| | | <el-input |
| | | disabled="true" |
| | | v-model="form.waringType" |
| | | autocomplete="off" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col span="12"> |
| | | <el-form-item label="设备编号"> |
| | | <el-input disabled="true" v-model="form.deviceNumber" autocomplete="off"></el-input> |
| | | <el-input |
| | | disabled="true" |
| | | v-model="form.deviceNumber" |
| | | autocomplete="off" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col span="12"> |
| | | <el-form-item label="接警人"> |
| | | <el-input disabled="true" v-model="form.alarmPeople" autocomplete="off"></el-input> |
| | | <el-input |
| | | disabled="true" |
| | | v-model="form.alarmPeople" |
| | | autocomplete="off" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col span="12"> |
| | | <el-form-item label="接警时间"> |
| | | <el-input disabled="true" v-model="form.jjTime" autocomplete="off"></el-input> |
| | | <el-input |
| | | disabled="true" |
| | | v-model="form.jjTime" |
| | | autocomplete="off" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col span="12"> |
| | | <el-form-item label="报警时间"> |
| | | <el-input disabled="true" v-model="form.alarmTime" autocomplete="off"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | |
| | | <el-col span="12"> |
| | | <el-form-item label="实时视频"> |
| | | <el-button type="primary" @click.stop="queryOldVideo(form)" |
| | | >查看视频 |
| | | </el-button> |
| | | </el-form-item> |
| | | </el-col> |
| | | |
| | | </el-row> |
| | | <el-row> |
| | | <el-form-item label="报警内容"> |
| | | <el-input disabled="true" v-model="form.content" autocomplete="off"></el-input> |
| | | </el-form-item> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col span="12"> |
| | | <el-form-item label="要求处置时间"> |
| | | <el-date-picker |
| | | v-model="form.czTime" |
| | | type="datetime" |
| | | value-format="yyyy-MM-dd hh:mm:ss" |
| | | placeholder="选择日期时间"> |
| | | </el-date-picker> |
| | | <el-input |
| | | disabled="true" |
| | | v-model="form.alarmTime" |
| | | autocomplete="off" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col span="12"> |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :align='center'> |
| | | <el-col :offset="4"> |
| | | <el-row> |
| | | <el-form-item label="报警内容"> |
| | | <el-input |
| | | disabled="true" |
| | | v-model="form.content" |
| | | autocomplete="off" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col span="12"> |
| | | <el-form-item label="视频通话"> |
| | | <el-button type="primary" @click.stop="queryOldVideo(form)" |
| | | >查看视频 |
| | | </el-button> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col span="12"> |
| | | <el-form-item label="历史视频"> |
| | | <el-button type="primary" @click.stop="queryOldVideo(form)" |
| | | >查看视频 |
| | | </el-button> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row :align="center"> |
| | | <el-col class="opt-btn"> |
| | | <el-form-item> |
| | | <el-button type="success">一键呼叫</el-button> |
| | | <el-button type="success">视频对讲</el-button> |
| | | <el-button type="primary" @click.stop="generate(form)">生成警单</el-button> |
| | | <el-button type="warning" @click.stop="revoke(form)">警情撤销</el-button> |
| | | <el-button type="danger">推送110</el-button> |
| | | <el-button type="warning" @click.stop="revoke(form)" |
| | | >办结</el-button |
| | | > |
| | | <el-button type="danger" class="push-nmb-btn" |
| | | >推送110</el-button |
| | | > |
| | | <el-button type="primary" @click.stop="generate(form)" |
| | | >派发保安</el-button |
| | | > |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | ></video> |
| | | </el-dialog> |
| | | </div> |
| | | |
| | | |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import {mapGetters} from "vuex"; |
| | | import axios from 'axios' |
| | | import axios from "axios"; |
| | | import Hls from "hls.js"; |
| | | |
| | | export default { |
| | |
| | | this.getData(); |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["website", "keyCollapse"]) |
| | | ...mapGetters(["website", "keyCollapse"]), |
| | | }, |
| | | methods: { |
| | | getData() { |
| | | var that = this; |
| | | |
| | | axios({ |
| | | url: '/api/blade-jfpts/alarm/alarm/getLimit', |
| | | method: 'get', |
| | | url: "/api/blade-jfpts/alarm/alarm/getLimit", |
| | | method: "get", |
| | | }).then(function (response) { |
| | | that.deviceId = response.data.data[0].id; |
| | | //获得最新ID,开启实时报警循环 |
| | | that.layerRealtime(); |
| | | }); |
| | | |
| | | |
| | | }, layerRealtime() { |
| | | }, |
| | | layerRealtime() { |
| | | var that = this; |
| | | window.clearTimeout(window.realTimeQuery); |
| | | window.realTimeQuery = setInterval(function () { |
| | | axios({ |
| | | url: '/api/blade-jfpts/alarm/alarm/selecttx?id=' + that.deviceId, |
| | | method: 'post', |
| | | url: "/api/blade-jfpts/alarm/alarm/selecttx?id=" + that.deviceId, |
| | | method: "post", |
| | | }).then(function (response) { |
| | | if (response.data.data.length > 0) { |
| | | that.deviceId = response.data.data[0].id; |
| | | that.form = response.data.data[0]; |
| | | that.dialogTableVisible = true; |
| | | that.innerVisibleVideo = true; |
| | | that.$refs.realAudio.src = "./realVideo/audio.mp3"; |
| | | that.$refs.realAudio.play(); |
| | | } |
| | | }); |
| | | }, 5000); |
| | | |
| | | }, |
| | | closeDialog() { |
| | | //关闭窗口回调,关闭警报 |
| | |
| | | var that = this; |
| | | //关闭窗口回调,关闭警报 |
| | | that.$refs.realAudio.pause(); |
| | | if (row.czTime == "" || row.czTime == null) { |
| | | this.$message({ |
| | | message: '请选择处置时间', |
| | | type: 'warning' |
| | | }); |
| | | } else { |
| | | |
| | | axios({ |
| | | url: '/api/blade-jfpts/jingdan/jingdan/submit', |
| | | method: 'post', |
| | | url: "/api/blade-jfpts/jingdan/jingdan/submit", |
| | | method: "post", |
| | | data: { |
| | | rName: row.rname, |
| | | galarmPeople: row.galarmPeople, |
| | |
| | | province: row.province, |
| | | czTime: row.czTime, |
| | | jjTime: row.jjTime, |
| | | bz: row.bz |
| | | } |
| | | bz: row.bz, |
| | | }, |
| | | }) |
| | | .then(function (response) { |
| | | |
| | | that.$message({ |
| | | message: '生成警单成功', |
| | | type: 'success' |
| | | message: "生成警单成功", |
| | | type: "success", |
| | | }); |
| | | that.updateJtyep(row); |
| | | that.dialogTableVisible = false; |
| | | |
| | | that.innerVisibleVideo = false; |
| | | var arr = []; |
| | | that.$store.state.tags.tagList.forEach(item => { |
| | | that.$store.state.tags.tagList.forEach((item) => { |
| | | if (item.label != "警情分发处置") { |
| | | arr.push(item); |
| | | } |
| | |
| | | row.type = 0; |
| | | row.id = response.data.data; |
| | | that.$router.push({path: "/distribution/index", query: row}); |
| | | |
| | | }) |
| | | .catch(function (error) { |
| | | that.dialogTableVisible = false; |
| | | that.innerVisibleVideo = false; |
| | | }); |
| | | } |
| | | |
| | | }, |
| | | revoke(row) { |
| | | var that = this; |
| | | axios({ |
| | | url: '/api/blade-jfpts/alarm/alarm/deletejj?id=' + row.id, |
| | | method: 'post', |
| | | url: "/api/blade-jfpts/alarm/alarm/deletejj?id=" + row.id, |
| | | method: "post", |
| | | }).then(function () { |
| | | that.dialogTableVisible = false; |
| | | that.innerVisibleVideo = false; |
| | | //关闭窗口回调,关闭警报 |
| | | that.$refs.realAudio.pause(); |
| | | }); |
| | | |
| | | |
| | | }, updateJtyep(row) { |
| | | }, |
| | | updateJtyep(row) { |
| | | var that = this; |
| | | axios({ |
| | | url: '/api/blade-jfpts/alarm/alarm/updateJtype?id=' + row.id + "&czTime=" + row.czTime + "&bz=" + row.bz, |
| | | method: 'post', |
| | | }).then(function () { |
| | | }); |
| | | url: |
| | | "/api/blade-jfpts/alarm/alarm/updateJtype?id=" + |
| | | row.id + |
| | | "&czTime=" + |
| | | row.czTime + |
| | | "&bz=" + |
| | | row.bz, |
| | | method: "post", |
| | | }).then(function () {}); |
| | | }, |
| | | queryOldVideo(data) { |
| | | var newAxios = axios.create({ |
| | | baseURL: "http://36.134.81.48:18000", |
| | | withCredentials: false, |
| | | headers: { |
| | | "Content-type": "application/x-www-form-urlencoded" |
| | | } |
| | | "Content-type": "application/x-www-form-urlencoded", |
| | | }, |
| | | }); |
| | | |
| | | var time = this.beginTimeOrEndTime(data.alarmTime); |
| | |
| | | {}, |
| | | { |
| | | params: { |
| | | param: JSON.stringify({PktType: "GetAccessToken"}) |
| | | } |
| | | param: JSON.stringify({ PktType: "GetAccessToken" }), |
| | | }, |
| | | } |
| | | ) |
| | | .then(res => { |
| | | .then((res) => { |
| | | newAxios |
| | | .get( |
| | | `/GetPlayUrl?deviceCode=${data.channelNumber}&chl=${data.serialNumber}` |
| | | ) |
| | | .then(result => { |
| | | .then((result) => { |
| | | this.innerVisibleVideo = true; |
| | | |
| | | this.videoSource = result.data.data.m3u8; |
| | |
| | | : endTime.getSeconds(); |
| | | return { |
| | | begin: beginY + beginM + beginD + beginH + beginm + begins, |
| | | end: endY + endM + endD + endH + endm + ends |
| | | end: endY + endM + endD + endH + endm + ends, |
| | | }; |
| | | }, |
| | | openOldVideoBox() { |
| | |
| | | this.hls.destroy(); |
| | | } |
| | | }, |
| | | } |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | |
| | | } |
| | | |
| | | .real-dialog .el-dialog::after { |
| | | content: ''; |
| | | content: ""; |
| | | position: absolute; |
| | | left: -5px; |
| | | top: 25px; |
| | |
| | | pointer-events: none; |
| | | z-index: -1; |
| | | } |
| | | |
| | | |
| | | .real-dialog .el-dialog__header { |
| | | padding-top: 10px; |
| | |
| | | } |
| | | |
| | | .real-dialog .el-dialog { |
| | | margin: auto !important; |
| | | position: absolute !important; |
| | | top: 0 !important; |
| | | bottom: 0 !important; |
| | | left: 0 !important; |
| | | right: 400px !important; |
| | | height: 630px !important; |
| | | border-radius: 10px 10px 10px 10px; |
| | | } |
| | | |
| | | .ss-video-dialog { |
| | | position: absolute !important; |
| | | top: 50px !important; |
| | | top: 0px !important; |
| | | left: auto !important; |
| | | right: 0px !important; |
| | | bottom: 0 !important; |
| | | margin: auto !important; |
| | | width: 476px !important; |
| | | width: 660px !important; |
| | | } |
| | | |
| | | .ss-video-dialog .el-dialog { |
| | |
| | | right: 0 !important; |
| | | bottom: 0 !important; |
| | | margin: auto !important; |
| | | margin-top: 15vh !important; |
| | | height: 520px; |
| | | height: 630px; |
| | | } |
| | | |
| | | .ss-video-dialog .el-dialog .el-dialog__body { |
| | | height: calc(100% - 54px); |
| | | box-sizing: border-box; |
| | | } |
| | | |
| | | |
| | | </style> |
| | |
| | | </span> |
| | | </div> |
| | | <div class="top-bar__right"> |
| | | |
| | | <img src="/img/ydlg.png" style="width: 100px;" alt=""> |
| | | |
| | | <el-tooltip v-if="showColor" |
| | | effect="dark" |
| | | :content="$t('navbar.color')" |
| | |
| | | @import './normalize.scss'; |
| | | //警情处置样式修改 |
| | | @import './distribution.scss'; |
| | | |
| | | //实时警情弹窗 |
| | | @import './real.scss'; |
| | | a{ |
| | | text-decoration: none; |
| | | color:#333; |
| New file |
| | |
| | | .opt-btn { |
| | | text-align: center; |
| | | .el-form-item__content { |
| | | margin-left: 0 !important; |
| | | .el-button { |
| | | width: 80px; |
| | | height: 40px; |
| | | margin: 0 40px; |
| | | } |
| | | .push-nmb-btn { |
| | | width: 80px; |
| | | height: 80px; |
| | | border-radius: 50%; |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | var newAxios = axios.create({ |
| | | baseURL: "https://web.byisf.com", |
| | | baseURL: "http://web.byisf.com:18001", |
| | | withCredentials: false, |
| | | headers: {}, |
| | | }); |
| | |
| | | |
| | | getSelectOptions() { |
| | | var newAxios = axios.create({ |
| | | baseURL: "https://web.byisf.com", |
| | | baseURL: "http://web.byisf.com:18001", |
| | | withCredentials: false, |
| | | headers: {}, |
| | | }); |
| | |
| | | <iframe |
| | | id="mapDiv" |
| | | ref="mapDiv" |
| | | src="https://web.byisf.com/map/index.html?openid=ClientManagement" |
| | | src="http://web.byisf.com:18001/map/index.html?openid=ClientManagement" |
| | | frameborder="0" |
| | | width="100%" |
| | | height="100%" |
| | |
| | | , methods: { |
| | | onSubmit() { |
| | | var newAxios = axios.create({ |
| | | baseURL: "https://web.byisf.com", |
| | | baseURL: "http://web.byisf.com:18001", |
| | | withCredentials: false, |
| | | headers: {}, |
| | | }); |
| | |
| | | </template> |
| | | |
| | | <template slot-scope="{ row }" slot="jtype"> |
| | | <el-tag>{{ |
| | | row.jtype == "0" ? "否" : row.jtype == "1" ? "是" : "无" |
| | | }} |
| | | <el-tag |
| | | >{{ row.jtype == "0" ? "否" : row.jtype == "1" ? "是" : "无" }} |
| | | </el-tag> |
| | | </template> |
| | | <template slot-scope="{ row }" slot="cid"> |
| | | <el-tag>{{ |
| | | <el-tag |
| | | >{{ |
| | | row.cid == "1" ? "事件发生" : row.cid == "3" ? "是" : "事件恢复" |
| | | }} |
| | | </el-tag> |
| | |
| | | :type="type" |
| | | @click.stop="handleHistory(row)" |
| | | >历史 |
| | | </el-button |
| | | > |
| | | </el-button> |
| | | <el-button |
| | | icon="el-icon-video-camera-solid" |
| | | :size="size" |
| | | :type="type" |
| | | @click.stop="handleStart(row)" |
| | | >视频 |
| | | </el-button |
| | | > |
| | | </el-button> |
| | | <el-button |
| | | icon="el-icon-edit" |
| | | :size="size" |
| | | :type="type" |
| | | @click.stop="handleManage(row)" |
| | | >核实 |
| | | </el-button |
| | | > |
| | | </el-button> |
| | | <el-button |
| | | icon="el-icon-location-outline" |
| | | :size="size" |
| | | :type="type" |
| | | @click.stop="handleMap(row)" |
| | | >定位 |
| | | </el-button |
| | | > |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | | |
| | |
| | | class="old-video-dialog" |
| | | :modal="false" |
| | | width="100%" |
| | | title="历史视频" |
| | | title="视频通话" |
| | | :visible.sync="innerVisibleVideo" |
| | | :close-on-press-escape="false" |
| | | append-to-body |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col span="12"> |
| | | <el-form-item label="联系电话"> |
| | | <el-form-item label="报警人电话"> |
| | | <el-input |
| | | disabled="true" |
| | | v-model="form.phoneNumber" |
| | | autocomplete="off" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col span="12"> |
| | | <el-form-item label="负责人"> |
| | | <el-input |
| | | disabled="true" |
| | | v-model="form.galarmPeople" |
| | | autocomplete="off" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col span="12"> |
| | | <el-form-item label="负责人电话"> |
| | | <el-input |
| | | disabled="true" |
| | | v-model="form.phoneNumber" |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row> |
| | | <el-col span="12"> |
| | | <el-form-item label="报警时间"> |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col span="12"> |
| | | <el-form-item label="历史视频"> |
| | | <el-button type="primary" @click.stop="queryOldVideo(form)" |
| | | >查看视频 |
| | | </el-button |
| | | > |
| | | <el-form-item label="备注"> |
| | | <el-input v-model="form.bz" autocomplete="off"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row> |
| | | <el-form-item label="报警内容"> |
| | | <el-input |
| | |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-row> |
| | | |
| | | <el-row> |
| | | <el-col span="12"> |
| | | <el-form-item label="要求处置时间"> |
| | | <el-date-picker |
| | | v-model="form.czTime" |
| | | type="datetime" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | placeholder="选择日期时间" |
| | | > |
| | | </el-date-picker> |
| | | <el-form-item label="视频通话"> |
| | | <el-button type="primary" @click.stop="queryOldVideo(form)" |
| | | >查看视频 |
| | | </el-button> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col span="12"> |
| | | <el-form-item label="备注"> |
| | | <el-input v-model="form.bz" autocomplete="off"></el-input> |
| | | <el-form-item label="历史视频"> |
| | | <el-button type="primary" @click.stop="queryOldVideo(form)" |
| | | >查看视频 |
| | | </el-button> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row :align="center"> |
| | | <el-col :offset="4"> |
| | | <el-col class="opt-btn"> |
| | | <el-form-item> |
| | | <el-button |
| | | <!-- <el-button |
| | | :class="{ active: isActive }" |
| | | type="success" |
| | | @click.stop="aKeyToCall($event, form)" |
| | | >一键呼叫 |
| | | </el-button |
| | | > |
| | | <el-button type="success">视频对讲</el-button> |
| | | <el-button type="primary" @click.stop="generate(form)" |
| | | >生成警单 |
| | | </el-button |
| | | > |
| | | >查看视频 |
| | | </el-button> --> |
| | | <el-button type="warning" @click.stop="revoke(form)" |
| | | >警情撤销 |
| | | </el-button |
| | | > |
| | | <el-button type="danger">推送110</el-button> |
| | | >办结 |
| | | </el-button> |
| | | <el-button type="danger" class="push-nmb-btn">推送110</el-button> |
| | | <el-button type="primary" @click.stop="generate(form)" |
| | | >派送保安 |
| | | </el-button> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form> |
| | | </el-dialog> |
| | | |
| | | <el-drawer |
| | | title="电子地图" |
| | | append-to-body="true" |
| | | :visible.sync="showMap" |
| | | > |
| | | <el-drawer title="电子地图" append-to-body="true" :visible.sync="showMap"> |
| | | <iframe |
| | | id="mapDiv" |
| | | ref="mapDiv" |
| | |
| | | page: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 0 |
| | | total: 0, |
| | | }, |
| | | selectionList: [], |
| | | option: { |
| | |
| | | type: "select", |
| | | props: { |
| | | label: "dictValue", |
| | | value: "dictValue" |
| | | value: "dictValue", |
| | | }, |
| | | //cascaderItem: ["city", "district"], |
| | | dicUrl: "/api/blade-system/dict-biz/child-list?parentId=1356523651644043266", |
| | | dicUrl: |
| | | "/api/blade-system/dict-biz/child-list?parentId=1356523651644043266", |
| | | }, |
| | | { |
| | | label: "报警时间", |
| | |
| | | width: 130, |
| | | format: "yyyy-MM-dd HH:mm:ss", |
| | | valueFormat: "yyyy-MM-dd HH:mm:ss", |
| | | prop: "alarmTime" |
| | | prop: "alarmTime", |
| | | }, |
| | | { |
| | | label: "报警时间", |
| | |
| | | { |
| | | required: true, |
| | | message: "请输入时间", |
| | | trigger: "blur" |
| | | } |
| | | ] |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: "报警内容", |
| | | prop: "content" |
| | | prop: "content", |
| | | }, |
| | | { |
| | | label: "报警人", |
| | | prop: "galarmPeople" |
| | | }, { |
| | | prop: "galarmPeople", |
| | | }, |
| | | { |
| | | label: "联系电话", |
| | | prop: "phoneNumber", |
| | | width: 130 |
| | | width: 130, |
| | | }, |
| | | { |
| | | label: "事发地址", |
| | | width: 200, |
| | | prop: "place" |
| | | prop: "place", |
| | | }, |
| | | { |
| | | label: "设备编号", |
| | | search: true, |
| | | searchSpan: 3, |
| | | width: 130, |
| | | prop: "deviceNumber" |
| | | prop: "deviceNumber", |
| | | }, |
| | | { |
| | | label: "生成警单", |
| | |
| | | dicData: [ |
| | | { |
| | | label: "否", |
| | | value: "0" |
| | | value: "0", |
| | | }, |
| | | { |
| | | label: "是", |
| | | value: "1" |
| | | } |
| | | ] |
| | | value: "1", |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: "省份", |
| | |
| | | type: "select", |
| | | props: { |
| | | label: "name", |
| | | value: "code" |
| | | value: "code", |
| | | }, |
| | | cascaderItem: ["city", "district"], |
| | | dicUrl: "/api/blade-system/region/select", |
| | | span: 6, |
| | | className: "cityClass1" |
| | | className: "cityClass1", |
| | | }, |
| | | { |
| | | label: "地市", |
| | |
| | | search: true, |
| | | props: { |
| | | label: "name", |
| | | value: "code" |
| | | value: "code", |
| | | }, |
| | | dicUrl: "/api/blade-system/region/select?code={{key}}", |
| | | span: 3, |
| | | labelWidth: "0", |
| | | className: "cityClass2" |
| | | className: "cityClass2", |
| | | }, |
| | | { |
| | | label: "区县", |
| | |
| | | type: "select", |
| | | props: { |
| | | label: "name", |
| | | value: "code" |
| | | value: "code", |
| | | }, |
| | | dicUrl: "/api/blade-system/region/select?code={{key}}", |
| | | span: 3, |
| | | labelWidth: "0", |
| | | className: "cityClass3" |
| | | className: "cityClass3", |
| | | }, |
| | | { |
| | | label: "警情状态", |
| | |
| | | dicData: [ |
| | | { |
| | | label: "事件发生", |
| | | value: '1' |
| | | value: "1", |
| | | }, |
| | | { |
| | | label: "事件恢复", |
| | | value: '3' |
| | | } |
| | | value: "3", |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: "接警人", |
| | | prop: "alarmPeople" |
| | | prop: "alarmPeople", |
| | | }, |
| | | { |
| | | label: "接警时间", |
| | |
| | | format: "yyyy-MM-dd HH:mm:ss", |
| | | valueFormat: "yyyy-MM-dd HH:mm:ss", |
| | | width: 130, |
| | | prop: "jjTime" |
| | | prop: "jjTime", |
| | | }, |
| | | ] |
| | | ], |
| | | }, |
| | | data: [], |
| | | isActive: false, |
| | | recorder: null |
| | | recorder: null, |
| | | }; |
| | | |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["permission", "flowRoutes"]), |
| | |
| | | addBtn: this.vaildData(this.permission.real_add, false), |
| | | viewBtn: this.vaildData(null, false), |
| | | delBtn: this.vaildData(this.permission.real_delete, false), |
| | | editBtn: this.vaildData(this.permission.real_edit, false) |
| | | editBtn: this.vaildData(this.permission.real_edit, false), |
| | | }; |
| | | }, |
| | | ids() { |
| | | let ids = []; |
| | | this.selectionList.forEach(ele => { |
| | | this.selectionList.forEach((ele) => { |
| | | ids.push(ele.id); |
| | | }); |
| | | return ids.join(","); |
| | | } |
| | | }, |
| | | }, |
| | | created() { |
| | | this.dateTime = this.getDate(); |
| | |
| | | this.recorder = new Recorder({ |
| | | sampleBits: 16, // 采样位数,支持 8 或 16,默认是16 |
| | | sampleRate: 16000, // 采样率,支持 11025、16000、22050、24000、44100、48000,根据浏览器默认值,我的chrome是48000 |
| | | numChannels: 1 // 声道,支持 1 或 2, 默认是1 |
| | | numChannels: 1, // 声道,支持 1 或 2, 默认是1 |
| | | // compiling: false,(0.x版本中生效,1.x增加中) // 是否边录边转换,默认是false |
| | | }); |
| | | }, |
| | |
| | | this.onLoad(this.page); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!" |
| | | message: "操作成功!", |
| | | }); |
| | | done(); |
| | | }, |
| | | error => { |
| | | (error) => { |
| | | window.console.log(error); |
| | | loading(); |
| | | } |
| | |
| | | this.onLoad(this.page); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!" |
| | | message: "操作成功!", |
| | | }); |
| | | done(); |
| | | }, |
| | | error => { |
| | | (error) => { |
| | | window.console.log(error); |
| | | loading(); |
| | | } |
| | |
| | | this.$confirm("确定将选择数据删除?", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning" |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | return remove(row.id); |
| | |
| | | this.onLoad(this.page); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!" |
| | | message: "操作成功!", |
| | | }); |
| | | }); |
| | | }, |
| | |
| | | this.$confirm("确定将选择数据删除?", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning" |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | return remove(this.ids); |
| | |
| | | this.onLoad(this.page); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!" |
| | | message: "操作成功!", |
| | | }); |
| | | this.$refs.crud.toggleSelection(); |
| | | }); |
| | | }, |
| | | beforeOpen(done, type) { |
| | | if (["edit", "view"].includes(type)) { |
| | | getclient(this.form.id).then(res => { |
| | | getclient(this.form.id).then((res) => { |
| | | this.form = res.data.data; |
| | | }); |
| | | } |
| | |
| | | onLoad(page, params = {}) { |
| | | const {releaseTimeRange} = this.query; |
| | | let values = { |
| | | ...params |
| | | ...params, |
| | | }; |
| | | if (releaseTimeRange) { |
| | | values = { |
| | | ...params, |
| | | beginTime: releaseTimeRange[0], |
| | | endTime: releaseTimeRange[1], |
| | | ...this.query |
| | | ...this.query, |
| | | }; |
| | | values.releaseTimeRange = null; |
| | | } else { |
| | | values = { |
| | | ...params, |
| | | ...this.query |
| | | ...this.query, |
| | | }; |
| | | } |
| | | this.loading = true; |
| | | getList(page.currentPage, page.pageSize, values).then(res => { |
| | | getList(page.currentPage, page.pageSize, values).then((res) => { |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | | |
| | |
| | | currenH + |
| | | ":" + |
| | | currenM + |
| | | ":00" |
| | | ":00", |
| | | }, |
| | | month: { |
| | | beginTime: mondayY + "-" + mondayM + "-01 00:00:00", |
| | |
| | | currenH + |
| | | ":" + |
| | | currenM + |
| | | ":00" |
| | | } |
| | | ":00", |
| | | }, |
| | | }; |
| | | }, |
| | | getBZdata(e) { |
| | | this.activeClass = e; |
| | | var params = { |
| | | beginTime: this.dateTime.week.beginTime, |
| | | endTime: this.dateTime.week.endTime |
| | | endTime: this.dateTime.week.endTime, |
| | | }; |
| | | this.query = params; |
| | | this.page.currentPage = 1; |
| | |
| | | this.activeClass = e; |
| | | var params = { |
| | | beginTime: this.dateTime.month.beginTime, |
| | | endTime: this.dateTime.month.endTime |
| | | endTime: this.dateTime.month.endTime, |
| | | }; |
| | | this.query = params; |
| | | this.page.currentPage = 1; |
| | |
| | | rowStyle({row, column, rowIndex}) { |
| | | if (row.jtype == "1") { |
| | | return { |
| | | color: "#15a2fe" |
| | | color: "#15a2fe", |
| | | }; |
| | | } else { |
| | | return { |
| | | color: "#ff2727" |
| | | color: "#ff2727", |
| | | }; |
| | | } |
| | | }, |
| | | handleStart(row) { |
| | | var arr = []; |
| | | this.$store.state.tags.tagList.forEach(item => { |
| | | this.$store.state.tags.tagList.forEach((item) => { |
| | | if (item.label != "视频") { |
| | | arr.push(item); |
| | | } |
| | | }); |
| | | this.$store.state.tags.tagList = arr; |
| | | this.$router.push({ |
| | | path: `/real/video/`, query: row |
| | | path: `/real/video/`, |
| | | query: row, |
| | | }); |
| | | }, |
| | | handleHistory(row) { |
| | | var arr = []; |
| | | this.$store.state.tags.tagList.forEach(item => { |
| | | this.$store.state.tags.tagList.forEach((item) => { |
| | | if (item.label != "设备历史") { |
| | | arr.push(item); |
| | | } |
| | |
| | | this.dialogTableVisible = true; |
| | | }, |
| | | generate(row) { |
| | | console.log(row); |
| | | return; |
| | | var that = this; |
| | | if (row.czTime == "" || row.czTime == null) { |
| | | this.$message({ |
| | | message: "请选择处置时间", |
| | | type: "warning" |
| | | type: "warning", |
| | | }); |
| | | } else { |
| | | axios({ |
| | | url: |
| | | "/api/blade-jfpts/jingdan/jingdan/submit", |
| | | url: "/api/blade-jfpts/jingdan/jingdan/submit", |
| | | method: "post", |
| | | data: { |
| | | rName: row.rname, |
| | |
| | | province: row.province, |
| | | czTime: row.czTime, |
| | | jjTime: row.jjTime, |
| | | bz: row.bz |
| | | } |
| | | bz: row.bz, |
| | | }, |
| | | }) |
| | | .then(function (response) { |
| | | that.$message({ |
| | | message: "生成警单成功", |
| | | type: "success" |
| | | type: "success", |
| | | }); |
| | | |
| | | that.updateJtyep(row); |
| | | that.dialogTableVisible = false; |
| | | var arr = []; |
| | | that.$store.state.tags.tagList.forEach(item => { |
| | | that.$store.state.tags.tagList.forEach((item) => { |
| | | if (item.label != "警情分发处置") { |
| | | arr.push(item); |
| | | } |
| | |
| | | row.type = 0; |
| | | row.id = response.data.data; |
| | | that.$router.push({path: "/distribution/index", query: row}); |
| | | |
| | | }) |
| | | .catch(function (error) { |
| | | that.dialogTableVisible = false; |
| | |
| | | revoke(row) { |
| | | var that = this; |
| | | axios({ |
| | | url: |
| | | "/api/blade-jfpts/alarm/alarm/deletejj?id=" + |
| | | row.id, |
| | | method: "post" |
| | | url: "/api/blade-jfpts/alarm/alarm/deletejj?id=" + row.id, |
| | | method: "post", |
| | | }).then(function () { |
| | | that.dialogTableVisible = false; |
| | | that.onLoad(that.page, that.query); |
| | |
| | | row.czTime + |
| | | "&bz=" + |
| | | row.bz, |
| | | method: "post" |
| | | method: "post", |
| | | }).then(function () { |
| | | that.onLoad(that.page, that.query); |
| | | }); |
| | |
| | | : endTime.getSeconds(); |
| | | return { |
| | | begin: beginY + beginM + beginD + beginH + beginm + begins, |
| | | end: endY + endM + endD + endH + endm + ends |
| | | end: endY + endM + endD + endH + endm + ends, |
| | | }; |
| | | }, |
| | | queryOldVideo(data) { |
| | |
| | | baseURL: "http://36.134.81.48:18000", |
| | | withCredentials: false, |
| | | headers: { |
| | | "Content-type": "application/x-www-form-urlencoded" |
| | | } |
| | | "Content-type": "application/x-www-form-urlencoded", |
| | | }, |
| | | }); |
| | | |
| | | var time = this.beginTimeOrEndTime(data.alarmTime); |
| | |
| | | {}, |
| | | { |
| | | params: { |
| | | param: JSON.stringify({PktType: "GetAccessToken"}) |
| | | } |
| | | param: JSON.stringify({ PktType: "GetAccessToken" }), |
| | | }, |
| | | } |
| | | ) |
| | | .then(res => { |
| | | .then((res) => { |
| | | newAxios |
| | | .get( |
| | | `/GetPlayUrl?deviceCode=${data.channelNumber}&chl=${data.serialNumber}` |
| | | ) |
| | | .then(result => { |
| | | .then((result) => { |
| | | this.innerVisibleVideo = true; |
| | | |
| | | this.videoSource = result.data.data.m3u8; |
| | |
| | | baseURL: "http://36.134.81.48:18000", |
| | | withCredentials: false, |
| | | headers: { |
| | | "Content-Type": "application/json;" |
| | | } |
| | | "Content-Type": "application/json;", |
| | | }, |
| | | }); |
| | | |
| | | // 一键呼叫相关函数 |
| | |
| | | {}, |
| | | { |
| | | params: { |
| | | param: {PktType: "GetAccessToken"} |
| | | } |
| | | param: { PktType: "GetAccessToken" }, |
| | | }, |
| | | } |
| | | ) |
| | | .then(result => { |
| | | .then((result) => { |
| | | var formData = new FormData(); |
| | | var blob = this.recorder.getPCMBlob(); //获取pcm格式音频数据 |
| | | //此处获取到blob对象后需要设置fileName满足当前项目上传需求,其它项目可直接传把blob作为file塞入formData |
| | |
| | | param: { |
| | | PktType: "Talk", |
| | | accessToken: result.data.data.accessToken, |
| | | deviceCode: form.channelNumber |
| | | } |
| | | } |
| | | deviceCode: form.channelNumber, |
| | | }, |
| | | }, |
| | | }) |
| | | .then(result => { |
| | | }); |
| | | .then((result) => {}); |
| | | }); |
| | | } else { |
| | | this.isActive = true; |
| | |
| | | }); |
| | | }); |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | <style> |
| | | |
| | | .el-card__body .jtypeClass { |
| | | width: 10%; |
| | | } |
| | |
| | | background-color: rgb(64, 158, 255); |
| | | border-color: rgb(64, 158, 255); |
| | | } |
| | | |
| | | </style> |