| | |
| | | class="filter-tree" |
| | | :data="treeData" |
| | | :props="defaultProps" |
| | | draggable |
| | | default-expand-all |
| | | ref="tree"> |
| | | </el-tree> |
| | |
| | | methods:{ |
| | | handleClose(){ |
| | | this.dialogVisible = false |
| | | this.$emit('close') |
| | | }, |
| | | flyToLocal(row){ |
| | | console.log(row) |
| | |
| | | const rotatedZ = localStartPoint.z; // Z轴坐标保持不变 |
| | | // 将旋转后的局部坐标转换回世界坐标系 |
| | | return Cesium.Matrix4.multiplyByPoint(transformationMatrix, new Cesium.Cartesian3(rotatedX, rotatedY, rotatedZ), new Cesium.Cartesian3()); |
| | | }, |
| | | submit(){ |
| | | console.log('生成航线') |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | }, |
| | | mounted(){ |
| | | console.log(this.templateId) |
| | | if(this.templateId) { |
| | | //预览逻辑 |
| | | getPointInfo(this.templateId).then(res=>{ |
| | | if(res.code == 200 ) { |
| | | console.log(res.data) |
| | | this.getRowData(res.data) |
| | | let drawArr = this.convertToTree(res.data.ardListWayPointsLS) |
| | | setTimeout(() => { |
| | |
| | | this.showMap =false |
| | | this.$nextTick(()=>{ |
| | | // this.towerUrl = row.modelRoute |
| | | this.towerUrl = row.modelRoute |
| | | |
| | | if(this.templateId){ |
| | | this.towerUrl = row.ardTowerModel.modelRoute |
| | | }else { |
| | | this.towerUrl = row.modelRoute |
| | | } |
| | | this.showMap = true |
| | | }) |
| | | }, |