Ver código fonte

3dDisplayEngine mainframe.js 姚强 commit at 2021-04-13

姚强 4 anos atrás
pai
commit
504f6ff0b4
1 arquivos alterados com 131 adições e 0 exclusões
  1. 131 0
      3dDisplayEngine/buildingJs/mainframe.js

+ 131 - 0
3dDisplayEngine/buildingJs/mainframe.js

@@ -1034,3 +1034,134 @@ var menuUser = Ext.create('Ext.menu.Menu',{
             });
         }
 	},{
+		text: '切换用户',
+		cls:'usky_menu',
+		disabled: true,
+		iconCls: 'user_change_btn'
+	},{
+		text: '密码管理',
+		cls:'usky_menu',
+		disabled: true,
+		iconCls: 'user_password_btn'
+	}]
+});
+
+Ext.onReady(function() {
+	$("#V_LOGINNAME").val(sessionStorage.getItem('V_LOGINNAME'));
+	$("#V_PASSWORD").val(sessionStorage.getItem('V_PASSWORD'));
+	baseUrl = document.getElementById('basePath').value;
+	theme = document.getElementById('theme').value;
+	viewAlarmType = document.getElementById('viewAlarmType').value;
+	pieAlarmType = document.getElementById('pieAlarmType').value;
+	statusType = document.getElementById('statusType').value;
+	var viewport = Ext.create('Ext.Viewport', {
+		layout: {
+            type: 'border',
+            padding: 0
+        },
+        defaults: {
+            split: true
+        },
+        items: [{
+            region: 'north',
+            collapsible: false,
+            split: true,
+            height: 36,
+            margin  : '0',
+            tbar : [{
+            	text:'',
+            	margin:'0 0 0 15',
+//            	padding: ''
+//            	iconCls: 'usky_logo',
+//            	text:'<img src',
+            	text:($("#V_LOGINNAME").val()=='guest'?'<img src="../../res/img/usky/189_logo2.png" width="120" height="30" />':'<img src="../../res/img/usky/logo.png" style="margin-top:3px;height:18px;"/>'),//'<img src="../res/img/usky/logo.png" '+($("#V_LOGINNAME").val()=='guest'?'189_logo2':'logo')+'.png" style="margin-top:3px;height:18px;"/>',
+            	width:($("#V_LOGINNAME").val()=='guest'?160:160),
+            	disabled:true
+            },{
+        		text: '智慧消防 ',
+        		cls:'usky_menu',
+//        		iconCls: 'usky_btn',
+        		menu: menuMain
+        	},{
+        		text: '子系统 ',
+        		cls:'usky_menu',
+//        		iconCls: 'submenu_btn',
+        		menu: menuSub,
+        		disabled:true
+        	},{
+        		text: '视图 ',
+        		cls:'usky_menu',
+//        		iconCls: 'viewmenu_btn',
+        		menu: menuView,
+        		disabled:true
+        	},{
+        		xtype: 'tbfill'
+        	},{
+        		html: '<span style="color: #27c5ff;font-size: 20px; font-weight:bold;font-family:\'微软雅黑\', Microsoft YaHei; ">'+($("#V_LOGINNAME").val()=='guest'?'中国电信抚州分公司消防物联网平台</span> ':'IoT-02  智慧消防综合监控系统 </span><span style="font-size:16px;font-family:\'微软雅黑\', Microsoft YaHei;color: #27c5ff; ">V1.00</span>')+'',
+            	handler:function(){
+            		Ext.Msg.show({
+            		     title:'版本信息',
+            		     msg: 'IoT-02  智慧消防综合监控系统<br/>V1.00',
+            		     buttons: Ext.Msg.OK,
+            		     icon: Ext.Msg.INFO
+            		});
+            	}
+        	},{
+        		xtype: 'tbfill'
+        	},{
+            	xtype: 'textfield',
+            	disabled: true,
+            	disabledCls: '',
+            	border : 0,
+            	id: 'timestamp_bar',
+            	minWidth: 100,
+            	maxWidth: 220,
+            	height:20,
+            	cls:'usky_menu',
+            	fieldStyle: 'background: rgba(255,255,255,0.0);color: #27c5ff;border:1px solid rgba(255,255,255,0.0);font-size: 16px;font-family:"微软雅黑", Microsoft YaHei;color: #27c5ff;',
+            	html: Ext.Date.format(new Date(), 'Y-m-d H:i:s')
+        	},{
+        		text: '系统设置',
+        		cls:'usky_menu',
+//        		iconCls: 'sysmenu_btn',
+        		menu: menuSetup,
+        		disabled:true
+        	},{
+        		text: '账户',
+        		cls:'usky_menu',
+//        		iconCls: 'usermenu_btn',
+        		menu: menuUser
+        	},{
+        		text:'',
+        		margin:'0 15 0 0',
+        		width:20,
+        		disabled:true
+        	}]
+        },{
+        	region: 'center',
+        	id : 'ytiot_layout_center',
+        	collapsible: false,
+	        height: 100,
+	        minHeight: 60,
+	        border: 0,    //无边框
+	        frame: false,    //去除窗体的panel框架
+	        html: '<span id="main_center_layout"><iframe id="frame_frontpage" frameborder=0 width="100%" height="100%" allowtransparency="true" scrolling=auto src="'+baseUrl+'view/frontpage/map.jsp?viewAlarmType='+viewAlarmType+'&pieAlarmType='+pieAlarmType+'&statusType='+statusType+'&theme='+theme+'"></iframe></span>'
+        }]
+	});
+	$(".usky_menu .x-btn-inner").mouseover(function(e){
+		$(this).css('color','#ffffff');
+	});
+	$(".usky_menu .x-btn-inner").mouseout(function(e){
+		$(this).css('color','#27c5ff');
+	});
+	$(".usky_menu .x-menu-item-text").mouseover(function(e){
+		$(this).css('color','#ffffff');
+	});
+	$(".usky_menu .x-menu-item-text").mouseout(function(e){
+		$(this).css('color','#27c5ff');
+	});
+	Ext.TaskManager.start(task);
+	Ext.getCmp('view_theme_default').setChecked((theme=='default'));
+	Ext.getCmp('view_theme_gray').setChecked((theme=='gray'));
+	Ext.getCmp('view_theme_access').setChecked((theme==''));
+});