| public/map/widgets/alertSecurity/AlertSecurity.js | ●●●●● patch | view | raw | blame | history | |
| src/views/examination/examination.vue | ●●●●● patch | view | raw | blame | history | |
| src/views/policeTracking/policeTracking.vue | ●●●●● patch | view | raw | blame | history | |
| src/views/realTimePolice/real.vue | ●●●●● patch | view | raw | blame | history |
public/map/widgets/alertSecurity/AlertSecurity.js
@@ -132,11 +132,6 @@ entitysData: [], // 巡逻区域或者巡逻路线的描述 routeOrRegionDescribe: null, @@ -186,8 +181,6 @@ objThis._map.addLayer(objThis._siteLayer); }, getQueryStringByKey: function (key) { @@ -203,6 +196,7 @@ var lttd = that.getQueryStringByKey('wd'); var deptId = that.getQueryStringByKey('deptId').slice(0,19);//报错deptId格式不对liu.2021.5.7 var oneId = that.getQueryStringByKey('oneId'); var baid = that.getQueryStringByKey('baid'); that.addPoint(that.addEntitys, lgtd, lttd, './images/jingbaored.png'); that.createEntitys(that.addEntitys, lgtd, lttd, './images/real-time-callPolice-opcity.png'); @@ -227,14 +221,54 @@ that.addPoints(that.addEntitys, item.jd, item.wd, './images/security.png') } }); if (baid != null && baid != ""){ $.ajax({ url: "http://localhost:82/routeIn/routein/selectList?id=" + baid, type: 'post', dataType: 'JSON', success: function (res) { var entityData = ''; var entityArr = []; entityData = res.data[0].routeInfo.match(/\(([^)]*)\)/); // 此时result=["(dsfasjfj3124123)", "dsfasjfj3124123"]; if (entityData && entityData != '') { entityData = entityData[1].split(','); for (var j = 0; j < entityData.length; j++) { entityArr.push([Number(entityData[j].split(' ')[0]), Number(entityData[j].split(' ')[1])]); // entityArr.push([Number(b[0]), Number(b[1])]); } } that.addPolygonAll(that.addEntitys, entityArr); } }) } } }); }, close: function () { }, addPolygonAll: function (entitys, rings) { // entitys.clear(); var graphic = null; var polylineSymbol = new SimpleLineSymbol(); polylineSymbol.color = [255, 0, 0, 1]; polylineSymbol.width = 4; var polyline = new Polyline({ "paths": [rings], "spatialReference": { "wkid": 4326 } }); graphic = new Graphic(polyline, polylineSymbol) entitys.add(graphic); }, addPoint: function (entitys, lgtd, lttd, img) { var symbol = new esri.symbol.PictureMarkerSymbol(img, 22, 32); symbol.xoffset = 0; src/views/examination/examination.vue
@@ -47,7 +47,7 @@ <template slot-scope="{ row }" slot="examination_type"> <el-tag>{{ row.examination_type == "0" ? "正常" : row.examination_type == "1" ? "异常" : "异常" row.examination_type == "0" ? "正常" : row.examination_type == "1" ? "异常" : "正常" }} </el-tag> </template> src/views/policeTracking/policeTracking.vue
@@ -402,6 +402,7 @@ }; }, created() { this.form = this.$route.query; if ( !( @@ -415,8 +416,16 @@ } this.updatedPageData(); this.vaddress = this.form.vaddress; this.getReceivingAlarm(); debugger if (this.form.alarmType == "巡逻任务"){ this.baseUrl = `/map/index.html?ISinit=1&openid=AlertSecurity&id=${this.form.id}&jd=${this.form.jd}&wd=${this.form.wd}&pid=${this.form.deptId}&deptId=${this.form.deptId}&oneId=${this.form.oneId}&baid=${this.form.baid}`; }else{ this.baseUrl = `/map/index.html?ISinit=1&openid=AlertSecurity&id=${this.form.id}&jd=${this.form.jd}&wd=${this.form.wd}&pid=${this.form.deptId}&deptId=${this.form.deptId}&oneId=${this.form.oneId}`; } }, mounted() { this.getAudios(); src/views/realTimePolice/real.vue
@@ -1130,8 +1130,17 @@ }, PoliceTracking(row) { var arr = []; this.$store.state.tags.tagList.forEach((item) => { if (item.label != "任务追踪") { arr.push(item); } }); this.$store.state.tags.tagList = arr; //警情追踪 this.$router.push({ path: "/policeTracking/track", query: row }); }, //数据导出 @@ -1170,7 +1179,8 @@ rowClick(val) { //行点击事件 //警情追踪 this.$router.push({ path: "/policeTracking/track", query: val }); this.PoliceTracking(val); }, }, };