mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-05-04 20:58:01 +08:00
修复分页导航undefined问题
This commit is contained in:
parent
3dea7d00f0
commit
0aa470a8ca
@ -99,7 +99,7 @@ function MainGrid() {
|
|||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
data: [],
|
dataUrl: url + selectedId,
|
||||||
fullGrid: true,
|
fullGrid: true,
|
||||||
showLinenumber: true,
|
showLinenumber: true,
|
||||||
showCheckboxcol: true,
|
showCheckboxcol: true,
|
||||||
|
@ -81,7 +81,7 @@ function MainGrid() {
|
|||||||
width: 100
|
width: 100
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
data:[],
|
dataUrl: url + selectedId,
|
||||||
fullGrid: true,
|
fullGrid: true,
|
||||||
showLinenumber: true,
|
showLinenumber: true,
|
||||||
showCheckboxcol: true,
|
showCheckboxcol: true,
|
||||||
|
@ -94,7 +94,7 @@ function MainGrid() {
|
|||||||
width: 100
|
width: 100
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
data:[],
|
dataUrl: url + selectedId,
|
||||||
fullGrid: true,
|
fullGrid: true,
|
||||||
showLinenumber: true,
|
showLinenumber: true,
|
||||||
showCheckboxcol: true,
|
showCheckboxcol: true,
|
||||||
|
@ -41,6 +41,7 @@ $(document).ready(function () {
|
|||||||
//grid列表模块
|
//grid列表模块
|
||||||
function UserRolesList() {
|
function UserRolesList() {
|
||||||
var selectedId = 0; //选中的ID
|
var selectedId = 0; //选中的ID
|
||||||
|
var url = '/RoleManager/LoadForOrgAndUser?orgId=' + selectedId + '&userId=' + $('#userId').val();
|
||||||
this.maingrid = $.CurrentDialog.find('#maingrid').datagrid({
|
this.maingrid = $.CurrentDialog.find('#maingrid').datagrid({
|
||||||
showToolbar: false,
|
showToolbar: false,
|
||||||
filterThead: false,
|
filterThead: false,
|
||||||
@ -70,7 +71,7 @@ function UserRolesList() {
|
|||||||
width: 100
|
width: 100
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
data:[],
|
dataUrl: url,
|
||||||
fullGrid: true,
|
fullGrid: true,
|
||||||
showLinenumber: true,
|
showLinenumber: true,
|
||||||
showCheckboxcol: true,
|
showCheckboxcol: true,
|
||||||
@ -81,7 +82,7 @@ function UserRolesList() {
|
|||||||
});
|
});
|
||||||
this.reload = function (id) {
|
this.reload = function (id) {
|
||||||
if (id != undefined) selectedId = id;
|
if (id != undefined) selectedId = id;
|
||||||
this.maingrid.datagrid('reload', { dataUrl: '/RoleManager/LoadForOrgAndUser?orgId=' + selectedId + '&userId=' + $('#userId').val() });
|
this.maingrid.datagrid('reload', { dataUrl: url });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
UserRolesList.prototype = new Grid();
|
UserRolesList.prototype = new Grid();
|
||||||
|
@ -89,7 +89,7 @@ function MainGrid() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
],
|
],
|
||||||
data:[],
|
dataUrl: url + selectedId, //todo:这里如果配置data:[]的话,不会自动加载,但在分页的下拉中会有undefined
|
||||||
fullGrid: true,
|
fullGrid: true,
|
||||||
showLinenumber: true,
|
showLinenumber: true,
|
||||||
showCheckboxcol: true,
|
showCheckboxcol: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user