调整删除时http提交方式

This commit is contained in:
yubaolee
2016-09-08 16:20:31 +08:00
parent f59c033cd5
commit b4f02ff7d3
19 changed files with 73 additions and 26 deletions

View File

@@ -27,6 +27,7 @@ function MainGrid() {
var selectedNode = 'me';
this.maingrid = $('#maingrid').datagrid({
showToolbar: false,
loadType:'GET',
filterThead: false,
target: $(this),
columns: [
@@ -115,14 +116,14 @@ function del() {
var selected = list.getSelectedObj();
if (selected == null) return;
$.getJSON('/CommonApplies/Delete?Id=' + selected.Id, function (data) {
$.post('/CommonApplies/Delete?Id=' + selected.Id, function (data) {
if (data.statusCode == "200") {
list.reload();
}
else {
$(this).alertmsg('warn', data.message);
}
});
}, "json");
}
//自定义的编辑按钮