From b3479543c42f9527c79d71557ebf680f4178cb93 Mon Sep 17 00:00:00 2001 From: haha Date: Tue, 27 May 2025 00:14:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=BC=AB=E6=B8=B8=E5=8A=9F=E8=83=BD=E5=BC=80?= =?UTF-8?q?=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yanzhu-bigscreen/src/components/header.vue | 5 + yanzhu-ui-vue3/src/main.js | 1 - .../views/bim/bimSetting/PersonRoaming.vue | 475 +++++++++++++++++- .../src/views/bim/bimSetting/index.vue | 70 ++- 4 files changed, 527 insertions(+), 24 deletions(-) diff --git a/yanzhu-bigscreen/src/components/header.vue b/yanzhu-bigscreen/src/components/header.vue index 5f17925e..5a86ceb7 100644 --- a/yanzhu-bigscreen/src/components/header.vue +++ b/yanzhu-bigscreen/src/components/header.vue @@ -156,6 +156,8 @@ export default { }, mounted() { window.xapp = this + let prjTitle = localStorage.getItem('prj_title') + document.title = prjTitle || document.title this.$api.project.findMyProjectList().then((d) => { this.projects = d.rows || [] if (this.projects.length > 0) { @@ -178,11 +180,14 @@ export default { if (tmps.length > 0) { this.$store.dispatch('SetSelProject', tmps[0]) this.selProject = tmps[0] + document.title = this.selProject.projectName + ' - 大屏' } else { this.$store.dispatch('SetSelProject', null) this.selProject = null + document.title = '大屏' } localStorage.setItem('selProj', this.selProjectId) + localStorage.setItem('prj_title', document.title) }, doNav(n) { if (this.nav == n) { diff --git a/yanzhu-ui-vue3/src/main.js b/yanzhu-ui-vue3/src/main.js index d79e4a6d..c17ca256 100644 --- a/yanzhu-ui-vue3/src/main.js +++ b/yanzhu-ui-vue3/src/main.js @@ -106,7 +106,6 @@ app.component("ImageUpload", ImageUpload); app.component("ImagePreview", ImagePreview); app.component("RightToolbar", RightToolbar); app.component("Editor", Editor); - app.use(router); app.use(store); app.use(plugins); diff --git a/yanzhu-ui-vue3/src/views/bim/bimSetting/PersonRoaming.vue b/yanzhu-ui-vue3/src/views/bim/bimSetting/PersonRoaming.vue index 69519cf3..69d415e9 100644 --- a/yanzhu-ui-vue3/src/views/bim/bimSetting/PersonRoaming.vue +++ b/yanzhu-ui-vue3/src/views/bim/bimSetting/PersonRoaming.vue @@ -1,10 +1,477 @@ +const data = [ + { + option: '鼠标左键', + title: '前进、后退、旋转', + }, + { + option: '鼠标滚轮', + title: '上扬、下俯', + }, + { + option: '按键(↑)或(↓)', + title: '前后平移', + }, + { + option: '按键(←)或(→)', + title: '左右旋转', + }, +] - \ No newline at end of file diff --git a/yanzhu-ui-vue3/src/views/bim/bimSetting/index.vue b/yanzhu-ui-vue3/src/views/bim/bimSetting/index.vue index 73561c5c..b39d5595 100644 --- a/yanzhu-ui-vue3/src/views/bim/bimSetting/index.vue +++ b/yanzhu-ui-vue3/src/views/bim/bimSetting/index.vue @@ -1,5 +1,5 @@ @@ -37,6 +44,7 @@ import useUserStore from '@/store/modules/user' import { listBimModel } from '@/api/bim/bimModel' import ModelFloorTree from './ModelFloorTree.vue' import PersonRoaming from './PersonRoaming.vue' + import { h } from 'vue' export default { components: { @@ -57,6 +65,7 @@ export default { initSuccess: false, activeMenu: 0, showModels: [], + param: {}, } }, beforeUnmount() { @@ -87,28 +96,33 @@ export default { if (n == 1) { this.NotificationPopup({ title: '第一人称漫游', - id: 'PersonRoaming', - description: h('PersonRoaming'), + //id: 'PersonRoaming', + //description: h('p', null, [h('span', null, 'Message can be '), h('i', { style: 'color: teal' }, 'VNode')]), + //description: h('p', null, [h(PersonRoaming)]), }) } }, NotificationPopup(parameter) { - const that = this - that.$notification.open({ - key: 'EngineKey', - message: parameter.title, - description: parameter.description, - class: 'engine-notification ' + (parameter.tips ? parameter.tips : ''), - duration: null, - placement: parameter.placement ? parameter.placement : that.isMobile ? 'bottomLeft' : 'topRight', - style: { - top: parameter.top ? parameter.top : '50px', - width: parameter.width ? parameter.width : '280px', - marginRight: `20px`, - borderRadius: '0px', - }, - onClose: this.notifClose, - }) + this.param = parameter + // const that = this + // that.$notification.open({ + // key: 'EngineKey', + // message: parameter.title, + // description: parameter.description, + // class: 'engine-notification ' + (parameter.tips ? parameter.tips : ''), + // duration: null, + // placement: parameter.placement ? parameter.placement : that.isMobile ? 'bottomLeft' : 'topRight', + // style: { + // top: parameter.top ? parameter.top : '50px', + // width: parameter.width ? parameter.width : '360px', + // marginRight: `20px`, + // borderRadius: '0px', + // }, + // onClose: this.notifClose, + // }) + }, + doToolsClose() { + this.activeMenu = -1 }, notifClose() { this.activeMenu = -1 @@ -217,6 +231,24 @@ export default { } } } + .bim-setting-tools { + position: absolute; + top: 10px; + right: 10px; + background: rgba(255, 255, 255, 0.5); + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); + .tools-title { + padding: 10px; + color: #114c5f; + size: 24px; + } + .tools-close { + position: absolute; + top: 10px; + right: 10px; + cursor: pointer; + } + } } body.is-sapi { .app-main {