myright.js
来自「本系统基本完善了CRM管理系统的各个模块」· JavaScript 代码 · 共 55 行
JS
55 行
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 + =
减小字号Ctrl + -
显示快捷键?