shuishen
2023-04-02 e56f3556dd26da8bce7e05031b0d22c734da74c5
首页调整,删除无用代码
3 files modified
75 ■■■■ changed files
src/components/map/index.vue 24 ●●●● patch | view | raw | blame | history
src/views/home/index.vue 50 ●●●● patch | view | raw | blame | history
src/views/policeInfor/index.vue 1 ●●●● patch | view | raw | blame | history
src/components/map/index.vue
@@ -2,7 +2,7 @@
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2023-04-01 21:45:20
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2023-04-02 16:36:46
 * @LastEditTime: 2023-04-02 18:09:39
 * @FilePath: \srs-police-affairs\src\components\map\index.vue
 * @Description: 
 * 
@@ -293,15 +293,15 @@
            // that.highOrLightChange('light')
            // 外网
            // global.viewer.imageryLayers.addImageryProvider(
            //     new global.DC.Namespace.Cesium.UrlTemplateImageryProvider({
            //         url: 'http://t{s}.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=e45274b0235bb913eceb393aabbf9c9c',
            //         subdomains: ['0', '1', '2', '3', '4', '5', '6', '7'],
            //         format: 'image/jpeg',
            //         show: true,
            //         maximumLevel: 18
            //     })
            // )
            global.viewer.imageryLayers.addImageryProvider(
                new global.DC.Namespace.Cesium.UrlTemplateImageryProvider({
                    url: 'http://t{s}.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=e45274b0235bb913eceb393aabbf9c9c',
                    subdomains: ['0', '1', '2', '3', '4', '5', '6', '7'],
                    format: 'image/jpeg',
                    show: true,
                    maximumLevel: 18
                })
            )
            // 设置地图初始位置,角度等
            global.viewer.camera.setView({
@@ -832,9 +832,7 @@
            if (type == "billboard") {
                // pointElement = new global.DC.Billboard(new global.DC.Position(Number(params.lng), Number(params.lat), Number(alt)), params.url)
                pointElement = new global.DC.Billboard(new global.DC.Position(Number(params.lng), Number(params.lat), 4), params.url)
                params.disableDepthTestDistance && pointElement.setStyle({
                    disableDepthTestDistance: params.disableDepthTestDistance
                })
                pointElement.setStyle(params.setStyle)
                pointElement.size = [32, 32]
                pointElement.attrParams = params
                layersObjcect[layerName].addOverlay(pointElement)
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-04-02 17:22:25
 * @LastEditTime: 2023-04-02 18:06:30
 * @FilePath: \srs-police-affairs\src\views\home\index.vue
 * @Description: 小区-栋-层-房屋
 *
@@ -84,8 +84,7 @@
        </el-dialog>
        <el-dialog :title="equimentTitle" :modal="true" :visible.sync="equimentVisible" :before-close="equimentBeforeClose"
            :close-on-click-modal="true" class="equiment-details-box"
            :cell-style="{ 'text-align': 'center', 'borderColor': '#324e75', 'cursor': 'default' }">
            :close-on-click-modal="true" class="equiment-details-box">
            <div class="header">
                <div>
                    设备名称:
@@ -100,7 +99,8 @@
                element-loading-background="rgba(0, 0, 0, 0.2)" class="body">
                <el-table :data="equimentTableData" style="width: 100%"
                    :header-cell-style="{ 'text-align': 'center', 'background-color': '#203c60', 'borderColor': '#324e75' }"
                    :cell-style="{ 'text-align': 'center', 'borderColor': '#324e75' }" :row-class-name="tableRowClassName">
                    :cell-style="{ 'text-align': 'center', 'borderColor': '#324e75', 'cursor': 'default' }"
                    :row-class-name="tableRowClassName">
                    <el-table-column label="序号" type="index" align="center">
                        <template slot-scope="scope">
                            <span>{{ (currentPage - 1) * pagesize + scope.$index + 1 }}</span>
@@ -607,7 +607,6 @@
            }
            this.$EventBus.$emit('toPosition', {
                layerName: 'carLayers',
                siteJd: row.x,
                siteWd: row.y
            })
@@ -666,12 +665,13 @@
                        id: 1
                    })
                } else {
                    this.initHousingLayer()
                    if (res.data.data.length == 0 || JSON.stringify(res.data.data) === "{}") {
                        this.selectHouseClass = true
                        this.housingCheckValue = '该责任区暂无小区'
                        this.initHousingLayer()
                        return
                    }
                    this.selectHouseClass = false
                    this.housingCheckValue = '请选择小区'
                    this.housingOptions = res.data.data
@@ -679,6 +679,8 @@
                        name: '全部',
                        id: 1
                    })
                    this.initHousingLayer()
                }
            })
        },
