|
|
|
@ -4,7 +4,9 @@ |
|
|
|
<!-- 地图背景 --> |
|
|
|
<div id="gis-map-background" class="map-background"> |
|
|
|
<!-- cesiummap组件 --> |
|
|
|
<cesiumMap ref="cesiumMap" :drawDomClick="drawDom" @draw-complete="handleMapDrawComplete" |
|
|
|
<cesiumMap ref="cesiumMap" :drawDomClick="drawDom || airspaceDrawDom" |
|
|
|
:tool-mode="drawDom ? 'ranging' : (airspaceDrawDom ? 'airspace' : 'airspace')" |
|
|
|
@draw-complete="handleMapDrawComplete" |
|
|
|
@open-waypoint-dialog="handleOpenWaypointEdit" /> |
|
|
|
<div class="map-overlay-text"> |
|
|
|
<i class="el-icon-location-outline text-3xl mb-2 block"></i> |
|
|
|
@ -305,6 +307,7 @@ export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
drawDom:false, |
|
|
|
airspaceDrawDom:false, |
|
|
|
// 在线成员弹窗 |
|
|
|
showOnlineMembers: false, |
|
|
|
// 编辑弹窗控制 |
|
|
|
@ -398,9 +401,9 @@ export default { |
|
|
|
{ id: 'file', name: '方案', icon: 'el-icon-folder-opened' }, |
|
|
|
{ id: 'start', name: '冲突', icon: 'el-icon-error' }, |
|
|
|
{ id: 'insert', name: '平台', icon: 'el-icon-s-platform' }, |
|
|
|
{ id: 'pattern', name: '图案', icon: 'el-icon-picture-outline-round' }, |
|
|
|
{ id: 'pattern', name: '空域', icon: 'el-icon-picture-outline-round' }, |
|
|
|
{ id: 'deduction', name: '推演', icon: 'el-icon-video-play' }, |
|
|
|
{ id: 'modify', name: '修改', icon: 'el-icon-edit-outline' }, |
|
|
|
{ id: 'modify', name: '测距', icon: 'el-icon-edit-outline' }, |
|
|
|
{ id: 'refresh', name: '刷新', icon: 'el-icon-refresh' }, |
|
|
|
{ id: 'basemap', name: '底图', icon: 'el-icon-picture' }, |
|
|
|
{ id: 'save', name: '保存', icon: 'el-icon-document-checked' }, |
|
|
|
@ -1141,6 +1144,7 @@ export default { |
|
|
|
// 点击方案、平台、冲突等菜单项时,停止地图绘制状态 |
|
|
|
if (item.id === 'file' || item.id === 'start' || item.id === 'insert') { |
|
|
|
this.drawDom = false; |
|
|
|
this.airspaceDrawDom = false; |
|
|
|
} |
|
|
|
|
|
|
|
// 点击左侧的方案、冲突、平台时,切换右侧面板内容 |
|
|
|
@ -1169,20 +1173,31 @@ export default { |
|
|
|
this.isRightPanelHidden = false; |
|
|
|
} |
|
|
|
} else if (item.id === 'modify') { |
|
|
|
// 点击测距时,启用测距绘制模式,关闭空域绘制模式 |
|
|
|
this.drawDom = !this.drawDom |
|
|
|
// 点击修改图标进行地图绘制时,自动收起右侧面板 |
|
|
|
this.airspaceDrawDom = false |
|
|
|
// 点击测距图标进行地图绘制时,自动收起右侧面板 |
|
|
|
this.isRightPanelHidden = true; |
|
|
|
console.log(this.drawDom, 999999) |
|
|
|
console.log('测距绘制模式:', this.drawDom, 999999) |
|
|
|
} else if (item.id === 'pattern') { |
|
|
|
// 点击空域时,启用空域绘制模式,关闭测距绘制模式 |
|
|
|
this.airspaceDrawDom = !this.airspaceDrawDom |
|
|
|
this.drawDom = false |
|
|
|
// 点击空域图标进行地图绘制时,自动收起右侧面板 |
|
|
|
this.isRightPanelHidden = true; |
|
|
|
console.log('空域绘制模式:', this.airspaceDrawDom, 999999) |
|
|
|
} else if (item.id === 'deduction') { |
|
|
|
// 点击推演按钮,显示/隐藏K时弹出框 |
|
|
|
this.showKTimePopup = !this.showKTimePopup; |
|
|
|
// 点击推演时,也停止地图绘制状态 |
|
|
|
this.drawDom = false; |
|
|
|
this.airspaceDrawDom = false; |
|
|
|
} else { |
|
|
|
// 点击其他菜单项时,也自动收起右侧面板 |
|
|
|
this.isRightPanelHidden = true; |
|
|
|
// 点击其他菜单项时,也停止地图绘制状态 |
|
|
|
this.drawDom = false; |
|
|
|
this.airspaceDrawDom = false; |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
|