| | |
| | | display: flex; |
| | | flex-direction: column; |
| | | width: 320px; |
| | | height: 180px; |
| | | height: 210px; |
| | | |
| | | .el-dialog__body { |
| | | flex: 1; |
| | |
| | | |
| | | &>div { |
| | | display: flex; |
| | | margin-bottom: 6px; |
| | | |
| | | &>div { |
| | | width: 100px; |
| | | } |
| | | } |
| | | |
| | | .pick-color-box { |
| | | width: 200px; |
| | | text-align: left; |
| | | } |
| | | |
| | | input { |
| | | width: 90%; |
| | | width: 200px; |
| | | height: 30px; |
| | | font-size: 16px; |
| | | text-indent: 1em; |
| | |
| | | |
| | | .el-dialog { |
| | | width: countSizeVw(320, 1920); |
| | | height: countSizeVh(180); |
| | | height: countSizeVh(210); |
| | | } |
| | | |
| | | .pick-color-box { |
| | | width: countSizeVw(200, 1920); |
| | | } |
| | | |
| | | .el-dialog .el-dialog__body input { |
| | | width: countSizeVw(200, 1920); |
| | | height: countSizeVh(30); |
| | | font-size: countSizeVh(16); |
| | | border: countSizeVh(1) solid #005ca9; |
| | |
| | | if (iconName == 'activity') { |
| | | positionObj = { lng: `${positionArr[0]}`, lat: `${positionArr[1]}`, alt: 0, url: '/img/icon/activity.png' } |
| | | } else if (iconName == 'policeman') { |
| | | positionObj = { lng: `${positionArr[0]}`, lat: `${positionArr[1]}`, alt: 0.01, url: '/img/icon/man3.png', id: plotId, policemanId: policeId, deptId: deptId, color: color } |
| | | positionObj = { lng: `${positionArr[0]}`, lat: `${positionArr[1]}`, alt: 0.05, url: '/img/icon/man3.png', id: plotId, policemanId: policeId, deptId: deptId, color: color } |
| | | } else if (iconName == 'policecar') { |
| | | positionObj = { lng: `${positionArr[0]}`, lat: `${positionArr[1]}`, alt: 0.01, url: '/img/icon/car3.png', id: plotId, carId: policeId, deptId: deptId, color: color } |
| | | positionObj = { lng: `${positionArr[0]}`, lat: `${positionArr[1]}`, alt: 0.05, url: '/img/icon/car3.png', id: plotId, carId: policeId, deptId: deptId, color: color } |
| | | } |
| | | return positionObj |
| | | }, |
| | |
| | | let polygon = this.$turf.polygon([positionNewArr]) |
| | | let center = this.$turf.centroid(polygon) |
| | | return [center.geometry.coordinates[0], center.geometry.coordinates[1]] |
| | | }, |
| | | |
| | | // 改变巡逻路线颜色 |
| | | changeLineColor (color) { |
| | | this.chooseColor = color |
| | | }, |
| | | |
| | | // 删除警车 |
| | |
| | | <div>距离:</div> |
| | | <input type="text" v-model="range" placeholder="请输入绘制线的范围" /> |
| | | </div> |
| | | <div class="line"> |
| | | <div class="value-name-box">颜色:</div> |
| | | <div class="pick-color-box"> |
| | | <el-color-picker |
| | | v-model="chooseRangeColor" |
| | | :predefine="predefineColors" size="small"> |
| | | </el-color-picker> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <button @click="saveDrawInfo">保存</button> |
| | | <button @click="cancelSaveDrawInfo">取消</button> |
| | |
| | | searchLazyFlag: true, |
| | | searchTreeData: [], |
| | | drawPlotData: {}, |
| | | chooseRangeColor: '#FF0000', |
| | | predefineColors: [ |
| | | '#ff4500', |
| | | '#ff8c00', |
| | | '#ffd700', |
| | | '#90ee90', |
| | | '#00ced1', |
| | | '#1e90ff', |
| | | '#c71585', |
| | | 'rgba(255, 69, 0, )', |
| | | 'rgb(255, 120, 0)', |
| | | 'hsv(51, 100, 98)', |
| | | 'hsva(120, 40, 94)', |
| | | 'hsl(181, 100%, 37%)', |
| | | 'hsla(209, 100%, 56%)', |
| | | '#c7158577' |
| | | ], |
| | | } |
| | | }, |
| | | |
| | |
| | | let area = this.$turf.area(polygon) |
| | | extent = area.toFixed(3) |
| | | } |
| | | this.insertRegionSaveList({type:this.drawType, positions:drawPositionStr, name:this.drawName, extent: extent,width:this.range}) |
| | | this.insertRegionSaveList({type:this.drawType, positions:drawPositionStr, name:this.drawName, extent: extent,width:this.range,color:this.chooseRangeColor}) |
| | | this.drawDialogVisible = false |
| | | this.drawName = '' |
| | | if (drawPlotLayers != null) { |
| | |
| | | } |
| | | |
| | | this.saveRangeList.forEach(item => { |
| | | console.log(item,656565656); |
| | | let positionStr = '' |
| | | if(item.type == 1){ |
| | | let linePositionStr = '' |