Merge remote-tracking branch 'origin/main'
3 files modified
2 files added
| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2024-10-31 10:47:29 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2024-12-02 19:46:13 |
| | | * @LastEditTime: 2024-12-02 21:12:23 |
| | | * @FilePath: \bigScreen\src\pages\map\components\scomponents\layersControl.vue |
| | | * @Description: |
| | | * |
| | |
| | | children: [ |
| | | // 给水管网、污水管网、燃气管网、雨水管网 |
| | | { |
| | | id: '3-3-1', |
| | | label: '给水管网', |
| | | type: 'layer', |
| | | subType: 'geojsonPipe', |
| | | layerName: 'gsgw', |
| | | source: gsgw, |
| | | color: DC.Color.BLUE.withAlpha(0.9), |
| | | height: 65, |
| | | }, |
| | | { |
| | | id: '3-3-2', |
| | | label: '污水管网', |
| | | type: 'layer', |
| | |
| | | layerName: 'wsgw', |
| | | source: wsgw, |
| | | color: DC.Color.DARKBLUE.withAlpha(0.9), |
| | | height: 68, |
| | | }, |
| | | { |
| | | id: '3-3-3', |
| | | label: '燃气管网', |
| | | type: 'layer', |
| | | subType: 'geojsonPipe', |
| | | layerName: 'rqgw', |
| | | source: rqgw, |
| | | color: DC.Color.RED.withAlpha(0.9), |
| | | height: 71, |
| | | height: 60.2, |
| | | }, |
| | | { |
| | | id: '3-3-4', |
| | |
| | | layerName: 'ysgw', |
| | | source: ysgw, |
| | | color: DC.Color.CYAN.withAlpha(0.9), |
| | | height: 75, |
| | | height: 60, |
| | | }, |
| | | { |
| | | id: '3-3-1', |
| | | label: '给水管网', |
| | | type: 'layer', |
| | | subType: 'geojsonPipe', |
| | | layerName: 'gsgw', |
| | | source: gsgw, |
| | | color: DC.Color.BLUE.withAlpha(0.9), |
| | | height: 60.4, |
| | | }, |
| | | { |
| | | id: '3-3-3', |
| | | label: '燃气管网', |
| | | type: 'layer', |
| | | subType: 'geojsonPipe', |
| | | layerName: 'rqgw', |
| | | source: rqgw, |
| | | color: DC.Color.RED.withAlpha(0.9), |
| | | height: 60.6, |
| | | }, |
| | | ] |
| | | }, |
| | |
| | | }, |
| | | showParams: 'category', |
| | | className: 'fxy-ordinary', |
| | | backgroundIcon: VITE_APP_BASE + 'img/mapicon/fxy.png', |
| | | backgroundIcon: VITE_APP_BASE + 'img/mapicon/fxy-yb.png', |
| | | showPanel: false, |
| | | layerName: 'fxyOrdinary', |
| | | incident: (e) => { |
| | |
| | | }, |
| | | showParams: 'category', |
| | | className: 'fxy-larger', |
| | | backgroundIcon: VITE_APP_BASE + 'img/mapicon/fxy.png', |
| | | backgroundIcon: VITE_APP_BASE + 'img/mapicon/fxy-jd.png', |
| | | showPanel: false, |
| | | layerName: 'fxyLarger', |
| | | incident: (e) => { |
| | |
| | | // }) |
| | | addTileLayers[item.layerName] = [] |
| | | item.urlData.forEach((m, ind) => { |
| | | let tile = new DC.Tileset(m.url, { |
| | | addTileLayers[item.layerName][ind] = new DC.Tileset(m.url, { |
| | | maximumMemoryUsage: 1024, |
| | | maximumScreenSpaceError: 8, |
| | | skipLevels: 5, |
| | |
| | | progressiveResolutionHeightFraction: 0.5, |
| | | baseScreenSpaceError: 1024 |
| | | }) |
| | | tile.setSplitDirection(1) |
| | | addTileLayers[item.layerName][ind].setSplitDirection(1) |
| | | // tile.setHeight(-420) |
| | | // tile.setSplitDirection(-1) |
| | | window.$viewer.sceneSplit.addTileset(tile) |
| | | tileLayers.addOverlay(tile) |
| | | window.$viewer.sceneSplit.addTileset(addTileLayers[item.layerName][ind]) |
| | | tileLayers.addOverlay(addTileLayers[item.layerName][ind]) |
| | | window.$viewer.sceneSplit.enable = false |
| | | addTileLayers[item.layerName][ind] = tile |
| | | }) |
| | | } else { |
| | | addTileLayers[item.layerName].forEach(m => m.show = true) |
| | |
| | | item.source.features.forEach(i => { |
| | | let polylineVolume = new DC.PolylineVolume( |
| | | i.geometry.coordinates.map(d => [d[0], d[1], item.height].join(',')).join(';'), |
| | | computeCircle(2) |
| | | computeCircle(1.6) |
| | | ) |
| | | |
| | | polylineVolume.setStyle({ |
| | |
| | | } |
| | | |
| | | onUnmounted(() => { |
| | | if (tileLayers) { |
| | | tileLayers.clear() |
| | | window.$viewer && window.$viewer.removeLayer(tileLayers) |
| | | tileLayers = null |
| | | } |
| | | |
| | | let arr = Object.keys(addTileLayers) |
| | | arr.forEach(i => { |
| | | if (i == 'hgyq') { |
| | | tileLayers.removeOverlay(addTileLayers[i]) |
| | | addTileLayers[i] = null |
| | | delete addTileLayers[i] |
| | | } else { |
| | |
| | | } |
| | | }) |
| | | addTileLayers = null |
| | | |
| | | if (tileLayers) { |
| | | tileLayers.remove() |
| | | window.$viewer && window.$viewer.removeLayer(tileLayers) |
| | | tileLayers = null |
| | | } |
| | | // 弹窗销毁 |
| | | destroy() |
| | | addPupoLayers = null |
| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2024-11-04 16:32:04 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2024-11-27 15:44:25 |
| | | * @LastEditTime: 2024-12-02 21:00:44 |
| | | * @FilePath: \bigScreen\src\views\survey\components\box\dataContent.vue |
| | | * @Description: |
| | | * |
| | |
| | | }) |
| | | |
| | | myEcharts.chart.setOption({ |
| | | tooltip: { |
| | | trigger: "axis", |
| | | axisPointer: { |
| | | type: "shadow", |
| | | }, |
| | | }, |
| | | tooltip: {}, |
| | | grid: { |
| | | top: "6%", |
| | | left: "6%", |
| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2024-10-25 10:56:27 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2024-12-01 21:17:55 |
| | | * @LastEditTime: 2024-12-02 19:53:54 |
| | | * @FilePath: \bigScreen\vite.config.js |
| | | * @Description: |
| | | * |
| | |
| | | rewrite: path => path.replace(/^\/zhyq\/newMx/, ''), |
| | | }, |
| | | |
| | | // '/zhyq/mx': { |
| | | // // target: 'http://localhost', |
| | | // target: 'https://wrj.shuixiongit.com/zhyq/mx', |
| | | // changeOrigin: true, |
| | | // rewrite: path => path.replace(/^\/zhyq\/mx/, ''), |
| | | // }, |
| | | '/zhyq/mx': { |
| | | // target: 'http://localhost', |
| | | target: 'https://wrj.shuixiongit.com/zhyq/mx', |
| | | changeOrigin: true, |
| | | rewrite: path => path.replace(/^\/zhyq\/mx/, ''), |
| | | }, |
| | | |
| | | '/zhyqapi': { |
| | | // target: 'http://localhost:8082', |