| | |
| | | :value="item.value"></el-option> |
| | | </el-select> |
| | | <el-button @click="determine" v-show="!isChoosePoliceElementDisabled">确定</el-button> |
| | | <el-button @click="cancel" v-show="!isChoosePoliceElementDisabled">取消</el-button> |
| | | <el-button @click="deletePoliceElement" v-show="!isChoosePoliceElementDisabled">删除</el-button> |
| | | <el-button @click="cancel" v-show="!isChoosePoliceElementDisabled">取消</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | |
| | |
| | | </el-dialog> |
| | | |
| | | <el-dialog :title="lineEditTitle" :modal="false" :visible.sync="lineEditVisible" :close-on-click-modal="true" |
| | | class="edit-line-box"> |
| | | class="edit-line-box" :before-close="cancelSaveLine"> |
| | | <div> |
| | | <div class="value-name-box">设置缓冲范围:</div> |
| | | <div class="input-width-box"> |
| | |
| | | <v-swatches v-model="chooseColor"></v-swatches> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <el-button @click="watchVideo">查看视频</el-button> |
| | | <el-button @click="editLineInfo">编辑</el-button> |
| | | <el-button @click="saveLineInfo">保存</el-button> |
| | | <el-button @click="deleteLine">删除</el-button> |
| | | <el-button @click="lineEditVisible = false">取消</el-button> |
| | | <div class="edit-line-btn-box"> |
| | | <el-button @click="watchVideo" v-show="isLineEdit">查看视频</el-button> |
| | | <el-button @click="editLineInfo" v-show="isLineEdit">编辑</el-button> |
| | | <el-button @click="saveLineInfo" v-show="isLineEdit">保存</el-button> |
| | | <el-button @click="deleteLine" v-show="isLineEdit">删除</el-button> |
| | | <el-button @click="addLineInfo" v-show="!isLineEdit">添加</el-button> |
| | | <el-button @click="cancelSaveLine">取消</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | |
| | |
| | | isNeedName:false, |
| | | plotSaveType:1, |
| | | arrowPositionSre:'', |
| | | isLineEdit:true, |
| | | addLinePosition:'', |
| | | } |
| | | }, |
| | | |
| | |
| | | }, |
| | | |
| | | // 活动添加警车和范围 |
| | | addCarAndRange (carId, position, securityId, type) { |
| | | addCarAndRange(carId, position, securityId, type).then(res => { |
| | | // carId警车id, position坐标, securityId活动id, type线面类型,width缓存范围,color范围颜色 |
| | | addCarAndRange (params) { |
| | | addCarAndRange(params).then(res => { |
| | | if (res.data.success) { |
| | | this.$message({ |
| | | message: '添加成功', |
| | |
| | | message: '添加失败' |
| | | }) |
| | | } |
| | | this.getSecurityCarList(securityId, this.policeSwitch, this.polylineBtnSwitch) |
| | | this.getSecurityCarList(params.securityId, this.policeSwitch, this.polylineBtnSwitch) |
| | | }) |
| | | }, |
| | | |
| | |
| | | if (overlay) { |
| | | drawLayers.addOverlay(overlay) |
| | | plot.edit(overlay, (e) => { |
| | | drawLayers.addOverlay(overlay) |
| | | flag = true |
| | | overlay.on(global.DC.MouseEventType.CLICK, this.overlayTypeClick) |
| | | overlay.drawType = poltType |
| | |
| | | }) |
| | | position = position.slice(0, position.length - 1) |
| | | that.polylineBtnSwitch = true |
| | | that.addCarAndRange('', position, that.showingSecurityId, 1) |
| | | that.lineEditTitle = '新增巡逻路线' |
| | | that.isLineEdit = false |
| | | that.chooseColor = '#1CA085' |
| | | that.lineWidth = 100 |
| | | that.addLinePosition = position |
| | | that.lineEditVisible = true |
| | | flag = false |
| | | } |
| | | } |
| | |
| | | } |
| | | if (this.policeChooseCarVisible == true) { |
| | | this.policeChooseCarVisible = false |
| | | this.addCarAndRange(this.policeType, position, this.showingSecurityId, type) |
| | | this.addCarAndRange({carId:this.policeType, position:position, securityId:this.showingSecurityId, type:type}) |
| | | } else if (this.policeChooseVisible == true) { |
| | | this.policeChooseVisible = false |
| | | |
| | |
| | | } |
| | | }, |
| | | |
| | | // 取消保存巡逻路线 |
| | | cancelSaveLine(){ |
| | | this.lineEditVisible = false |
| | | if(drawLayers!=null){ |
| | | drawLayers.clear() |
| | | } |
| | | }, |
| | | |
| | | // 巡逻路线面点击事件 |
| | | lineOverlayTypeClick (e) { |
| | | this.videoShow = false |
| | |
| | | this.lineObjdata = e.overlay.attrParams.lineObj |
| | | this.polygonPosition = e.overlay.attrParams.polygonPositionStr |
| | | if (this.userInfo.dept_id == '1123598813738675201' || this.userInfo.dept_id == this.activityDeptId) { |
| | | this.lineEditTitle = '修改巡逻路线' |
| | | this.isLineEdit = true |
| | | this.lineEditVisible = true |
| | | } else { |
| | | this.lineEditVisible = false |
| | |
| | | this.lineEditVisible = false |
| | | }, |
| | | |
| | | // 新增巡逻路线信息 |
| | | addLineInfo(){ |
| | | this.addCarAndRange({position:this.addLinePosition, securityId:this.showingSecurityId, type:1,color:this.chooseColor,width:this.lineWidth}) |
| | | this.cancelSaveLine() |
| | | }, |
| | | |
| | | // 遍历监控图标 |
| | | initMonitoringIcon (monitoringList) { |
| | | monitoringList.forEach(item => { |