| | |
| | | |
| | | _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); |
| | |
| | | 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) |
| | | } |
| | | }) |
| | | |
| | | |
| | | }, |
| | | |
| | |
| | | }, |
| | | |
| | | 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 () { |
| | |
| | | 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 |
| | | })); |
| | |
| | | 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) { |
| | |
| | | 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: { |
| | |
| | | }, 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 + ' ' + 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>'; |
| | |
| | | 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) { |
| | |
| | | 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) { |
| | |
| | | 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) { |
| | |
| | | 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) { |
| | |
| | | ></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" |
| | |
| | | <el-col span="12" |
| | | ><el-form-item class="distribution-form-label" label="处理人"> |
| | | <el-select |
| | | style="width: 100%" |
| | | v-model="form.handName" |
| | | @change="selectChange" |
| | | placeholder="请选择处理人" |
| | |
| | | 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) { |
| | |
| | | } |
| | | 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; |
| | |
| | | } |
| | | |
| | | var newAxios = axios.create({ |
| | | baseURL: "http://web.byisf.com", |
| | | baseURL: "https://web.byisf.com", |
| | | withCredentials: false, |
| | | headers: {}, |
| | | }); |
| | |
| | | |
| | | getSelectOptions() { |
| | | var newAxios = axios.create({ |
| | | baseURL: "http://web.byisf.com", |
| | | baseURL: "https://web.byisf.com", |
| | | withCredentials: false, |
| | | headers: {}, |
| | | }); |