From add9f6a97aa20776f766082d00f27d76b3262308 Mon Sep 17 00:00:00 2001 From: "lj7788@126.com" Date: Fri, 25 Jul 2025 16:53:07 +0800 Subject: [PATCH] =?UTF-8?q?BIM=E8=AE=BE=E7=BD=AE=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/bim/bimModel/bimConfigDialog.vue | 48 ++++++++++- .../src/views/bim/bimSetting/HideFeature.vue | 39 ++++++++- .../views/bim/bimSetting/ModelFloorTree.vue | 54 ++++++++---- .../src/views/bim/bimSetting/MoveModel.vue | 84 +++++++++++++++---- .../src/views/bim/bimSetting/index.vue | 66 +++++++-------- .../src/views/manage/plan/index.vue | 2 +- 6 files changed, 220 insertions(+), 73 deletions(-) diff --git a/yanzhu-ui-vue3/src/views/bim/bimModel/bimConfigDialog.vue b/yanzhu-ui-vue3/src/views/bim/bimModel/bimConfigDialog.vue index fdea77b5..9e72650b 100644 --- a/yanzhu-ui-vue3/src/views/bim/bimModel/bimConfigDialog.vue +++ b/yanzhu-ui-vue3/src/views/bim/bimModel/bimConfigDialog.vue @@ -1,6 +1,21 @@ @@ -12,9 +27,29 @@ export default { return { show: false, currentPrjId: null, + cfg:{ + showGis:false, + background:"", + clientApi:false, + } } }, methods: { + onSubmit(){ + this.$modal.confirm("确定保存吗?").then(() => { + updateProjectBimConfig(this.currentPrjId,{ + showGis:this.cfg.showGis, + background:this.cfg.background, + clientApi:this.cfg.clientApi, + }).then(res=>{ + this.$message.success("保存成功"); + this.show=false; + }) + }) + }, + onCancel(){ + this.show=false; + }, showDialog() { this.userStore = useUserStore(); this.currentPrjId = this.userStore.currentPrjId; @@ -23,8 +58,13 @@ export default { }, loadData(){ getProjectBimConfig(this.currentPrjId).then(d=>{ - debugger; - console.log(d) + + if(d.msg){ + let config=this.$tryToJson(d.msg,{}); + this.cfg.background=config.background||""; + this.cfg.showGis=config.showGis||false; + this.cfg.clientApi=config.clientApi||false; + } }) } } diff --git a/yanzhu-ui-vue3/src/views/bim/bimSetting/HideFeature.vue b/yanzhu-ui-vue3/src/views/bim/bimSetting/HideFeature.vue index 6574f96b..b7ad488c 100644 --- a/yanzhu-ui-vue3/src/views/bim/bimSetting/HideFeature.vue +++ b/yanzhu-ui-vue3/src/views/bim/bimSetting/HideFeature.vue @@ -2,6 +2,7 @@
删除所有 + 保存
@@ -16,7 +17,7 @@