| src/views/companyInfo/components/box/fireSource.vue | ●●●●● patch | view | raw | blame | history | |
| src/views/companyInfo/index.vue | ●●●●● patch | view | raw | blame | history |
src/views/companyInfo/components/box/fireSource.vue
@@ -2,7 +2,7 @@ * @Author: shuishen 1109946754@qq.com * @Date: 2023-03-13 14:54:26 * @LastEditors: shuishen 1109946754@qq.com * @LastEditTime: 2024-11-27 15:40:42 * @LastEditTime: 2024-12-25 11:36:30 * @FilePath: \bigScreen\src\views\companyInfo\components\box\fireSource.vue * @Description: * @@ -18,7 +18,9 @@ :preview-src-list="[data.companyInfo.imageUrls]" :initial-index="4" fit="cover"> <template #error> <div class="image-slot"> <el-icon><Picture /></el-icon> <el-icon> <Picture /> </el-icon> </div> </template> </el-image> @@ -134,7 +136,7 @@ getDetail() }) function getDetail() { function getDetail () { getfirmInfoDetail({ id: data.companyInfo.id }).then(res => { @@ -145,6 +147,21 @@ rescueTeamList.value.forEach(item => { data.companyInfo[item.name] && (item.content = data.companyInfo[item.name]) }) let lng = companyInfoList.value.find(i => i.name == 'lng' && i.content != '') let lat = companyInfoList.value.find(i => i.name == 'lat' && i.content != '') if (lng && lat) { window.$viewer.zoomToPosition(new DC.Position( lng.content, lat.content, 400, 0, -90, 0 ), () => { }) } }).catch(err => { }) } src/views/companyInfo/index.vue
@@ -2,7 +2,7 @@ * @Author: shuishen 1109946754@qq.com * @Date: 2024-11-08 11:00:30 * @LastEditors: shuishen 1109946754@qq.com * @LastEditTime: 2024-11-27 19:16:37 * @LastEditTime: 2024-12-25 11:30:12 * @FilePath: \bigScreen\src\views\companyInfo\index.vue * @Description: * @@ -26,19 +26,19 @@ window.$viewer.addLayer(curCompanyWall) data.companyInfo = JSON.parse(localStorage.getItem('companyInfo')) let curCompany = qyfw.features.find(item => item.properties.name == data.companyInfo.name) // let curCompany = qyfw.features.find(item => item.properties.name == data.companyInfo.name) let wall = new DC.Wall( curCompany.geometry.coordinates[0].map(d => [...d, 125].join(',')).join(';') ) // let wall = new DC.Wall( // curCompany.geometry.coordinates[0].map(d => [...d, 125].join(',')).join(';') // ) wall.setStyle({ material: new DC.WallTrailMaterialProperty({ color: window.$Cesium.Color.fromBytes(255, 255, 0, 180), speed: 10 }) }) curCompanyWall.addOverlay(wall) // wall.setStyle({ // material: new DC.WallTrailMaterialProperty({ // color: window.$Cesium.Color.fromBytes(255, 255, 0, 180), // speed: 10 // }) // }) // curCompanyWall.addOverlay(wall) onMounted(() => { window.$viewer && window.$viewer.flyTo(curCompanyWall)