@@ -712,7 +714,7 @@
                        res.data.data.forEach(item => {
                            if (item.longitude && item.latitude) {
                                this.$EventBus.$emit('layerPointAdd', {
                                    layerName: 'carLayers',
                                    layerName: 'homeCarLayers',
                                    type: "billboard",
                                    layerType: 'ClusterLayer',
                                    params: {
@@ -720,7 +722,9 @@
                                        lng: item.longitude,
                                        lat: item.latitude,
                                        url: '/img/icon/car.png',
                                        disableDepthTestDistance: Number.POSITIVE_INFINITY
                                        setStyle: {
                                            disableDepthTestDistance: Number.POSITIVE_INFINITY
                                        }
                                    },
                                    incident: this.phoneSiteClick
                                })
@@ -732,7 +736,7 @@
                        res.data.data.forEach(item => {
                            if (item.longitude && item.latitude) {
                                this.$EventBus.$emit('layerPointAdd', {
                                    layerName: 'cameraLayers',
                                    layerName: 'homeCameraLayers',
                                    type: "billboard",
                                    layerType: 'ClusterLayer',
                                    params: {
@@ -740,7 +744,9 @@
                                        lng: item.longitude,
                                        lat: item.latitude,
                                        url: '/img/icon/camera.png',
                                        disableDepthTestDistance: Number.POSITIVE_INFINITY
                                        setStyle: {
                                            disableDepthTestDistance: Number.POSITIVE_INFINITY
                                        }
                                    },
                                    incident: this.siteClick
                                })
@@ -809,6 +815,11 @@
            this.policeStationCheckValue = item.name
            this.selectHouseClass = true
            this.areaOptions = []
            this.housingOptions = []
            this.areaCheckValue = '请选择责任区'
            this.housingCheckValue = '请选择小区'
            if (item.name == "全部") {
                this.clearPolygonLayer()
                cylinderLayer.clear()
@@ -817,18 +828,10 @@
                this.initPoliceStationLayer()
                this.areaOptions = []
                this.housingOptions = []
                this.areaCheckValue = '请选择责任区'
                this.housingCheckValue = '请选择小区'
                this.policeStaionID = ''
            } else {
                cylinderLayer.clear()
                this.getPoliceStationTree(2, item.id)
                this.areaCheckValue = '请选择责任区'
                this.housingCheckValue = '请选择小区'
                this.policeStaionID = item.id
            }
@@ -858,9 +861,8 @@
            if (item.name == "全部") {
                this.initAreaOptionLayer()
            } else {
                this.getPoliceStationTree(3, item.id)
                this.areaChecked = item
                this.getPoliceStationTree(3, item.id)
            }
        },
@@ -951,7 +953,7 @@
        carChange (e) {
            this.$EventBus.$emit('mapClearLayer', {
                layerName: 'carLayers',
                layerName: 'homeCarLayers',
                type: 'VectorLayer'
            })
@@ -964,7 +966,7 @@
        cameraChange (e) {
            this.$EventBus.$emit('mapClearLayer', {
                layerName: 'cameraLayers',
                layerName: 'homeCameraLayers',
                type: 'VectorLayer'
            })
@@ -1843,7 +1845,7 @@
        })
        this.$EventBus.$emit('mapRemoveLayer', {
            layerName: 'carLayers',
            layerName: 'homeCarLayers',
            type: 'VectorLayer'
        })
@@ -1853,7 +1855,7 @@
        })
        this.$EventBus.$emit('mapRemoveLayer', {
            layerName: 'cameraLayers',
            layerName: 'homeCameraLayers',
            type: 'VectorLayer'
        })
src/views/policeInfor/index.vue
@@ -639,7 +639,6 @@
        clickData (item) {
            if (item.ZDDWXZB && item.ZDDWXZB != 0 && item.ZDDWYZB && item.ZDDWYZB != 0) {
                this.$EventBus.$emit('toPosition', {
                    layerName: 'policeSituationyLayers',
                    siteJd: Number(item.ZDDWXZB),
                    siteWd: Number(item.ZDDWYZB)
                })