| | |
| | | <router-view /> |
| | | </div> |
| | | </div> |
| | | <div class="right"> |
| | | <!-- <div class="right"> |
| | | <div class="map-wrapper"> |
| | | <GMap /> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="task-wrapper" v-if="root.$route.name === ERouterName.TASK"> |
| | | <TaskPanel /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> --> |
| | | </div> |
| | | </template> |
| | | <script lang="ts" setup> |
| | |
| | | |
| | | const root = getRoot() |
| | | const store = useMyStore() |
| | | |
| | | const workspace_id = computed(() => store.state.common.projectId) |
| | | const messageHandler = async (payload: any) => { |
| | | if (!payload) { |
| | | return |
| | |
| | | break |
| | | } |
| | | case EBizCode.DockOsd: { |
| | | // if (payload.data.sn === workspace_id.value) { |
| | | store.commit('SET_DOCK_INFO', payload.data) |
| | | // console.log(payload.data, 'data') |
| | | // } |
| | | break |
| | | } |
| | | case EBizCode.MapElementCreate: { |
| | |
| | | }) |
| | | break |
| | | } |
| | | case EBizCode.ControlSourceChange: |
| | | case EBizCode.FlyToPointProgress: |
| | | case EBizCode.TakeoffToPointProgress: |
| | | case EBizCode.JoystickInvalidNotify: |
| | | case EBizCode.DrcStatusNotify: |
| | | { |
| | | EventBus.emit('droneControlWs', payload) |
| | | break |
| | | } |
| | | default: |
| | | break |
| | | } |
| | |
| | | |
| | | .left { |
| | | display: flex; |
| | | width: 335px; |
| | | flex: 0 0 335px; |
| | | // width: 335px; |
| | | flex: 1; |
| | | // flex: 0 0 335px; |
| | | background-color: #232323; |
| | | |
| | | .main-content { |
| | | flex: 1; |
| | | color: $text-white-basic; |
| | | color: $text-white-basic !important; |
| | | width: 285px; |
| | | } |
| | | } |
| | | |
| | |
| | | flex-grow: 1; |
| | | position: relative; |
| | | |
| | | .map-wrapper{ |
| | | .map-wrapper { |
| | | width: 100%; |
| | | height: 100%; |
| | | } |