From 1003b4ea23797139ed716c25a74cf7fb54e46c50 Mon Sep 17 00:00:00 2001 From: haha Date: Sat, 31 May 2025 13:21:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=BC=AB=E6=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yanzhu-bigscreen/src/components/header.vue | 73 ++- yanzhu-ui-vue3/src/api/bim/bim.js | 33 + yanzhu-ui-vue3/src/utils/public.js | 93 +++ .../views/bim/bimSetting/PersonRoaming.vue | 617 +++++++++--------- .../bim/bimSetting/PersonRoaming_副本.vue | 417 ++++++++++++ .../src/views/bim/bimSetting/index.vue | 23 +- yanzhu-ui-vue3/src/views/index.vue | 2 +- 7 files changed, 928 insertions(+), 330 deletions(-) create mode 100644 yanzhu-ui-vue3/src/api/bim/bim.js create mode 100644 yanzhu-ui-vue3/src/utils/public.js create mode 100644 yanzhu-ui-vue3/src/views/bim/bimSetting/PersonRoaming_副本.vue diff --git a/yanzhu-bigscreen/src/components/header.vue b/yanzhu-bigscreen/src/components/header.vue index 5a86ceb7..d706eb14 100644 --- a/yanzhu-bigscreen/src/components/header.vue +++ b/yanzhu-bigscreen/src/components/header.vue @@ -79,14 +79,14 @@ - {{ selProject?.setting?.orgName || '数字建安施工管理平台' }} + {{ selProject?.setting?.orgName ||selProject?.projectName|| '数字建安施工管理平台' }}
绿碳中心
@@ -45,7 +45,6 @@ import { listBimModel } from '@/api/bim/bimModel' import ModelFloorTree from './ModelFloorTree.vue' import PersonRoaming from './PersonRoaming.vue' -import { h } from 'vue' export default { components: { ModelFloorTree, @@ -85,21 +84,27 @@ export default { this.showModels = api.m_model.keys().toArray() console.log('--change--') }, + resetScene() { + if (this.$refs.personRoaming) { + this.$refs.personRoaming.isRoaming = false + } + api.Camera.stopImmersiveRoam() + api.Model.location(api.m_model.keys().toArray()[0]) + api.Plugin.deleteMiniMap() + }, doMenu(n) { if (n == this.activeMenu) { + if (n == 0) { + this.resetScene() + } return } this.activeMenu = n if (n == 0) { - api.Model.location(api.m_model.keys().toArray()[0]) + this.resetScene() } if (n == 1) { - this.NotificationPopup({ - title: '第一人称漫游', - //id: 'PersonRoaming', - //description: h('p', null, [h('span', null, 'Message can be '), h('i', { style: 'color: teal' }, 'VNode')]), - //description: h('p', null, [h(PersonRoaming)]), - }) + this.param.title = '第一人称漫游' } }, NotificationPopup(parameter) { diff --git a/yanzhu-ui-vue3/src/views/index.vue b/yanzhu-ui-vue3/src/views/index.vue index ec9e25bf..b11b061e 100644 --- a/yanzhu-ui-vue3/src/views/index.vue +++ b/yanzhu-ui-vue3/src/views/index.vue @@ -11,7 +11,7 @@ function goTarget(url) { window.open(url, '__blank') } request.get('/manage/api/menu/list').then((d) => { - debugger + console.log('服务就绪') })