南昌市物联网技防平台-前端
shuishen
2021-03-13 d03f87c702dbe7456b5e7bedca0fdcae041f16f4
mainMapWidget
4 files modified
81 ■■■■■ changed files
public/map/index.html 2 ●●● patch | view | raw | blame | history
public/map/widgets/alertSecurity/AlertSecurity.js 46 ●●●● patch | view | raw | blame | history
public/map/widgets/analysisAndJudgment/AnalysisAndJudgment.js 20 ●●●● patch | view | raw | blame | history
src/views/distribution/index.vue 13 ●●●● patch | view | raw | blame | history
public/map/index.html
@@ -54,7 +54,7 @@
          _AppEvent.addAppEventListener("mapLoad", function(map){
            if (locationObj && locationObj != null) {
              map.centerAndZoom(new esri.geometry.Point(locationObj.x,locationObj.y, new esri.SpatialReference({ wkid: 4326 })), 14);
              map.centerAndZoom(new esri.geometry.Point(locationObj.x,locationObj.y, new esri.SpatialReference({ wkid: 4326 })), 16);
            }
          });
          if (openId) showFun(openId);
public/map/widgets/alertSecurity/AlertSecurity.js
@@ -184,19 +184,9 @@
    startup: function () {
      objThis._map.addLayer(objThis._siteLayer);
      var that = this;
      var openid = that.getQueryStringByKey('id');
      $.ajax({
          url: "http://web.byisf.com/api/blade-jfpts/jingdan/jingdan/detail?id=" + openid,
          type: 'get',
          dataType: 'JSON',
          success: function (data) {
            that.addPoint(that.addEntitys, data.data.jd, data.data.wd)
          }
      })
    },
