shuishen
2023-02-14 88e14b93b90ab5d9283130d485d5adc9251a77b6
加载初始面的
1 files modified
30 ■■■■ changed files
src/views/activity/index.vue 30 ●●●● patch | view | raw | blame | history
src/views/activity/index.vue
@@ -2,7 +2,7 @@
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2022-08-18 16:18:17
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2023-02-14 11:57:53
 * @LastEditTime: 2023-02-14 15:28:15
 * @FilePath: \srs-police-affairs\src\views\activity\index.vue
 * @Description: 安保活动
 *
@@ -1229,13 +1229,22 @@
                type: 'VectorLayer'
            })
            // if (item.activityArea && item.activityArea.length > 0) {
            //     this.$EventBus.$emit('layerPolygonAdd', {
            //         layerName: 'polygonLayer',
            //         positions: dataStr,
            //         material: positionColor[index],
            //     })
            // }
            this.$EventBus.$emit('mapClearLayer', {
                layerName: 'polygonLayer',
                type: 'VectorLayer'
            })
            if (item.activityArea && item.activityArea.length > 0) {
                let polyGonData = item.activityArea.slice(11, item.activityArea.length - 1)
                polyGonData = polyGonData.replace(/,/g, ";")
                polyGonData = polyGonData.replace(/ /g, ",")
                this.$EventBus.$emit('layerPolygonAdd', {
                    layerName: 'polygonLayer',
                    positions: polyGonData,
                    material: global.DC.Namespace.Cesium.Color.fromBytes(139, 195, 74, 100)
                })
            }
            this.getSecurityPoliceList(item.id, this.policeSwitch)
            this.getSecurityCarList(item.id, this.policeSwitch, this.polylineBtnSwitch)
@@ -1899,6 +1908,11 @@
            type: 'VectorLayer'
        })
        this.$EventBus.$emit('mapClearLayer', {
            layerName: 'polygonLayer',
            type: 'VectorLayer'
        })
        analyseLayer.clear()
        arrowsListLayer.clear()