shuishen
2023-07-19 6aa49c2de0717d3faa50bba7f3814849cb386ca3
电子沙盘及首页更改
3 files modified
42 ■■■■ changed files
src/views/activity/components/drawBtnBox.vue 20 ●●●● patch | view | raw | blame | history
src/views/activity/components/polygonPlot.vue 2 ●●●●● patch | view | raw | blame | history
src/views/home/index.vue 20 ●●●● patch | view | raw | blame | history
src/views/activity/components/drawBtnBox.vue
@@ -251,9 +251,23 @@
                } else {
                    overlayData.show = false
                    // this.$parent.removeArrowsListLayer(overlayData)
                    let altitude = overlayData.attrParams.item.altitude.split(',')
                    let altitude = overlayData.attrParams.item.altitude.split(',').map(item => {
                        if (item < 0) {
                            item = 0
                        }
                        item = Number(item)
                        return item
                    })
                    let position = overlayData.attrParams.item.position.slice(11, overlayData.attrParams.item.position.length - 1).replace(/,/g, ';').replace(/ /g, ',')
                    let positions
                    if (position.indexOf('(') != -1) {
                        position = position.replace("(", "")
                        position = position.replace(")", "")
                    }
                    let positions = position
                    if (altitude && altitude.length) positions = position.split(';').map((item, index) => `${item},${altitude[index]}`).join(';')
                    let coverage = new global.DC.Polygon(positions)
@@ -610,7 +624,7 @@
                overlay.attrParams.item.position = `LINESTRING(${params.position})`
                let positions = params.position.split(',').map(item => {
                    item = item.split(' ')
                    item = new global.DC.Position(item[0], item[1], 140)
                    item = new global.DC.Position(item[0], item[1], 20)
                    return item
                })
src/views/activity/components/polygonPlot.vue
@@ -405,8 +405,6 @@
            let positionStr = ''
            let iconUrl = {}
            if (this.restSelectBox) {
                positionStr = polygonPlotData + ',' + polygonPlotData
            } else {
src/views/home/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-07-13 15:44:37
 * @LastEditTime: 2023-07-19 15:07:05
 * @FilePath: \srs-police-affairs\src\views\home\index.vue
 * @Description: 小区-栋-层-房屋
 *
@@ -58,10 +58,11 @@
        </div>
        <el-dialog :title="panoramaTitle" :visible.sync="panoramaVisible" :before-close="panoramaBeforeClose" :modal="true"
            :modal-append-to-body="false" :close-on-click-modal="false" class="panorama-details-box" :class="{'panorama-amplification': panoramaIcon == 'el-icon-reduce-btn'}">
            :modal-append-to-body="false" :close-on-click-modal="false" class="panorama-details-box"
            :class="{ 'panorama-amplification': panoramaIcon == 'el-icon-reduce-btn' }">
            <template slot="title">
                <div class="title-box">
                    {{ panoramaTitle }}
                    {{ panoramaTitle }}
                    <span>
                        <i :class="panoramaIcon" @click="panoramaIconClick"></i>
@@ -2136,10 +2137,19 @@
                    strokeWidth: 0,
                    clampToGround: true
                }).then(function (dataSource) {
                    let entities = dataSource.entities.values
                    //修改entity样式
                    for (let i = 0; i < entities.length; i++) {
                        let entity = entities[i]
                        entity.polyline = {
                            positions: entity.polygon.hierarchy._value.positions,
                            width: 2,
                            material: global.DC.Namespace.Cesium.Color.fromCssColorString('#ED7C2F')
                        }
                    }
                    DataSourcesArray.push(dataSource)
                    that.areaPolygonLayerShow == false ? dataSource.show = false : dataSource.show = true
                    global.viewer.dataSources.add(dataSource)
                })
            })