南昌市物联网技防平台-前端
zengh
2021-05-21 218a5bdedb4efc10473976d90a0296a289961b0f
地图模式修改,心跳时间修改
4 files modified
16 ■■■■ changed files
public/map/index.html 2 ●●●●● patch | view | raw | blame | history
public/map/widgets/clientManagement/ClientManagement.js 10 ●●●●● patch | view | raw | blame | history
src/views/clientManagement/clientManagement.vue 2 ●●● patch | view | raw | blame | history
src/views/realTimePolice/real.vue 2 ●●● patch | view | raw | blame | history
public/map/index.html
@@ -51,6 +51,8 @@
          _framework.onSiderContainerShow();
          _framework.resize();
          _AppEvent = AppEvent;
          //获取设备id
          window.clientID = locationObj.clientID;
          _AppEvent.addAppEventListener("mapLoad", function(map){
            if (locationObj && locationObj != null) {
public/map/widgets/clientManagement/ClientManagement.js
@@ -162,7 +162,7 @@
    open: function () {
      var that = this;
      $.ajax({
        url: '/api/blade-jfpts/equipment/equipment/pages?current=1&size=1000',
                url: '/api/blade-jfpts/equipment/equipment/pageDept?deviceName='+ window.clientID,
        type: 'get',
        dataType: 'JSON',
        success: function (data) {
@@ -183,8 +183,7 @@
    },
    // 鼠标点击事件
    clickHand: function () {
    },
        clickHand: function() {},
    //聚合图层事件
    flareClusterLayer: function (datas) {
@@ -249,8 +248,8 @@
      //var data = DataManager.getData();
      that.clusterLayer.addData(datas);
    }
    , clearLayer: function () {
        },
        clearLayer: function() {
      var that = this;
      that._map.removeLayer(that.clusterLayer);
      that.clusterLayer = null;
@@ -260,4 +259,3 @@
  });
  return Widget;
});
src/views/clientManagement/clientManagement.vue
@@ -1039,7 +1039,7 @@
          for (var i = 0; i < data.records.length; i++) {
            var date = new Date(data.records[i].heartbeat).getTime();
            if ((Dqdate - date) >= (60 * 60 * 24 * 1000)) {
            if ((Dqdate - date) >= (150 * 1000)) {
              data.records[i].dxzt = 0;
            } else if (data.records[i].heartbeat == "") {
              data.records[i].dxzt = 0;
src/views/realTimePolice/real.vue
@@ -867,7 +867,7 @@
      this.showMap = true;
      this.$nextTick(() => {
        this.$refs.mapDiv.onload = () => {
          window.frames[1].init("ClientManagement", { x: row.jd, y: row.wd });
          window.frames[1].init("ClientManagement", { x: row.jd, y: row.wd , clientID: row.deviceNumber});
        };
      });
    },