1 files modified
1 files deleted
| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2022-08-18 16:18:17 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2022-09-19 18:29:26 |
| | | * @LastEditTime: 2022-09-20 10:01:44 |
| | | * @FilePath: \srs-police-affairs\src\views\home\index.vue |
| | | * @Description: 小区-栋-层-房屋 |
| | | * |
| | |
| | | } |
| | | }, |
| | | created () { |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | }, |
| | | mounted () { |
| | | this.initPersonEcharts() |
| | |
| | | this.initEventCountEcharts() |
| | | |
| | | this.$nextTick(() => { |
| | | let positionColor = [ |
| | | global.DC.Namespace.Cesium.Color.fromBytes( |
| | | 3, |
| | | 255, |
| | | 13, |
| | | 100 |
| | | ), |
| | | global.DC.Namespace.Cesium.Color.fromBytes( |
| | | 102, 176, 255, |
| | | 100 |
| | | ), |
| | | global.DC.Namespace.Cesium.Color.fromBytes( |
| | | 230, 162, 60, |
| | | 100 |
| | | ), |
| | | global.DC.Namespace.Cesium.Color.fromBytes( |
| | | 245, 108, 108, |
| | | 100 |
| | | ), |
| | | global.DC.Namespace.Cesium.Color.fromBytes( |
| | | 139, 195, 74, |
| | | 100 |
| | | ), |
| | | global.DC.Namespace.Cesium.Color.fromBytes( |
| | | 244, 67, 54, |
| | | 100 |
| | | ), |
| | | ] |
| | | let position = [ |
| | | [ |
| | | [115.935114, 28.627012, 100], |
| | | [115.930150, 28.733535, 100], |
| | | [115.986738, 28.683523, 100], |
| | | [116.015526, 28.647454, 100], |
| | | ], |
| | | [ |
| | | [115.935114, 28.627012, 100], |
| | | [116.015526, 28.647454, 100], |
| | | [116.080062, 28.590419, 100], |
| | | [116.075505, 28.528672, 100], |
| | | [115.959503, 28.530546, 100], |
| | | ], |
| | | [ |
| | | [116.080062, 28.590419, 100], |
| | | [116.075505, 28.528672, 100], |
| | | [116.167934, 28.527504, 100], |
| | | [116.346666, 28.615709, 100], |
| | | ], |
| | | [ |
| | | [116.015526, 28.647454, 100], |
| | | [116.080062, 28.590419, 100], |
| | | [116.346666, 28.615709, 100], |
| | | [116.285670, 28.732610, 100], |
| | | ], |
| | | [ |
| | | [116.015526, 28.647454, 100], |
| | | [116.285670, 28.732610, 100], |
| | | [116.085312, 28.807226, 100], |
| | | [115.930150, 28.733535, 100], |
| | | [115.986738, 28.683523, 100] |
| | | ] |
| | | ] |
| | | |
| | | position.forEach((item) => { |
| | | position.forEach((item, index) => { |
| | | let str = '' |
| | | item.forEach(it => { |
| | | str = str + `${it[0]},${it[1]},${it[2]};` |
| | |
| | | this.$EventBus.$emit('layerPolygonAdd', { |
| | | layerName: 'polygonLayer', |
| | | positions: str, |
| | | material: global.DC.Namespace.Cesium.Color.fromBytes( |
| | | 3, |
| | | 255, |
| | | 13, |
| | | 10 |
| | | ), |
| | | material: positionColor[index], |
| | | }) |
| | | }) |
| | | }) |
| | |
| | | |
| | | option && myChart.setOption(option) |
| | | }, |
| | | <<<<<<< HEAD |
| | | tableRowClassName () { |
| | | // if ((rowIndex + 1) % 2 === 0) { |
| | | return "aa" |
| | | // } else { |
| | | // return "background:rgba(0,8,1,0.1)" |
| | | // } |
| | | }, |
| | | |
| | | houseChange (e) { |
| | | if (e == true) { |
| | | this.$EventBus.$emit('addMxTileset', { |
| | |
| | | }) |
| | | } |
| | | } |
| | | ======= |
| | | >>>>>>> 0296d220b566f61bbedd8f422bbf3f03b5641a47 |
| | | } |
| | | }, |
| | | |
| | | destroyed () { |
| | | this.$EventBus.$emit('mapClearLayer', { |
| | | layerName: 'polygonLayer', |
| | | type: 'VectorLayer' |
| | | }) |
| | | |
| | | this.$EventBus.$emit('removeMxTileset', { |
| | | titlesetName: 'sdTilesetLayer' |
| | | }) |
| | | }, |
| | | } |
| | | </script> |
| | | |