diff --git a/src/views/earthMap/edit/EarthComp.vue b/src/views/earthMap/edit/EarthComp.vue index 5891ef0..92474da 100644 --- a/src/views/earthMap/edit/EarthComp.vue +++ b/src/views/earthMap/edit/EarthComp.vue @@ -140,7 +140,7 @@ setClassEl1.className = 'xbsj-checkbox-wrapper xbsj-checkbox-wrapper-checked xbsj-checkbox-default'; setClassEl2.className = 'xbsj-checkbox xbsj-checkbox-checked'; } -} + function setClassNoChecked(setClassEl1, setClassEl2) { // node.checkStatus = '' @@ -413,6 +413,18 @@ cameraList: any = []; // 监控相机位置 monitorPosition: any = []; + + //处理props 由于从父组件传来props,为作区分其他变量,则采用首字母大写命名 + PropsEarthHeaderShow = this.earthHeaderShow + PropsSceneTreeShow = this.sceneTreeShow + PropsListenMouseHandlerOpen = this.listenMouseHandlerOpen + PropsListenMittHandlerOpen = this.listenMittHandlerOpen + PropsCreateBBHLineOpen = this.createBBHLineOpen + PropsGetLineInfoShow = this.getLineInfoShow + PropsGetCameraInfoShow = this.getCameraInfoShow + PropsGetLabelInfoShow = this.getLabelInfoShow + PropsDrawInitShow = this.drawInitShow + PropsKeyControlInitShow = this.keyControlInitShow /////////////////////////////////////////////////////////////////////////// //AIS信息窗口显示 AISInfoWindowShow = false; @@ -559,7 +571,7 @@ //图层管理 let sceneTree = earthUI.tools.sceneTree; // 显示图层管理 - sceneTree.show = true; + sceneTree.show = this.PropsSceneTreeShow; // 设置图层管理 ref 输入框的 回车 事件 // ref 输入框的 let sceneTreeInput = sceneTree._comp.$el.getElementsByClassName('xbsj-model-content-box')[0].children[1];