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 @@