shuishen
2022-09-23 f53800e6507a0851b25a1eef8d65888a3fb07f1d
活动调整
2 files modified
36 ■■■■ changed files
src/views/activity/index.vue 26 ●●●●● patch | view | raw | blame | history
src/views/home/index.vue 10 ●●●● 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: 2022-09-22 17:54:26
 * @LastEditTime: 2022-09-23 09:51:43
 * @FilePath: \srs-police-affairs\src\views\activity\index.vue
 * @Description: 安保活动
 * 
@@ -140,24 +140,25 @@
                </div>
            </div>
            <!-- <div class="row-box">
            <div class="row-box">
                <div class="category">分析范围:</div>
                <div class="category-value">
                    <el-input
                        @change="analyseChange"
                        @input="analyseChange"
                        size="mini"
                        type="number"
                        v-model="analyseInput"
                        placeholder="请输入范围"
                    ></el-input>
                </div>
            </div>-->
            </div>
        </div>
    </div>
</template>
<script>
let analyseLayer = null
let analysePolygon = null
export default {
    data () {
@@ -433,13 +434,13 @@
            analyseLayer.addOverlay(point)
            let coords = global.DC.GeoTools.pointBuffer("116.027001,28.683111", 100)
            let polygon = new global.DC.Polygon(coords)
            analysePolygon = new global.DC.Polygon(coords)
            polygon.setStyle({
            analysePolygon.setStyle({
                material: global.DC.Color.RED.withAlpha(0.4)
            })
            analyseLayer.addOverlay(polygon)
            analyseLayer.addOverlay(analysePolygon)
            this.$EventBus.$emit('mapClearLayer', {
                layerName: 'polylineLayer',
@@ -480,7 +481,16 @@
        },
        analyseChange (e) {
            console.log(e)
            analyseLayer.removeOverlay(analysePolygon)
            let coords = global.DC.GeoTools.pointBuffer("116.027001,28.683111", e)
            analysePolygon = new global.DC.Polygon(coords)
            analysePolygon.setStyle({
                material: global.DC.Color.RED.withAlpha(0.4)
            })
            analyseLayer.addOverlay(analysePolygon)
        }
    },
    destroyed () {
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: 2022-09-22 14:37:02
 * @LastEditTime: 2022-09-23 10:23:07
 * @FilePath: \srs-police-affairs\src\views\home\index.vue
 * @Description: 小区-栋-层-房屋
 * 
@@ -357,7 +357,13 @@
                url: '/img/icon/map-panorama.png'
            }],
            arr: [{ 'type': '孤寡老人', 'num': '0', 'radio': '0.00%' }, { 'type': '邪教人员', 'num': '1', 'radio': '2.00%' }, { 'type': '上访人员', 'num': '8', 'radio': '14.00%' }, { 'type': '涉毒', 'num': '15', 'radio': '27.00%' }, { 'type': '留守儿童', 'num': '6', 'radio': '11.00%' }, { 'type': '重点青少年', 'num': '5', 'radio': '9.00%' }],
            arr: [
                { 'type': '邪教人员', 'num': '1', 'radio': '2.00%' },
                { 'type': '上访人员', 'num': '8', 'radio': '14.00%' },
                { 'type': '涉毒', 'num': '15', 'radio': '27.00%' },
                { 'type': '留守儿童', 'num': '6', 'radio': '11.00%' },
                { 'type': '重点青少年', 'num': '5', 'radio': '9.00%' }
            ],
            chooseData: {},
            oneSelected: '全部',
            twoSelected: '',