@@ -205,7 +195,37 @@
    },
    open: function () {
      var that = this;
      var openid = that.getQueryStringByKey('id');
      var lgtd = that.getQueryStringByKey('jd');
      var lttd = that.getQueryStringByKey('wd');
      $.ajax({
        url: "https://web.byisf.com/api/blade-jfpts/jingdan/jingdan/detail?id=" + openid,
        type: 'get',
        dataType: 'JSON',
        success: function (data) {
          that.addPoint(that.addEntitys, data.data.jd, data.data.wd, './images/jingbaored.png')
        }
      })
      $.ajax({
        url: "https://web.byisf.com/api/blade-jfpts/position/position/selectfj",
        type: 'POST',
        dataType: 'JSON',
        data: {
          jd: lgtd,
          wd: lttd
        },
        success: function (data) {
          console.log(data)
          data.data.forEach(item => {
            that.addPoint(that.addEntitys, item.jd, item.wd, './images/security.png')
          })
        }
      })
    },
    close: function () {
@@ -262,8 +282,8 @@
      entityContent.push(item);
    },
    addPoint: function (entitys, lgtd, lttd) {
      var symbol = new esri.symbol.PictureMarkerSymbol('./images/jingbaored.png', 20, 20);
    addPoint: function (entitys, lgtd, lttd, img) {
      var symbol = new esri.symbol.PictureMarkerSymbol(img, 20, 20);
      var pt = new Point(lgtd, lttd, new SpatialReference({
        wkid: 4326
      }));
public/map/widgets/analysisAndJudgment/AnalysisAndJudgment.js
@@ -663,7 +663,7 @@
            dom.children('.select-list').children('ul').append($("<li areaid='all'>全部</li>"));
            var that = this;
            $.ajax({
                url: 'http://web.byisf.com/api/blade-system/region/select?code=3601',
                url: 'https://web.byisf.com/api/blade-system/region/select?code=3601',
                type: 'GET',
                dataType: 'JSON',
                success: function (data) {
@@ -686,7 +686,7 @@
            dom.empty();
            var that = this;
            $.ajax({
                url: 'http://web.byisf.com/api/blade-jfpts/jingdan/jingdan/selectList',
                url: 'https://web.byisf.com/api/blade-jfpts/jingdan/jingdan/selectList',
                type: 'POST',
                dataType: 'JSON',
                data: {
@@ -710,11 +710,11 @@
                        }, result[i].jd, result[i].wd, './images/police-situation.png');
                        t = result[i].handleTime.substr(0, 10);
                        e = result[i].handleTime.substr(11);
                        t = result[i].galarmTime.substr(0, 10);
                        e = result[i].galarmTime.substr(11);
                        time = t + '&nbsp;' + e;
                        y = result[i].handleTime.substr(5, 5);
                        h = result[i].handleTime.substr(11, 5);
                        y = result[i].galarmTime.substr(5, 5);
                        h = result[i].galarmTime.substr(11, 5);
                        a = Number(i) + 1;
                        str += '<tr term-list=' + result[i].id + '>';
                        str += '<td>' + a + '</td>';
@@ -741,7 +741,7 @@
            dom.children('.select-list').children('ul').empty();
            dom.children('.select-list').children('ul').append($("<li ownerid='all'>全部</li>"));
            $.ajax({
                url: 'http://web.byisf.com/api/blade-jfpts/lx/lx/seleclx',
                url: 'https://web.byisf.com/api/blade-jfpts/lx/lx/seleclx',
                type: 'GET',
                dataType: 'JSON',
                success: function (data) {
@@ -757,7 +757,7 @@
            dom.children('.select-list').children('ul').empty();
            dom.children('.select-list').children('ul').append($("<li>全部</li>"));
            $.ajax({
                url: 'http://web.byisf.com/api/blade-jfpts/dj/dj/selectName?tnumbers=' + tnumbers,
                url: 'https://web.byisf.com/api/blade-jfpts/dj/dj/selectName?tnumbers=' + tnumbers,
                type: 'GET',
                dataType: 'JSON',
                success: function (data) {
@@ -773,7 +773,7 @@
            dom.empty();
            var that = this;
            $.ajax({
                url: 'http://web.byisf.com/api/blade-jfpts/suser/suser/selectList?type=' + type + '&dj=' + dj,
                url: 'https://web.byisf.com/api/blade-jfpts/suser/suser/selectList?type=' + type + '&dj=' + dj,
                type: 'GET',
                dataType: 'JSON',
                success: function (data) {
@@ -809,7 +809,7 @@
            dom.empty();
            var that = this;
            $.ajax({
                url: 'http://web.byisf.com/api/blade-jfpts/equipment/equipment/selectList?deviceType=' + deviceType,
                url: 'https://web.byisf.com/api/blade-jfpts/equipment/equipment/selectList?deviceType=' + deviceType,
                type: 'GET',
                dataType: 'JSON',
                success: function (data) {
src/views/distribution/index.vue
@@ -78,7 +78,7 @@
              ></el-input> </el-form-item
          ></el-col>
          <el-col span="12"
            ><el-form-item class="distribution-form-label" label="警情类别">
            ><el-form-item class="distribution-form-label" label="警情类别">t
              <el-input
                disabled="true"
                v-model="form.waringType"
@@ -107,6 +107,7 @@
          <el-col span="12"
            ><el-form-item class="distribution-form-label" label="处理人">
              <el-select
              style="width: 100%"
                v-model="form.handName"
                @change="selectChange"
                placeholder="请选择处理人"
@@ -216,13 +217,13 @@
      selectOptions: [],
      form: {},
      baseUrl: "",
      processmode: "提示业主",
      processmode: "派发保安",
      ref: this.$refs,
    };
  },
  created() {
    this.form = this.$route.query;
    this.form.handletype = 1;
    this.form.handletype = 0;
    console.log(this.form);
    if (this.form.type == 0) {
@@ -231,7 +232,7 @@
    }
    this.getSelectOptions();
    this.baseUrl = `/map/index.html?openid=AlertSecurity&id=${this.form.id}&jd=${this.form.jd}&wd=${this.form.wd}}`;
    this.baseUrl = `/map/index.html?ISinit=1&openid=AlertSecurity&id=${this.form.id}&jd=${this.form.jd}&wd=${this.form.wd}`;
    var arr = [];
    var flag = false;
@@ -269,7 +270,7 @@
      }
      var newAxios = axios.create({
        baseURL: "http://web.byisf.com",
        baseURL: "https://web.byisf.com",
        withCredentials: false,
        headers: {},
      });
@@ -304,7 +305,7 @@
    getSelectOptions() {
      var newAxios = axios.create({
        baseURL: "http://web.byisf.com",
        baseURL: "https://web.byisf.com",
        withCredentials: false,
        headers: {},
      });