⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 myright.js

📁 本系统基本完善了CRM管理系统的各个模块
💻 JS
字号:
Ext.namespace("CRM.rightMan");
CRM.rightMan.myRight = Ext.extend(Ext.Panel, {
	closable : true,
	autoScroll : true,
	layout : "fit",
	maskDisabled : false,
	initComponent : function() {
		CRM.rightMan.myRight.superclass.initComponent.call(this);
		this.store = new Ext.data.JsonStore({
			id : "id",
			url : 'myRight.do?actionType=dofindRightName&roleId=' + currentRole,
			root : "hasRight",
			// totalProperty : "rowCount",
			remoteSort : true,
			fields : this.storeMapping
		});
		this.grid = new Ext.grid.GridPanel({
			store : this.store,
			cm : this.cm,
			height : 300,
			stripeRows : true,
			pageSize : 10,
			bbar : new Ext.PagingToolbar({
				pageSize : 10,
				store : this.store,
				grid : this.grid,
				displayInfo : true,
				displayMsg : '显示 {0} - {1}条记录  共有 {2} 条记录',
				emptyMsg : "没有记录"
			})
		});
		this.store.load({
			params : {
				start : 0,
				limit : 10
			}
		});
		this.add(this.grid);
	}
});
myRightPanel = Ext.extend(CRM.rightMan.myRight, {
	id : 'myRight',
	storeMapping : ["rightText"],
	initComponent : function() {
		this.cm = new Ext.grid.ColumnModel([new Ext.grid.RowNumberer(), {
			header : '我的权限',
			sortable : true,
			dataIndex : 'rightText',
			align:'center',
			width:830
		}]);
		myRightPanel.superclass.initComponent.call(this);
	}
})

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -