mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-12-27 06:35:39 +08:00
Routine Update
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
filterThead: false,
|
||||
toolbarItem: 'refresh, |, del',
|
||||
toolbarCustom: '<a href="/UserManager/Add" class="btn btn-green" data-icon ="plus" ' +
|
||||
'data-toggle="dialog" data-id="dialog-mask" data-mask="true">添加</a>' +
|
||||
'data-toggle="dialog" data-id="dialog-mask" data-mask="true" data-on-close="loadDataGrid">添加</a>' +
|
||||
'<button class=" btn-green" onclick="editOrg()" data-icon="pencil" type="button">编辑</button>',
|
||||
columns: [
|
||||
{
|
||||
@@ -88,8 +88,6 @@
|
||||
dataUrl: 'UserManager/Load?orgId=' + selectedId,
|
||||
delUrl: 'UserManager/Delete',
|
||||
delPK: "Id",
|
||||
editUrl: 'UserManager/Edit',
|
||||
editMode: 'dialog',
|
||||
fullGrid: true,
|
||||
showLinenumber: true,
|
||||
showCheckboxcol: true,
|
||||
@@ -103,13 +101,6 @@
|
||||
else {
|
||||
$(this).alertmsg('warn', delResult.message);
|
||||
}
|
||||
},
|
||||
editCallback: function (delResult) {
|
||||
if (delResult.statusCode == "200")
|
||||
loadDataGrid();
|
||||
else {
|
||||
$(this).alertmsg('warn', delResult.message);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -170,7 +161,14 @@
|
||||
var selected = getSelected(2);
|
||||
if (selected == null) return;
|
||||
|
||||
$(this).dialog({ id: 'editDialog', url: '/UserManager/Add?id='+selected, title: '编辑' });
|
||||
$(this).dialog({
|
||||
id: 'editDialog',
|
||||
url: '/UserManager/Add?id=' + selected,
|
||||
title: '编辑',
|
||||
onClose:function() {
|
||||
loadDataGrid();
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
//@@ sourceURL=userManagerIndex.js
|
||||
|
||||
Reference in New Issue
Block a user