Merge branch 'master' of http://192.168.0.105:10010/r/srs-police-affairs
13 files modified
1 files renamed
2 files added
| | |
| | | /dist |
| | | /dist.zip |
| | | /public/sd |
| | | /public/sryx |
| | | /vue.config.js |
| | | |
| | | # local env files |
| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2022-09-07 09:34:58 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2023-02-20 10:09:19 |
| | | * @LastEditTime: 2023-02-21 14:16:53 |
| | | * @FilePath: \srs-police-affairs\public\index.html |
| | | * @Description: |
| | | * |
| | |
| | | 信州公安VR指挥平台 |
| | | </title> |
| | | |
| | | <script src="./config.js"></script> |
| | | <script src="./static/config.js"></script> |
| | | |
| | | <script src="./depend/vue.min.js"></script> |
| | | |
| File was renamed from public/config.js |
| | |
| | | /* |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2023-02-21 14:16:56 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2023-02-21 15:02:36 |
| | | * @FilePath: \srs-police-affairs\public\static\config copy.js |
| | | * @Description: |
| | | * |
| | | * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. |
| | | */ |
| | | window.BASE_URL_CONFIG = { |
| | | // 丰图数据 |
| | | // 本地开发 |
| | |
| | | |
| | | // 后台管理跳转地址 |
| | | VUE_APP_OUTER_NET_HTURL: 'http://192.168.0.109:1888', |
| | | VUE_APP_INTRANET_HTURL: 'http://10.141.11.11:8081' |
| | | VUE_APP_INTRANET_HTURL: 'http://10.141.11.11:8081', |
| | | |
| | | |
| | | // 栅格地图的 |
| | | VUE_APP_MAP_YX: 'http://10.141.11.12:18088', |
| | | VUE_APP_MAP_SL: 'http://10.141.11.11:8090', |
| | | } |
| New file |
| | |
| | | /* |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2023-02-21 14:16:56 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2023-02-21 16:27:46 |
| | | * @FilePath: \srs-police-affairs\public\static\config.js |
| | | * @Description: |
| | | * |
| | | * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. |
| | | */ |
| | | window.BASE_URL_CONFIG = { |
| | | // 丰图数据 |
| | | // 本地开发 |
| | | VUE_APP_OUTER_NET: 'http://192.168.0.112:18080', |
| | | // 内网部署 |
| | | VUE_APP_INTRANET: 'http://10.141.11.11:80/twapi', |
| | | |
| | | // 大搜 |
| | | // 本地开发 |
| | | VUE_APP_OUTER_NET_SEARCH: 'http://192.168.0.112:9091', |
| | | // 内网部署 |
| | | VUE_APP_INTRANET_SEARCH: 'http://10.141.11.11:80/bsapi', |
| | | |
| | | // 视频监控平台 |
| | | // 本地开发 |
| | | VUE_APP_OUTER_NET_VIDEO: 'http://192.168.0.126:18185/api', |
| | | // VUE_APP_OUTER_NET_VIDEO: 'http://192.168.0.129:18185/api', |
| | | // 内网部署 |
| | | VUE_APP_INTRANET_VIDEO: 'http://10.141.11.11:18185/api', |
| | | |
| | | // 设备通道号 |
| | | VUE_APP_OUTER_NET_EQUIPMENT: '36110000002009999000', |
| | | VUE_APP_INTRANET_EQUIPMENT: '36110000002009999000', |
| | | |
| | | // 模型地址 |
| | | VUE_APP_OUTER_NET_TILEURL: 'http://192.168.0.112:18080', |
| | | VUE_APP_INTRANET_TILEURL: 'http://10.141.11.11:80/mxapi', |
| | | |
| | | // 后台管理跳转地址 |
| | | VUE_APP_OUTER_NET_HTURL: 'http://192.168.0.109:1888', |
| | | VUE_APP_INTRANET_HTURL: 'http://10.141.11.11:8081', |
| | | |
| | | // 栅格地图的 |
| | | VUE_APP_MAP_YX: 'http://10.141.11.11:80/ysapi', |
| | | VUE_APP_MAP_SL: 'http://10.141.11.11:80/slapi', |
| | | } |
| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2022-08-18 17:00:30 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2023-02-20 09:01:16 |
| | | * @LastEditTime: 2023-02-21 16:27:22 |
| | | * @FilePath: \srs-police-affairs\src\components\map\index.vue |
| | | * @Description: 公用地图组件 |
| | | * |
| | |
| | | 'EPSG:4490_test:16', |
| | | 'EPSG:4490_test:17', |
| | | 'EPSG:4490_test:18', |
| | | 'EPSG:4490_test:19', |
| | | 'EPSG:4490_test:20', |
| | | 'EPSG:4490_test:21', |
| | | 'EPSG:4490_test:22', |
| | |
| | | // global.viewer.addTerrain(terrain) |
| | | |
| | | // 内网 |
| | | // that.switchImg() |
| | | that.switchImg() |
| | | |
| | | // 外网 |
| | | global.viewer.imageryLayers.addImageryProvider( |
| | | new global.DC.Namespace.Cesium.UrlTemplateImageryProvider({ |
| | | url: 'http://t{s}.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=e45274b0235bb913eceb393aabbf9c9c', |
| | | 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: '/sryx/{z}/{x}/{y}.png', |
| | | }) |
| | | ) |
| | | |
| | | global.viewer.imageryLayers.addImageryProvider( |
| | | new global.DC.Namespace.Cesium.UrlTemplateImageryProvider({ |
| | | url: '/sryx/{z}/{x}/{y}.png', |
| | | }) |
| | | ) |
| | | |
| | |
| | | baseLayers != null && global.viewer.imageryLayers.remove(baseLayers) |
| | | baseLayers = global.viewer.imageryLayers.addImageryProvider( |
| | | new global.DC.Namespace.Cesium.WebMapTileServiceImageryProvider({ |
| | | url: "http://10.141.11.11:80/ysapi/geoserver/gwc/service/wmts", |
| | | url: `${window.VUE_APP_MAP_YX}/geoserver/gwc/service/wmts`, |
| | | layer: "test", |
| | | style: "", |
| | | format: "image/png", |
| | |
| | | baseLayers != null && global.viewer.imageryLayers.remove(baseLayers) |
| | | baseLayers = global.viewer.imageryLayers.addImageryProvider( |
| | | new global.DC.Namespace.Cesium.WebMapTileServiceImageryProvider({ |
| | | url: "http://10.141.11.11:8090/MapTileService/wmts?STORETYPE=merged-dat&PROJECTION=4326", |
| | | url: ` ${window.VUE_APP_MAP_SL}/MapTileService/wmts?STORETYPE=merged-dat&PROJECTION=4326`, |
| | | layer: "wmts_4326_361100", |
| | | style: "default", |
| | | format: "image/png", |
| | |
| | | }, |
| | | //刷新token |
| | | refreshToken ({ state, commit }, userInfo) { |
| | | window.console.log('handle refresh token') |
| | | return new Promise((resolve, reject) => { |
| | | refreshToken(state.refreshToken, state.tenantId, |
| | | !validatenull(userInfo) ? userInfo.deptId : state.userInfo.dept_id, |
| | |
| | | let obj = {}, |
| | | content |
| | | obj = window.sessionStorage.getItem(name) |
| | | console.log(obj, 456) |
| | | if (validatenull(obj)) obj = window.localStorage.getItem(name) |
| | | if (validatenull(obj)) return |
| | | try { |
| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2022-08-18 16:18:17 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2023-02-14 15:28:15 |
| | | * @LastEditTime: 2023-02-21 16:54:00 |
| | | * @FilePath: \srs-police-affairs\src\views\activity\index.vue |
| | | * @Description: 安保活动 |
| | | * |
| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2023-01-13 15:52:59 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2023-02-15 16:01:18 |
| | | * @LastEditTime: 2023-02-21 17:20:18 |
| | | * @FilePath: \srs-police-affairs\src\views\home\components\bottomContainer.vue |
| | | * @Description: |
| | | * |
| | |
| | | }) |
| | | |
| | | // this.policeSituationRealtimeArr = [{ |
| | | // ZDDWXZB: 112, |
| | | // ZDDWYZB: 25, |
| | | // ZDDWXZB: 117.97, |
| | | // ZDDWYZB: 28.45, |
| | | // JJDWMC: '信州公安局派出所', |
| | | // JJYXM: '欧阳西门', |
| | | // BJSJ: '2022-12-12 12:12:12', |
| | |
| | | // this.policeSituationRealtimeArr = this.policeSituationRealtimeArr.map((item, index) => { |
| | | // return { ...item, index: index + 1, lng: item.ZDDWXZB, lat: item.ZDDWYZB } |
| | | // }) |
| | | |
| | | // this.$emit('policeSituationChange') |
| | | }, |
| | | |
| | | // 获取历史接警记录 |
| | |
| | | countArr.push({ value: item.count, id: item.id }) |
| | | }) |
| | | landData = [nameArr, countArr] |
| | | |
| | | |
| | | this.$emit('createCyLinder', res.data.data) |
| | | } else if (type == 1) { |
| | | // this.areaNum = res.data.data.areaNum |
| | | // this.villageNum = res.data.data.villageNum |
| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2022-08-18 16:18:17 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2023-02-20 09:19:10 |
| | | * @LastEditTime: 2023-02-21 16:52:21 |
| | | * @FilePath: \srs-police-affairs\src\views\home\index.vue |
| | | * @Description: 小区-栋-层-房屋 |
| | | * |
| | |
| | | <div class="home-page container"> |
| | | <left-container |
| | | class="left-container" |
| | | @createCyLinder="createCyLinder" |
| | | @showpeopledetail="showpeopledetail" |
| | | @showlanddetail="showlanddetail" |
| | | @showkeypersondetail="showkeypersondetail" |
| | |
| | | ></bottom-container> |
| | | |
| | | <div class="center-container"> |
| | | <div class="layers-control-btn house"> |
| | | <el-checkbox v-model="houseLayerShow" @change="houseChange">小区</el-checkbox> |
| | | <div class="layers-control-btn area"> |
| | | <el-checkbox v-model="areaPolygonLayerShow" @change="areaPolygonChange">辖区</el-checkbox> |
| | | </div> |
| | | <!-- <div class="layers-control-btn house"> |
| | | <el-checkbox v-model="houseLayerShow" @change="houseChange">小区</el-checkbox> |
| | | </div>--> |
| | | <div class="layers-control-btn car"> |
| | | <el-checkbox v-model="carLayerShow" @change="carChange">警车</el-checkbox> |
| | | </div> |
| | |
| | | |
| | | data () { |
| | | return { |
| | | // 是否显示辖区 |
| | | areaPolygonLayerShow: true, |
| | | selectAllClass: false, |
| | | // 是否显示第一级select |
| | | houseLayerShow: true, |
| | |
| | | cameraLayerShow: false, |
| | | monitoringLayerShow: false, |
| | | panoramaLayerShow: false, |
| | | policeSituationLayerShow: false, |
| | | policeSituationLayerShow: true, |
| | | panoramaTitle: '', |
| | | panoramaVrUrl: '', |
| | | equimentTitle: '', |
| | |
| | | name: '1号全景', |
| | | lng: 116.027625, |
| | | lat: 28.677213, |
| | | alt: 100, |
| | | alt: 1, |
| | | url: '/img/icon/map-panorama.png' |
| | | }], |
| | | activityList: [], |
| | |
| | | if (item.id == this.userInfo.dept_id) currentItem = item |
| | | }) |
| | | |
| | | this.initAreaOptionLayer(currentItem) |
| | | this.getPoliceStationTree(2, this.userInfo.dept_id) |
| | | this.policeStaionChecked = currentItem |
| | | |
| | |
| | | |
| | | } else if (type == 2) { |
| | | this.areaOptions = res.data.data |
| | | |
| | | this.initAreaOptionLayer() |
| | | |
| | | this.areaOptions.unshift({ |
| | | name: '全部', |
| | |
| | | params: { |
| | | lng: positionArr[0], |
| | | lat: positionArr[1], |
| | | alt: 50, |
| | | alt: 1, |
| | | url: '/img/icon/house.png', |
| | | id: item.id |
| | | }, |
| | |
| | | let position = [] |
| | | res.data.data.forEach(item => { |
| | | position = JSON.parse(item.geom).coordinates |
| | | this.houseList.push({ name: `${item.aoi_name}`, lng: `${position[0]}`, lat: `${position[1]}`, alt: 200, url: '/img/icon/house.png' }) |
| | | this.houseList.push({ name: `${item.aoi_name}`, lng: `${position[0]}`, lat: `${position[1]}`, alt: 1, url: '/img/icon/house.png' }) |
| | | }) |
| | | this.houseChange(true) |
| | | }) |
| | |
| | | this.policeStaionID = '' |
| | | } else { |
| | | cylinderLayer.clear() |
| | | this.initAreaOptionLayer(item) |
| | | this.getPoliceStationTree(2, item.id) |
| | | this.areaCheckValue = '请选择责任区' |
| | | this.housingCheckValue = '请选择小区' |
| | | this.getPoliceStationTree(2, item.id) |
| | | |
| | | this.policeStaionID = item.id |
| | | } |
| | |
| | | areaSelect (item) { |
| | | this.areaCheckValue = item.name |
| | | if (item.name == "全部") { |
| | | this.initAreaOptionLayer(this.policeStaionChecked) |
| | | this.initAreaOptionLayer() |
| | | this.housingOptions = [] |
| | | this.housingCheckValue = '请选择小区' |
| | | } else { |
| | | this.housingCheckValue = '请选择小区' |
| | | this.getPoliceStationTree(3, item.id) |
| | | this.areaChecked = item |
| | | this.initAreaOptionLayer(item) |
| | | this.initAreaOptionLayer() |
| | | } |
| | | }, |
| | | |
| | |
| | | }, |
| | | |
| | | /** |
| | | * @description: 辖区是否展示,默认展示 |
| | | * @param {*} e |
| | | * @return {*} |
| | | */ |
| | | areaPolygonChange (e) { |
| | | if (e == true) { |
| | | DataSourcesArray.forEach(i => i.show = true) |
| | | } else { |
| | | DataSourcesArray.forEach(i => i.show = false) |
| | | } |
| | | }, |
| | | |
| | | /** |
| | | * @description: 小区是否展示 |
| | | * @param {*} e |
| | | * @return {*} |
| | |
| | | } |
| | | }, |
| | | |
| | | createCyLinder (res) { |
| | | console.log(res, 9599999) |
| | | }, |
| | | |
| | | houseSiteClick (e) { |
| | | this.$router.push({ path: '/layout/house', query: { id: e.overlay.attrParams.id } }) |
| | | }, |
| | |
| | | ...item, |
| | | lng: item.longitude, |
| | | lat: item.latitude, |
| | | alt: 100, |
| | | alt: 1, |
| | | url: '/img/icon/car.png' |
| | | }, |
| | | incident: this.phoneSiteClick |
| | |
| | | ...item, |
| | | lng: item.longitude, |
| | | lat: item.latitude, |
| | | alt: 100, |
| | | alt: 1, |
| | | url: '/img/icon/camera.png' |
| | | }, |
| | | incident: this.siteClick |
| | |
| | | } |
| | | }, |
| | | |
| | | policeSituationChange () { |
| | | this.policeSituationSelectChange() |
| | | circleLayer.clear() |
| | | circleLayer.remove() |
| | | circleLayer = null |
| | | circleLayer = new global.DC.PrimitiveLayer('circleLayer') |
| | | global.viewer.addLayer(circleLayer) |
| | | async policeSituationChange () { |
| | | await this.policeSituationSelectChange() |
| | | if (circleLayer && circleLayer != null && circleLayer != '' && circleLayer != undefined) { |
| | | circleLayer.clear() |
| | | circleLayer.remove() |
| | | circleLayer = null |
| | | circleLayer = new global.DC.PrimitiveLayer('circleLayer') |
| | | global.viewer.addLayer(circleLayer) |
| | | } |
| | | |
| | | if (this.policeSituationLayerShow == true) { |
| | | this.policeSituationList.forEach((item, index) => { |
| | | let center = new global.DC.Position(item.lng, item.lat) |
| | |
| | | policeSituationSelectChange () { |
| | | let showArr = [] |
| | | |
| | | if (this.policeSituationHistoryType == 0) { |
| | | showArr = this.$refs.bottomContainer.chooseRealData() |
| | | } else { |
| | | showArr = this.$refs.bottomContainer.chooseTimeDate() |
| | | } |
| | | this.$nextTick(() => { |
| | | if (this.policeSituationHistoryType == 0) { |
| | | showArr = this.$refs.bottomContainer.chooseRealData() |
| | | } else { |
| | | showArr = this.$refs.bottomContainer.chooseTimeDate() |
| | | } |
| | | |
| | | showArr.forEach((item, index) => { |
| | | item.lng = Number(item.lng) |
| | | item.lat = Number(item.lat) |
| | | item.url = '/img/icon/jq.png' |
| | | showArr.forEach((item, index) => { |
| | | item.lng = Number(item.lng) |
| | | item.lat = Number(item.lat) |
| | | item.url = '/img/icon/jq.png' |
| | | }) |
| | | |
| | | this.policeSituationList = showArr |
| | | }) |
| | | |
| | | this.policeSituationList = showArr |
| | | }, |
| | | |
| | | siteClick (e) { |
| | |
| | | params: { |
| | | lng: center[0], |
| | | lat: center[1], |
| | | alt: 0, |
| | | alt: 1, |
| | | text: item.housingsName |
| | | }, |
| | | distanceDisplayCondition: { "near": 0, "far": 200000 } |
| | |
| | | |
| | | arr.push(arr[0]) |
| | | |
| | | return this.$turf.centroid(this.$turf.polygon([arr])).geometry.coordinates |
| | | if (arr.length == 1) { |
| | | return arr[0] |
| | | } else if (arr.length == 2) { |
| | | |
| | | return this.$turf.centroid(this.$turf.midpoint(this.$turf.point(arr[0]), this.$turf.point(arr[1]))).geometry.coordinates |
| | | } else { |
| | | arr.push(arr[0]) |
| | | |
| | | return this.$turf.centroid(this.$turf.polygon([arr])).geometry.coordinates |
| | | } |
| | | }, |
| | | |
| | | drawText (style) { |
| | | const text = style.text |
| | | var c = document.createElement("canvas") |
| | | const d = (text + "").length * style.fontSize |
| | | c.width = d |
| | | c.height = style.fontSize |
| | | var ctx = c.getContext("2d") |
| | | |
| | | ctx.fillStyle = style.color |
| | | ctx.font = "bold " + style.fontSize + "px 微软雅黑" //设置字体 |
| | | ctx.textBaseline = 'hanging' //在绘制文本时使用的当前文本基线 |
| | | //绘制文本 |
| | | ctx.fillText(text, 0, 0) |
| | | return c |
| | | }, |
| | | |
| | | // 加载面数据的方法 |
| | | initPoliceStationLayer () { |
| | | const that = this |
| | | cylinderLayer = new global.DC.PrimitiveLayer('cylinderLayer') |
| | | global.viewer.addLayer(cylinderLayer) |
| | | |
| | |
| | | strokeWidth: 0, |
| | | }).then(function (dataSource) { |
| | | DataSourcesArray.push(dataSource) |
| | | that.areaPolygonLayerShow == false ? dataSource.show = false : dataSource.show = true |
| | | global.viewer.dataSources.add(dataSource) |
| | | }) |
| | | |
| | |
| | | |
| | | const center = this.getRegionCenter(item.position) |
| | | |
| | | this.$EventBus.$emit('layerPointAdd', { |
| | | layerName: 'polygonLayer', |
| | | type: 'label', |
| | | params: { |
| | | lng: center[0], |
| | | lat: center[1], |
| | | alt: 1, |
| | | text: item.name, |
| | | outW: 20 |
| | | }, |
| | | distanceDisplayCondition: { "near": 0, "far": 200000 } |
| | | }) |
| | | |
| | | |
| | | // this.$EventBus.$emit('layerPointAdd', { |
| | | // layerName: 'polygonLayer', |
| | |
| | | // lng: center[0], |
| | | // lat: center[1], |
| | | // alt: 0, |
| | | // text: item.policeStationName, |
| | | // text: `${item.name}`, |
| | | // outW: 20 |
| | | // }, |
| | | // distanceDisplayCondition: { "near": 0, "far": 200000 } |
| | | // }) |
| | | // let cylinder = new global.DC.LightCylinderPrimitive(new global.DC.Position(center[0] + 0.02, center[1] - 0.01), 1200, 1, 600) |
| | | |
| | | this.$EventBus.$emit('layerPolygonAdd', { |
| | | layerName: 'polygonLayer', |
| | | positions: `${center[0] - 0.01},${center[1] - 0.0020}; |
| | | ${center[0] + 0.01},${center[1] - 0.0020}; |
| | | ${center[0] + 0.01},${center[1] + 0.0020}; |
| | | ${center[0] - 0.01},${center[1] + 0.0020};`, |
| | | material: new global.DC.Namespace.Cesium.ImageMaterialProperty({ |
| | | image: that.drawText({ |
| | | fontSize: 16, |
| | | color: 'red', |
| | | text: item.name |
| | | }), |
| | | transparent: true, |
| | | color: global.DC.Namespace.Cesium.Color.WHITE |
| | | }), |
| | | }) |
| | | |
| | | // this.$EventBus.$emit('layerPointAdd', { |
| | | // layerName: 'personNumLayer', |
| | | // type: 'label', |
| | | // params: { |
| | | // lng: center[0], |
| | | // lat: center[1], |
| | | // alt: 1, |
| | | // text: `${item.num}`, |
| | | // outW: 20 |
| | | // }, |
| | | // distanceDisplayCondition: { "near": 0, "far": 160000 } |
| | | // }) |
| | | |
| | | // let cylinder = new global.DC.LightCylinderPrimitive(new global.DC.Position(center[0], center[1]), 600, 1, 300) |
| | | // cylinder.setStyle({ |
| | | // color: global.DC.Namespace.Cesium.Color.fromBytes( |
| | | // 102, 176, 255, |
| | | // 2, 27, 121, |
| | | // 255 |
| | | // ) |
| | | // }) |
| | |
| | | } |
| | | |
| | | }) |
| | | |
| | | |
| | | |
| | | const center = this.getAllRegionCenter(this.policeStationOptions) |
| | | |
| | |
| | | this.houseChange(true) |
| | | }, |
| | | |
| | | initAreaOptionLayer (item) { |
| | | initAreaOptionLayer () { |
| | | const that = this |
| | | this.clearPolygonLayer() |
| | | item.position.forEach((sourceItem, index) => { |
| | | this.areaOptions.forEach((item, index) => { |
| | | |
| | | item.position.forEach(sourceItem => { |
| | | const Json = { ...JSON.parse(sourceItem) } |
| | | global.DC.Namespace.Cesium.GeoJsonDataSource.load(Json, { |
| | | stroke: positionColor[index], |
| | | fill: positionColor[index], //注意:颜色必须大写,即不能为blue |
| | | strokeWidth: 0, |
| | | }).then(function (dataSource) { |
| | | DataSourcesArray.push(dataSource) |
| | | |
| | | const Json = { ...JSON.parse(sourceItem) } |
| | | global.DC.Namespace.Cesium.GeoJsonDataSource.load(Json, { |
| | | stroke: positionColor[index], |
| | | fill: positionColor[index], //注意:颜色必须大写,即不能为blue |
| | | strokeWidth: 0, |
| | | }).then(function (dataSource) { |
| | | DataSourcesArray.push(dataSource) |
| | | global.viewer.dataSources.add(dataSource) |
| | | that.areaPolygonLayerShow == false ? dataSource.show = false : dataSource.show = true |
| | | |
| | | global.viewer.dataSources.add(dataSource) |
| | | }) |
| | | }) |
| | | |
| | | |
| | | // const center = this.getRegionCenter(item.position) |
| | | // this.$EventBus.$emit('layerPointAdd', { |
| | | // layerName: 'personNumLayer', |
| | | // type: 'label', |
| | | // params: { |
| | | // lng: center[0], |
| | | // lat: center[1], |
| | | // alt: 200, |
| | | // text: `${item.num}`, |
| | | // outW: 20 |
| | | // }, |
| | | // distanceDisplayCondition: { "near": 0, "far": 160000 } |
| | | // }) |
| | | |
| | | // let cylinder = new global.DC.LightCylinderPrimitive(new global.DC.Position(center[0], center[1]), 200, 1, 50) |
| | | // cylinder.setStyle({ |
| | | // color: global.DC.Namespace.Cesium.Color.fromBytes( |
| | | // 2, 27, 121, |
| | | // 255 |
| | | // ) |
| | | // }) |
| | | // cylinderLayer.addOverlay(cylinder) |
| | | }) |
| | | |
| | | const center = this.getRegionCenter(item.position) |
| | | const center = this.getAllRegionCenter(this.areaOptions) |
| | | |
| | | this.$EventBus.$emit('toPosition', { |
| | | siteJd: center[0], |
| | | siteWd: center[1], |
| | | siteGd: 15000, |
| | | siteJd: center[0] + 0.008, |
| | | siteWd: center[1] - 0.13, |
| | | siteGd: 12000, |
| | | siteHeading: -3, |
| | | sitePitch: -90 |
| | | sitePitch: -45 |
| | | }) |
| | | }, |
| | | |
| | |
| | | layerName: 'polygonLayer', |
| | | type: 'VectorLayer' |
| | | }) |
| | | |
| | | this.$EventBus.$emit('mapClearLayer', { |
| | | layerName: 'personNumLayer', |
| | | type: 'VectorLayer' |
| | | }) |
| | | |
| | | // cylinderLayer.clear() |
| | | }, |
| | | |
| | | getAreaCenter (name) { |
| | |
| | | data.forEach(e => { |
| | | e.lng = e.longitude |
| | | e.lat = e.latitude |
| | | e.alt = 100 |
| | | e.alt = 1 |
| | | e.url = '/img/icon/map-panorama.png' |
| | | }) |
| | | this.panoramaList = data |
| | |
| | | destroyed () { |
| | | this.clearPolygonLayer() |
| | | |
| | | // cylinderLayer != null && cylinderLayer != undefined && cylinderLayer != '' && cylinderLayer.remove() |
| | | |
| | | this.$store.commit('SET_DETAILSPOPUP', { |
| | | showBox: false, |
| | | showBtn: false |
| | |
| | | } |
| | | } |
| | | |
| | | .area { |
| | | :deep(.el-checkbox__inner) { |
| | | background: rgb(190, 143, 89); |
| | | border-color: rgb(190, 143, 89); |
| | | } |
| | | |
| | | :deep(.is-checked) { |
| | | .el-checkbox__inner { |
| | | background: rgb(182, 97, 0); |
| | | border-color: rgb(182, 97, 0); |
| | | } |
| | | } |
| | | } |
| | | |
| | | .car { |
| | | :deep(.el-checkbox__inner) { |
| | | background: rgb(79, 114, 252); |
| | |
| | | this.allHouseFloorList.push(newArr) |
| | | }) |
| | | this.unitHouseChoosed = this.allHouseFloorList[0] |
| | | console.log(this.unitHouseChoosed, 2222) |
| | | if (aoiArr) { |
| | | this.unitHouseChoosed.forEach((item, index) => { |
| | | let aoiHeight = aoiArr[1] |
| | |
| | | debug: true |
| | | }) || {} |
| | | const date = calcDate(token.datetime, new Date().getTime()) |
| | | console.log(6688, date, token) |
| | | if (validatenull(date)) return |
| | | if (date.seconds >= 3000 && !this.refreshLock) { |
| | | this.refreshLock = true |
| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2022-08-18 16:18:17 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2023-02-17 16:59:08 |
| | | * @LastEditTime: 2023-02-21 16:54:24 |
| | | * @FilePath: \srs-police-affairs\src\views\police\index.vue |
| | | * @Description: 辖区管理 |
| | | * |
| | |
| | | }, |
| | | |
| | | async play (row) { |
| | | console.log(row, 456) |
| | | if (this.flvPlayer != null) { |
| | | this.flvPlayer.pause() |
| | | this.flvPlayer.unload() |