|  | @@ -43,3 +43,58 @@ class MainPanel {
 | 
	
		
			
				|  |  |                  flash(devicList);
 | 
	
		
			
				|  |  |                  this.goinBuild(boolValue);
 | 
	
		
			
				|  |  |                  //    updateData();
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +            else {
 | 
	
		
			
				|  |  | +                reset(devicList);
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        else if (key == "expandBuilding") { // 楼层横向展开
 | 
	
		
			
				|  |  | +            this.app.level.change(app.buildings[0]); // 进入建筑
 | 
	
		
			
				|  |  | +            if (boolValue) {
 | 
	
		
			
				|  |  | +                this.building.expandFloors({
 | 
	
		
			
				|  |  | +                    'time': 1000,
 | 
	
		
			
				|  |  | +                    'length': 4,
 | 
	
		
			
				|  |  | +                    'horzMode': false,
 | 
	
		
			
				|  |  | +                    'hideRoof': true,
 | 
	
		
			
				|  |  | +                    'complete': function () {
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                        that.isExpandBuilding = true;
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  | +                })
 | 
	
		
			
				|  |  | +            } else {
 | 
	
		
			
				|  |  | +                this.building.unexpandFloors({
 | 
	
		
			
				|  |  | +                    'time': 500,
 | 
	
		
			
				|  |  | +                    'complete': function () { that.isExpandBuilding = false; }
 | 
	
		
			
				|  |  | +                })
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +    // 展开的楼层收回去
 | 
	
		
			
				|  |  | +    resetExpand() {
 | 
	
		
			
				|  |  | +        var that = this;
 | 
	
		
			
				|  |  | +        if (this.isExpandBuilding) {
 | 
	
		
			
				|  |  | +            this.toolBar.data.expandBuilding = false;
 | 
	
		
			
				|  |  | +            this.building.unexpandFloors({
 | 
	
		
			
				|  |  | +                'time': 500,
 | 
	
		
			
				|  |  | +                'complete': function () { that.isExpandBuilding = false; }
 | 
	
		
			
				|  |  | +            })
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +    goinBuild(boolValue) {
 | 
	
		
			
				|  |  | +        delMydiv();
 | 
	
		
			
				|  |  | +        this.resetExpand();
 | 
	
		
			
				|  |  | +        var name = boolValue ? '返回室外' : '进入建筑';
 | 
	
		
			
				|  |  | +        this.toolImgs.img3.name(name);
 | 
	
		
			
				|  |  | +        if (boolValue) {
 | 
	
		
			
				|  |  | +            removeMark();
 | 
	
		
			
				|  |  | +            this.app.level.change(app.buildings[0]);
 | 
	
		
			
				|  |  | +            var domDiv = document.getElementById('bottomBackground');
 | 
	
		
			
				|  |  | +            if (domDiv) {
 | 
	
		
			
				|  |  | +                domDiv.remove();
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        else {
 | 
	
		
			
				|  |  | +            this.app.level.change(app.root.campuses[0]);
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +}
 |