南昌市物联网技防平台-前端
部分接口协议,端口,域名更换,实时报警中得实时警情弹框和警情核实弹框样式更改
23 files modified
2 files added
772 ■■■■■ changed files
public/img/ydlg.png patch | view | raw | blame | history
public/map/index.html 6 ●●●● patch | view | raw | blame | history
public/map/popup/js/clientPopup.js 4 ●●●● patch | view | raw | blame | history
public/map/popup/js/equipment-details.js 2 ●●● patch | view | raw | blame | history
public/map/popup/js/equipment-history.js 2 ●●● patch | view | raw | blame | history
public/map/popup/js/owner-details.js 2 ●●● patch | view | raw | blame | history
public/map/popup/js/personnel-information-management.js 2 ●●● patch | view | raw | blame | history
public/map/popup/js/police-details.js 2 ●●● patch | view | raw | blame | history
public/map/popup/js/realtime-equipment-history.js 2 ●●● patch | view | raw | blame | history
public/map/popup/js/realtime-police-details.js 12 ●●●● patch | view | raw | blame | history
public/map/popup/js/route-name-layer.js 2 ●●● patch | view | raw | blame | history
public/map/popup/js/routename-and-peoplename.js 2 ●●● patch | view | raw | blame | history
public/map/widgets/aPoliceTeam/APoliceTeam.js 36 ●●●● patch | view | raw | blame | history
public/map/widgets/alertSecurity/AlertSecurity.js 4 ●●●● patch | view | raw | blame | history
public/map/widgets/analysisAndJudgment/AnalysisAndJudgment.js 12 ●●●● patch | view | raw | blame | history
public/map/widgets/patrolManagement/PatrolManagement.js 36 ●●●● patch | view | raw | blame | history
public/map/widgets/policeDispatching/PoliceDispatching.js 36 ●●●● patch | view | raw | blame | history
public/map/widgets/realTimePolice/RealTimePolice.js 14 ●●●● patch | view | raw | blame | history
src/page/index/logo.vue 281 ●●●●● patch | view | raw | blame | history
src/page/index/top/index.vue 3 ●●●●● patch | view | raw | blame | history
src/styles/common.scss 3 ●●●● patch | view | raw | blame | history
src/styles/real.scss 17 ●●●●● patch | view | raw | blame | history
src/views/distribution/index.vue 4 ●●●● patch | view | raw | blame | history
src/views/policeTracking/policeTracking.vue 4 ●●●● patch | view | raw | blame | history
src/views/realTimePolice/real.vue 284 ●●●● patch | view | raw | blame | history
public/img/ydlg.png
public/map/index.html
@@ -6,9 +6,9 @@
  <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" />
@@ -29,7 +29,7 @@
  <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;
