| | |
| | | /* |
| | | * @Description: |
| | | * @Description: |
| | | * @Version: 1.0 |
| | | * @Author: yangsx |
| | | * @Date: 2019-12-09 19:01:40 |
| | |
| | | |
| | | that.getRealTimePoliceTable(that.realTimeAddvcd, that.realTimeWringType, that.realBeginTime, that.realEndTime); |
| | | |
| | | that.layerRealtime(); |
| | | // that.layerRealtime(); |
| | | }) |
| | | |
| | | // 实时报警中得行政区选择点击事件 |
| | |
| | | } |
| | | |
| | | $.ajax({ |
| | | url: 'https://s16s652780.51mypc.cn/api/blade-jfpts/jingdan/jingdan/saves', |
| | | url: 'https://web.byisf.com/api/blade-jfpts/jingdan/jingdan/saves', |
| | | type: 'POST', |
| | | data: { |
| | | rName: $(_self).data('rname'), |
| | |
| | | |
| | | |
| | | // 行政区 |
| | | $.ajax({ |
| | | url: 'https://s16s652780.51mypc.cn/api/blade-jfpts/district/district/selectList', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | | // $.ajax({ |
| | | // url: 'https://web.byisf.com/api/blade-jfpts/district/district/selectList', |
| | | // type: 'POST', |
| | | // dataType: 'JSON', |
| | | // success: function (data) { |
| | | |
| | | $('.real-time-police .real-time-select-condition .realtime-district .select-list ul').empty(); |
| | | // $('.real-time-police .real-time-select-condition .realtime-district .select-list ul').empty(); |
| | | |
| | | $('.real-time-police .real-time-select-condition .realtime-district .select-list ul').append("<li addvcd=''>全部</li>"); |
| | | // $('.real-time-police .real-time-select-condition .realtime-district .select-list ul').append("<li addvcd=''>全部</li>"); |
| | | |
| | | for (var i = 0; i < data.data.length; i++) { |
| | | $('.real-time-police .real-time-select-condition .realtime-district .select-list ul').append("<li addvcd=" + data.data[i].addvcd + ">" + data.data[i].addvnm + "</li>"); |
| | | } |
| | | } |
| | | }) |
| | | // for (var i = 0; i < data.data.length; i++) { |
| | | // $('.real-time-police .real-time-select-condition .realtime-district .select-list ul').append("<li addvcd=" + data.data[i].addvcd + ">" + data.data[i].addvnm + "</li>"); |
| | | // } |
| | | // } |
| | | // }) |
| | | |
| | | // 警情类型下拉 |
| | | $.ajax({ |
| | | url: 'https://s16s652780.51mypc.cn/api/blade-jfpts/alarm/alarm/selectScount', |
| | | type: 'GET', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | | // // 警情类型下拉 |
| | | // $.ajax({ |
| | | // url: 'https://web.byisf.com/api/blade-jfpts/alarm/alarm/selectScount', |
| | | // type: 'GET', |
| | | // dataType: 'JSON', |
| | | // success: function (data) { |
| | | |
| | | var res = data.data[0].type; |
| | | // var res = data.data[0].type; |
| | | |
| | | console.log(res); |
| | | // console.log(res); |
| | | |
| | | $('.real-time-police .real-time-select-condition .realtime-level .select-list ul').empty(); |
| | | // $('.real-time-police .real-time-select-condition .realtime-level .select-list ul').empty(); |
| | | |
| | | $('.real-time-police .real-time-select-condition .realtime-level .select-list ul').append("<li addvcd=''>全部</li>"); |
| | | // $('.real-time-police .real-time-select-condition .realtime-level .select-list ul').append("<li addvcd=''>全部</li>"); |
| | | |
| | | for (var i = 0; i < res.length; i++) { |
| | | $('.real-time-police .real-time-select-condition .realtime-level .select-list ul').append("<li>" + res[i] + "</li>"); |
| | | } |
| | | } |
| | | }) |
| | | // for (var i = 0; i < res.length; i++) { |
| | | // $('.real-time-police .real-time-select-condition .realtime-level .select-list ul').append("<li>" + res[i] + "</li>"); |
| | | // } |
| | | // } |
| | | // }) |
| | | |
| | | |
| | | var layerTabHei = $(".real-time-police .real-time-information-list").height(); |
| | |
| | | that.updateRealTable = table.render({ |
| | | elem: '#real_time_table' |
| | | , height: (layerTabHei - 20) |
| | | , url: 'https://s16s652780.51mypc.cn/api/blade-jfpts/alarm/alarm/selectList' //数据接口 |
| | | , url: 'https://web.byisf.com/api/blade-jfpts/alarm/alarm/selectList' //数据接口 |
| | | , method: "post" |
| | | , where: { jtype: '', beginTime: that.realBeginTime, endTime: that.realEndTime } |
| | | , parseData: function (res) { //res 即为原始返回的数据 |
| | |
| | | , { field: 'serialNumber', title: "序列号", width: 0, hide: true, align: 'center' } |
| | | , { field: 'jtype', title: "是否生成警单", width: 0, hide: true, align: 'center' } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | , { |
| | | field: '', |
| | | title: '操作', |
| | |
| | | |
| | | }); |
| | | |
| | | that.layerRealtime(); |
| | | // that.layerRealtime(); |
| | | |
| | | window.deleteRealtimePolice = function (id) { |
| | | |
| | |
| | | $.ajax({ |
| | | type: 'GET', |
| | | dataType: 'JSON', |
| | | url: "https://s16s652780.51mypc.cn/GetPlayUrl?deviceCode=" + channelNumber + "&chl=" + serialNumber, |
| | | url: "https://web.byisf.com:18000/GetPlayUrl?deviceCode=" + serialNumber + "&chl=" + channelNumber, |
| | | success: function (data) { |
| | | |
| | | that.realStartVideo(dom, data.data.m3u8) |
| | |
| | | that.realTimeQuery = setInterval(function () { |
| | | if (that.historyPoliceId != null) { |
| | | $.ajax({ |
| | | url: 'https://s16s652780.51mypc.cn/api/blade-jfpts/alarm/alarm/selecttx', |
| | | url: 'https://web.byisf.com/api/blade-jfpts/alarm/alarm/selecttx', |
| | | type: 'POST', |
| | | dataType: 'JSON', |
| | | data: { |
| | |
| | | layer.confirm('确定撤销该警情?', { icon: 3, title: '提示' }, function (index) { |
| | | |
| | | $.ajax({ |
| | | url: 'https://s16s652780.51mypc.cn/api/blade-jfpts/alarm/alarm/deletejj', |
| | | url: 'https://web.byisf.com/api/blade-jfpts/alarm/alarm/deletejj', |
| | | type: 'POST', |
| | | data: { |
| | | id: id |
| | |
| | | |
| | | updateJType: function (id, czTime, bz, jjTime) { |
| | | $.ajax({ |
| | | url: 'https://s16s652780.51mypc.cn/api/blade-jfpts/alarm/alarm/updateJtype', |
| | | url: 'https://web.byisf.com/api/blade-jfpts/alarm/alarm/updateJtype', |
| | | type: 'POST', |
| | | data: { |
| | | id: id, |