shuishen
2023-04-04 80e06c7a46b59375eadc6a73321de1f98966a7b0
视频监控下,默认关闭模型
2 files modified
1 files added
132 ■■■■■ changed files
src/assets/label.js 102 ●●●●● patch | view | raw | blame | history
src/components/map/index.vue 26 ●●●●● patch | view | raw | blame | history
src/views/police/index.vue 4 ●●●● patch | view | raw | blame | history
src/assets/label.js
New file
@@ -0,0 +1,102 @@
export const label = [
    '01',
    '02',
    '03',
    '04',
    '05',
    '06',
    '07',
    '08',
    '09',
    '10',
    '11',
    '12',
    '13',
    '14',
    '15',
    '16',
    '17',
    '18',
    '19',
    '20',
    '21',
    '22',
    '23',
    '24',
    '25',
    '26',
    '27',
    '28',
    '29',
    '30',
    '31',
    '32',
    '33',
    '34',
    '35',
    '36',
    '37',
    '38',
    '39',
    '40',
    '41',
    '42',
    '43',
    '44',
    '45',
    '46',
    '47',
    '48',
    '49',
    '50',
    '51',
    '52',
    '53',
    '54',
    '55',
    '56',
    '57',
    '58',
    '59',
    '60',
    '61',
    '62',
    '63',
    '64',
    '65',
    '66',
    '67',
    '68',
    '69',
    '70',
    '71',
    '72',
    '73',
    '74',
    '75',
    '76',
    '77',
    '78',
    '79',
    '80',
    '81',
    '82',
    '83',
    '84',
    '85',
    '86',
    '87',
    '88',
    '89',
    '90',
    '91',
    '92',
    '93',
    '94',
    '95',
    '96',
    '97',
    '98',
    '99',
    '100'
]
src/components/map/index.vue
@@ -1,18 +1,8 @@
<!--
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2023-04-01 21:45:20
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2023-04-04 16:53:55
 * @FilePath: \srs-police-affairs\src\components\map\index.vue
 * @Description:
 *
 * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved.
-->
<!--
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2022-08-18 17:00:30
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2023-04-02 16:18:38
 * @LastEditTime: 2023-04-04 18:15:20
 * @FilePath: \srs-police-affairs\src\components\map\index.vue
 * @Description: 公用地图组件
 * 
@@ -498,6 +488,11 @@
            that.addMxTileset(params.titlesetName, params.titlesetUrl)
        })
        this.$EventBus.$on('closeMxTileset', () => {
            // eslint-disable-next-line no-unused-vars
            that.closeMxTileset()
        })
        this.$EventBus.$on('tilesetLayerFlag', (type, cb) => {
            // eslint-disable-next-line no-unused-vars
            that.tilesetLayerFlag(type, cb)
@@ -598,6 +593,15 @@
                global.viewer.setPitchRange(-90, 0)
            }
        },
        closeMxTileset () {
            label.forEach(item => {
                this.removeMxTileset(`sdTilesetLayer${item}`)
            })
            this.tilesetLayerType = ''
        },
        /**
         * @description: 高精度模型和轻量模型切换
         * @param {*} type
src/views/police/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-04-04 17:45:50
 * @LastEditTime: 2023-04-04 18:16:00
 * @FilePath: \srs-police-affairs\src\views\police\index.vue
 * @Description: 辖区管理
 * 
@@ -150,7 +150,6 @@
let track = null
import { initMapPosition } from '@/utils/mapPositionInit'
export default {
    inject: ['userInfo'],
@@ -216,6 +215,7 @@
        this.$nextTick(() => {
            initMapPosition()
            this.$EventBus.$emit('closeMxTileset')
        })
    },