public/map/popup/js/clientPopup.js
@@ -31,7 +31,7 @@
        $.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) {
@@ -73,7 +73,7 @@
        $("#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,
public/map/popup/js/equipment-details.js
@@ -4,7 +4,7 @@
    // 查看设备的详细信息
    $.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) {
public/map/popup/js/equipment-history.js
@@ -3,7 +3,7 @@
  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) {
public/map/popup/js/owner-details.js
@@ -4,7 +4,7 @@
    // 查看警情的详细信息
    $.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) {
public/map/popup/js/personnel-information-management.js
@@ -5,7 +5,7 @@
    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) {
public/map/popup/js/police-details.js
@@ -4,7 +4,7 @@
    // 查看警情的详细信息
    $.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) {
public/map/popup/js/realtime-equipment-history.js
@@ -3,7 +3,7 @@
    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) {
public/map/popup/js/realtime-police-details.js
@@ -19,7 +19,7 @@
    // 查看警情的详细信息
    $.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) {
@@ -123,7 +123,7 @@
                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,
@@ -205,7 +205,7 @@
            $(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',
@@ -249,7 +249,7 @@
            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),
@@ -285,7 +285,7 @@
            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
@@ -320,7 +320,7 @@
    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,
public/map/popup/js/route-name-layer.js
@@ -16,7 +16,7 @@
    // 查看保安人员下拉
    $.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) {
public/map/popup/js/routename-and-peoplename.js
@@ -27,7 +27,7 @@
    // 查看保安人员下拉
    $.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) {
public/map/widgets/aPoliceTeam/APoliceTeam.js
@@ -256,7 +256,7 @@
                $('.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) {
@@ -287,7 +287,7 @@
                                    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') + ")"
@@ -355,7 +355,7 @@
                    }
                    // 发送请求修改警单数据
                    $.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,
@@ -394,7 +394,7 @@
                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) {
@@ -757,7 +757,7 @@
                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) {
@@ -917,7 +917,7 @@
                                    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,
@@ -1007,7 +1007,7 @@
                        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: {
@@ -1023,7 +1023,7 @@
                                            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: {
@@ -1048,7 +1048,7 @@
                                // 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: {
@@ -1067,7 +1067,7 @@
                            }
                        } 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: {
@@ -1105,7 +1105,7 @@
            $('.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) {
@@ -1461,7 +1461,7 @@
            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: {
@@ -1524,7 +1524,7 @@
            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: {
@@ -1568,7 +1568,7 @@
            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: {
@@ -1610,7 +1610,7 @@
            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) {
@@ -1841,7 +1841,7 @@
                    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: {
@@ -1889,7 +1889,7 @@
                    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: {
@@ -1945,7 +1945,7 @@
                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: {
public/map/widgets/alertSecurity/AlertSecurity.js
@@ -203,7 +203,7 @@
      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) {
@@ -212,7 +212,7 @@
      })
      $.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: {
public/map/widgets/analysisAndJudgment/AnalysisAndJudgment.js
@@ -661,7 +661,7 @@
            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) {
@@ -684,7 +684,7 @@
            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: {
@@ -739,7 +739,7 @@
            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) {
@@ -755,7 +755,7 @@
            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) {
@@ -771,7 +771,7 @@
            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) {
@@ -807,7 +807,7 @@
            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) {
public/map/widgets/patrolManagement/PatrolManagement.js
@@ -256,7 +256,7 @@
                $('.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) {
@@ -287,7 +287,7 @@
                                    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') + ")"
@@ -355,7 +355,7 @@
                    }
                    // 发送请求修改警单数据
                    $.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,
@@ -394,7 +394,7 @@
                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) {
@@ -757,7 +757,7 @@
                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) {
@@ -917,7 +917,7 @@
                                    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,
@@ -1007,7 +1007,7 @@
                        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: {
@@ -1023,7 +1023,7 @@
                                            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: {
@@ -1048,7 +1048,7 @@
                                // 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: {
@@ -1067,7 +1067,7 @@
                            }
                        } 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: {
@@ -1105,7 +1105,7 @@
            $('.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) {
@@ -1465,7 +1465,7 @@
            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: {
@@ -1528,7 +1528,7 @@
            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: {
@@ -1572,7 +1572,7 @@
            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: {
@@ -1614,7 +1614,7 @@
            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) {
@@ -1845,7 +1845,7 @@
                    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: {
@@ -1893,7 +1893,7 @@
                    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: {
@@ -1949,7 +1949,7 @@
                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: {
public/map/widgets/policeDispatching/PoliceDispatching.js
@@ -256,7 +256,7 @@
                $('.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) {
@@ -287,7 +287,7 @@
                                    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') + ")"
@@ -355,7 +355,7 @@
                    }
                    // 发送请求修改警单数据
                    $.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,
@@ -394,7 +394,7 @@
                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) {
@@ -757,7 +757,7 @@
                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) {
@@ -917,7 +917,7 @@
                                    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,
@@ -1007,7 +1007,7 @@
                        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: {
@@ -1023,7 +1023,7 @@
                                            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: {
@@ -1048,7 +1048,7 @@
                                // 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: {
@@ -1067,7 +1067,7 @@
                            }
                        } 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: {
@@ -1105,7 +1105,7 @@
            $('.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) {
@@ -1458,7 +1458,7 @@
            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: {
@@ -1521,7 +1521,7 @@
            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: {
@@ -1565,7 +1565,7 @@
            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: {
@@ -1607,7 +1607,7 @@
            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) {
@@ -1838,7 +1838,7 @@
                    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: {
@@ -1886,7 +1886,7 @@
                    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: {
@@ -1942,7 +1942,7 @@
                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: {
public/map/widgets/realTimePolice/RealTimePolice.js
@@ -474,7 +474,7 @@
                    }
                    $.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'),
@@ -586,7 +586,7 @@
            // 行政区
            // $.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) {
@@ -603,7 +603,7 @@
            // // 警情类型下拉
            // $.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) {
@@ -633,7 +633,7 @@
                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 即为原始返回的数据
@@ -1049,7 +1049,7 @@
            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: {
@@ -1340,7 +1340,7 @@
                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
@@ -1443,7 +1443,7 @@
        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,
src/page/index/logo.vue
@@ -1,102 +1,142 @@
<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">
@@ -105,14 +145,44 @@
              </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>
@@ -138,14 +208,12 @@
        ></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 {
@@ -162,40 +230,39 @@
      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() {
        //关闭窗口回调,关闭警报
@@ -205,15 +272,10 @@
        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,
@@ -237,20 +299,19 @@
              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);
                }
@@ -260,41 +321,44 @@
              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);
@@ -305,16 +369,16 @@
            {},
            {
              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;
@@ -403,7 +467,7 @@
            : 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() {
@@ -436,7 +500,7 @@
          this.hls.destroy();
        }
      },
    }
  },
  };
</script>
@@ -486,7 +550,7 @@
  }
  .real-dialog .el-dialog::after {
    content: '';
  content: "";
    position: absolute;
    left: -5px;
    top: 25px;
@@ -499,7 +563,6 @@
    pointer-events: none;
    z-index: -1;
  }
  .real-dialog .el-dialog__header {
    padding-top: 10px;
@@ -516,17 +579,24 @@
  }
  .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 {
@@ -536,14 +606,11 @@
    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>
src/page/index/top/index.vue
@@ -19,6 +19,9 @@
      </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')"
src/styles/common.scss
@@ -20,7 +20,8 @@
@import './normalize.scss';
//警情处置样式修改
@import './distribution.scss';
//实时警情弹窗
@import './real.scss';
a{
  text-decoration: none;
  color:#333;
src/styles/real.scss
New file
@@ -0,0 +1,17 @@
.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%;
        }
    }
}
src/views/distribution/index.vue
@@ -263,7 +263,7 @@
      }
      var newAxios = axios.create({
        baseURL: "https://web.byisf.com",
        baseURL: "http://web.byisf.com:18001",
        withCredentials: false,
        headers: {},
      });
@@ -298,7 +298,7 @@
    getSelectOptions() {
      var newAxios = axios.create({
        baseURL: "https://web.byisf.com",
        baseURL: "http://web.byisf.com:18001",
        withCredentials: false,
        headers: {},
      });
src/views/policeTracking/policeTracking.vue
@@ -305,7 +305,7 @@
      <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%"
@@ -340,7 +340,7 @@
    , methods: {
      onSubmit() {
        var newAxios = axios.create({
          baseURL: "https://web.byisf.com",
          baseURL: "http://web.byisf.com:18001",
          withCredentials: false,
          headers: {},
        });
src/views/realTimePolice/real.vue
@@ -55,13 +55,13 @@
      </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>
@@ -74,32 +74,28 @@
          :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>
@@ -113,7 +109,7 @@
        class="old-video-dialog"
        :modal="false"
        width="100%"
        title="历史视频"
        title="视频通话"
        :visible.sync="innerVisibleVideo"
        :close-on-press-escape="false"
        append-to-body
@@ -145,7 +141,27 @@
            </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"
@@ -214,6 +230,7 @@
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col span="12">
            <el-form-item label="报警时间">
@@ -225,14 +242,12 @@
            </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
@@ -242,55 +257,47 @@
            ></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"
@@ -329,7 +336,7 @@
        page: {
          pageSize: 10,
          currentPage: 1,
          total: 0
        total: 0,
        },
        selectionList: [],
        option: {
@@ -360,10 +367,11 @@
              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: "报警时间",
@@ -371,7 +379,7 @@
              width: 130,
              format: "yyyy-MM-dd HH:mm:ss",
              valueFormat: "yyyy-MM-dd HH:mm:ss",
              prop: "alarmTime"
            prop: "alarmTime",
            },
            {
              label: "报警时间",
@@ -390,33 +398,34 @@
                {
                  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: "生成警单",
@@ -430,13 +439,13 @@
              dicData: [
                {
                  label: "否",
                  value: "0"
                value: "0",
                },
                {
                  label: "是",
                  value: "1"
                }
              ]
                value: "1",
              },
            ],
            },
            {
              label: "省份",
@@ -448,12 +457,12 @@
              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: "地市",
@@ -466,12 +475,12 @@
              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: "区县",
@@ -484,12 +493,12 @@
              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: "警情状态",
@@ -502,17 +511,17 @@
              dicData: [
                {
                  label: "事件发生",
                  value: '1'
                value: "1",
                },
                {
                  label: "事件恢复",
                  value: '3'
                }
                value: "3",
              },
              ],
            },
            {
              label: "接警人",
              prop: "alarmPeople"
            prop: "alarmPeople",
            },
            {
              label: "接警时间",
@@ -520,15 +529,14 @@
              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"]),
@@ -537,16 +545,16 @@
          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();
@@ -554,7 +562,7 @@
      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
      });
    },
@@ -565,11 +573,11 @@
            this.onLoad(this.page);
            this.$message({
              type: "success",
              message: "操作成功!"
            message: "操作成功!",
            });
            done();
          },
          error => {
        (error) => {
            window.console.log(error);
            loading();
          }
@@ -582,11 +590,11 @@
            this.onLoad(this.page);
            this.$message({
              type: "success",
              message: "操作成功!"
            message: "操作成功!",
            });
            done();
          },
          error => {
        (error) => {
            window.console.log(error);
            loading();
          }
@@ -596,7 +604,7 @@
        this.$confirm("确定将选择数据删除?", {
          confirmButtonText: "确定",
          cancelButtonText: "取消",
          type: "warning"
        type: "warning",
        })
          .then(() => {
            return remove(row.id);
@@ -605,7 +613,7 @@
            this.onLoad(this.page);
            this.$message({
              type: "success",
              message: "操作成功!"
            message: "操作成功!",
            });
          });
      },
@@ -635,7 +643,7 @@
        this.$confirm("确定将选择数据删除?", {
          confirmButtonText: "确定",
          cancelButtonText: "取消",
          type: "warning"
        type: "warning",
        })
          .then(() => {
            return remove(this.ids);
@@ -644,14 +652,14 @@
            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;
          });
        }
@@ -669,24 +677,24 @@
      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;
@@ -758,7 +766,7 @@
              currenH +
              ":" +
              currenM +
              ":00"
            ":00",
          },
          month: {
            beginTime: mondayY + "-" + mondayM + "-01 00:00:00",
@@ -772,15 +780,15 @@
              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;
@@ -790,7 +798,7 @@
        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;
@@ -806,29 +814,30 @@
      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);
          }
@@ -849,16 +858,17 @@
        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,
@@ -883,19 +893,19 @@
              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);
                }
@@ -905,7 +915,6 @@
              row.type = 0;
              row.id = response.data.data;
              that.$router.push({path: "/distribution/index", query: row});
            })
            .catch(function (error) {
              that.dialogTableVisible = false;
@@ -915,10 +924,8 @@
      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);
@@ -934,7 +941,7 @@
            row.czTime +
            "&bz=" +
            row.bz,
          method: "post"
        method: "post",
        }).then(function () {
          that.onLoad(that.page, that.query);
        });
@@ -996,7 +1003,7 @@
            : 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) {
@@ -1004,8 +1011,8 @@
          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);
@@ -1016,16 +1023,16 @@
            {},
            {
              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;
@@ -1092,8 +1099,8 @@
          baseURL: "http://36.134.81.48:18000",
          withCredentials: false,
          headers: {
            "Content-Type": "application/json;"
          }
          "Content-Type": "application/json;",
        },
        });
        // 一键呼叫相关函数
@@ -1106,11 +1113,11 @@
              {},
              {
                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
@@ -1130,12 +1137,11 @@
                    param: {
                      PktType: "Talk",
                      accessToken: result.data.data.accessToken,
                      deviceCode: form.channelNumber
                    }
                  }
                    deviceCode: form.channelNumber,
                  },
                },
                })
                .then(result => {
                });
              .then((result) => {});
            });
        } else {
          this.isActive = true;
@@ -1146,13 +1152,12 @@
            });
          });
        }
      }
    }
    },
  },
  };
</script>
<style>
  .el-card__body .jtypeClass {
    width: 10%;
  }
@@ -1241,5 +1246,4 @@
    background-color: rgb(64, 158, 255);
    border-color: rgb(64, 158, 255);
  }
</style>