南昌市物联网技防平台-前端
liuyg
2021-04-29 423c2f02ec5284966c69e6266903b9c1c530e72e
地图和细节调整 默认用户图标调整
5 files modified
1 files added
48 ■■■■■ changed files
public/img/bg/img-logo-OLD.png patch | view | raw | blame | history
public/img/bg/img-logo.png patch | view | raw | blame | history
public/map/widgets/supervisoryMap/FlareClusterLayer_v3.js 27 ●●●●● patch | view | raw | blame | history
public/map/widgets/supervisoryMap/SupervisoryMap.js 13 ●●●●● patch | view | raw | blame | history
src/store/modules/user.js 2 ●●● patch | view | raw | blame | history
src/views/dataL/dataL.vue 6 ●●●●● patch | view | raw | blame | history
public/img/bg/img-logo-OLD.png
public/img/bg/img-logo.png

public/map/widgets/supervisoryMap/FlareClusterLayer_v3.js
@@ -75,13 +75,17 @@
      this.singleFlareTooltipProperty = options.singleFlareTooltipProperty || null;
      var defaultTextSymbol = new TextSymbol()//聚合字体
        .setColor(new Color([255, 255, 255]))
        .setAlign(Font.ALIGN_START)
        // .setAlign(Font.ALIGN_START)//被否决
        .setOffset(+100, +10)//偏量
        // .setHaloSize(1)
        .setFont(new Font("15pt").setWeight(Font.WEIGHT_BOLD).setFamily("calibri"))
        .setSize("30")
        // .setOffsetY(-30)
        .setHorizontalAlignment("middle")
        .setVerticalAlignment("middle");
      defaultTextSymbol.font.size = 30;
      defaultTextSymbol.yoffset=100;
      // defaultTextSymbol.line.algin = 30;
      console.log(defaultTextSymbol,2123445453)
      // defaultTextSymbol.font.size = 30;
      // defaultTextSymbol.yoffset = 10;
      // console.log(defaultTextSymbol,2123445453)
      this.textSymbol = options.textSymbol || defaultTextSymbol;
      this.flareShowMode = options.flareShowMode || "mouse";
@@ -732,6 +736,7 @@
    _graphicDraw: function (e) {
      var g = e.graphic;
      if (g.attributes.isCluster) {
        //create the cluster graphics if this is a cluster being drawn
        var cl = this._getClusterFromGraphic(g);
@@ -744,7 +749,7 @@
        sh.moveToBack();
      }
      return this.inherited(arguments);
    },
@@ -769,7 +774,8 @@
      }
    },
    _graphicMouseOut: function (e) {
    _graphicMouseOut: function (e) {//鼠标进入图片事件
      if (e.graphic.attributes.isFlare) {
        this._hideFlareDetail();
      }
@@ -855,6 +861,7 @@
      //此函数当前仅适用于不使用预聚集数据的情况
      //this function currently only applies if not using preclustered data
      // console.log('改变111111111111111')
      if (this.preClustered) {
        return;
      }
@@ -949,7 +956,6 @@
          this._createCluster(this.gridClusters[i]);
        }
      }
    },
    _createClusterGrid: function (webExtent) {
@@ -999,7 +1005,6 @@
      this.singles.push(single);
      delete single.graphic;
      var symbol;
      console.log();
      if(single.tenant_id == undefined){//如果不是业主
        if (single.state != '') {
          symbol = new esri.symbol.PictureMarkerSymbol("./images/by-jingbao.png", 40, 40);
@@ -1241,7 +1246,7 @@
      var conCircleRadius = (center.x - (bbox.x - radius - buffer)) + radius; //get the radius of the circle to contain everything
      var containerCircle = groupShape.createCircle({
        cx: center.x,
        cy: center.y,
        cy: +center.y + 3,
        r: conCircleRadius
      })
        //.setStroke({ width: 1, color: "000" })
@@ -1551,7 +1556,7 @@
        })
          .setFill("#000")
          .setFont({
            size: 8,//聚合字体大小
            size: 8,//聚合字体大小//没效果
            family: this.textSymbol.font.family,
            weight: this.textSymbol.font.weight
          });
public/map/widgets/supervisoryMap/SupervisoryMap.js
@@ -386,6 +386,10 @@
      // 警情列表中的点击事件
      $('.analysis-container-police .analysis-table-content .tbody').off('click', 'tr').on('click', 'tr', function (event) {
        if ($('#policeHeatMap').prop('checked') == true) {// 点击关闭热力图
          // console.log('relitu')
          $('#policeHeatMap').click();
        }
        var id = $(this).attr('term-list');
        var b = mySelf.Pdata;
        for (var key in b) {
@@ -471,6 +475,10 @@
      // 业主列表中的点击事件
      $('.analysis-container-owner .analysis-table-content .tbody').off('click', 'tr').on('click', 'tr', function (event) {
        if ($('#ownerHeatMap').prop('checked') == true) {// 点击关闭热力图
          // console.log('relitu')
          $('#ownerHeatMap').click();
        }
        var id = $(this).attr('term-list');
        var b = mySelf.Ydata;
        for (var key in b) {
@@ -566,7 +574,10 @@
      // 设备列表中的点击事件
      $('.analysis-container-equipment .analysis-table-content .tbody').off('click', 'tr').on('click', 'tr', function (event) {
        var id = $(this).attr('term-listid');
        if ($('#equipmentHeatMap').prop('checked') == true) {// 点击关闭热力图
          // console.log('relitu')
          $('#equipmentHeatMap').click();
        }
        event.stopPropagation();
        var lgtd = Number($(this).find('input').attr('lgtd'));
src/store/modules/user.js
@@ -248,7 +248,7 @@
    },
    SET_USER_INFO: (state, userInfo) => {
      if (validatenull(userInfo.avatar)) {
        userInfo.avatar = "/img/bg/img-logo.png";
        userInfo.avatar = "/img/bg/img-logo.png";//默认头像
      }
      state.userInfo = userInfo;
      setStore({name: 'userInfo', content: state.userInfo})
src/views/dataL/dataL.vue
@@ -19,8 +19,8 @@
                  'l-t-s-yuan': true,
                }"
              ></span>
              &nbsp
              <span>{{ state }}</span>
              <span>{{' ' + state }}</span>
            </div>
            <div class="t-t-time">
              <p>{{ ReportTime }}</p>
@@ -988,7 +988,6 @@
          var imgdatas = [];
          if (res.data.data.length != 0) {
            imgdatas = res.data.data[0].paddress.split(",");
          } else {
          }
          // console.log(imgdatas);
          // imgdatas = [ //最多5张照片
@@ -1243,7 +1242,6 @@
                  if (data.fatal) {
                    switch (data.type) {
                      case Hls.ErrorTypes.NETWORK_ERROR:
                        // try to recover network error
                        console.log(
                          "fatal network error encountered, try to recover"
                        );