| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2022-08-18 16:18:17 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2023-03-07 16:42:58 |
| | | * @LastEditTime: 2023-03-07 17:24:22 |
| | | * @FilePath: \srs-police-affairs\src\views\activity\index.vue |
| | | * @Description: 安保活 |
| | | * |
| | |
| | | |
| | | <draw-btn-box ref="DRAWBTNBOX" :dialogVisible="dialogVisible" :isShowActivityEditBox="isShowActivityEditBox" |
| | | :showingSecurityId="showingSecurityId" :policeSwitch="policeSwitch" :polylineBtnSwitch="polylineBtnSwitch" |
| | | :arrowBtnSwitch="arrowBtnSwitch" :policeIconId="policeIconId" :lineWidth="lineWidth"></draw-btn-box> |
| | | :arrowBtnSwitch="arrowBtnSwitch" :policeIconId="policeIconId" :lineWidth="lineWidth" |
| | | @setOverlayObj="setOverlayObj" @setPoliceOption="setPoliceOption"></draw-btn-box> |
| | | |
| | | <div class="second-container" :class="{ 'spread': boxShow, 'take-back': !boxShow }"> |
| | | <el-tree :data="treeData" show-checkbox node-key="id" @check="treeCheckClick"></el-tree> |
| | |
| | | }, |
| | | |
| | | methods: { |
| | | setOverlayObj (e) { |
| | | overlayObj = e |
| | | }, |
| | | |
| | | setPoliceOption () { |
| | | this.policeOption = policecarOption |
| | | }, |
| | | |
| | | // 时间选中值触发 |
| | | activityTimeChange () { |
| | | let startTime = '' |
| | |
| | | this.isHaveLine = res.data.data.some(item => { |
| | | return item.type == 1 |
| | | }) |
| | | console.log(type, pointShow, res.data.data.filter(item => item.type == 3)) |
| | | |
| | | type == 'car' && pointShow && this.addMapCarAndPersonLayers( |
| | | res.data.data.filter(item => item.type == 3), |
| | |
| | | item.polygonPositionStr = positionStr |
| | | |
| | | let lineObj = new global.DC.Polyline(positionNewArr) |
| | | |
| | | lineLayer.addOverlay(lineObj) |
| | | lineObj.setStyle({ |
| | | 'material': lineColor, |
| | |
| | | preventFocusLost (event) { |
| | | event.preventDefault() |
| | | }, |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | // 下拉选择值变化 |
| | | activityTypeChange () { |
| | |
| | | }) |
| | | |
| | | arrowsListLayer.remove() |
| | | arrowsListLayer = null |
| | | |
| | | lineLayer.remove() |
| | | if (pointCircleManLayer != null) { |
| | | pointCircleManLayer.remove() |
| | | } |
| | | lineLayer = null |
| | | |
| | | if (pointCircleCarLayer != null) { |
| | | pointCircleCarLayer.remove() |
| | | } |
| | | pointCircleManLayer.remove() |
| | | pointCircleManLayer = null |
| | | |
| | | if (polylineAreaLayer) { |
| | | polylineAreaLayer.remove() |
| | | } |
| | | pointCircleCarLayer.remove() |
| | | pointCircleCarLayer = null |
| | | |
| | | polylineAreaLayer.remove() |
| | | polylineAreaLayer = null |
| | | |
| | | this.$parent.$parent.resize('0px') |
| | | } |