| | |
| | | } else if (item.type == 2) { |
| | | let positionNewArr = this.convertPolylineOrPolygonPositionDate(item.position, item.type) |
| | | this.$EventBus.$emit('layerPolygonAdd', { |
| | | layerName: 'polygonLayer', |
| | | layerName: 'newDrawLayers', |
| | | positions: positionNewArr, |
| | | material: global.DC.Color.RED, |
| | | params: { |
| | |
| | | // 修改活动警员 |
| | | updateActivityPolice (id, policemanId) { |
| | | updateActivityPolice(id, policemanId).then(res => { |
| | | console.log(id, policemanId, '触发了更新', res) |
| | | |
| | | this.getSecurityPoliceList(this.showingSecurityId) |
| | | }) |
| | | }, |
| | |
| | | }, |
| | | |
| | | // 地图元素绘制 |
| | | draw (type) { |
| | | draw (type,) { |
| | | let flag = false |
| | | const that = this |
| | | this.policeType = '' |
| | |
| | | |
| | | // 地图绘制元素点击事件 |
| | | overlayTypeClick (e) { |
| | | console.log('点击了元素', e.overlay.attrParams) |
| | | // console.log('点击了元素', e.overlay.attrParams) |
| | | this.policeIconIsCreated = true |
| | | this.policeIconId = e.overlay.attrParams.id |
| | | this.policeType = e.overlay.attrParams.policemanId |