mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2026-02-27 06:03:24 +08:00
增加演示版本支持,在web.config中配置即可;
增加自定义出差处理,参考ErrorController
This commit is contained in:
@@ -23,6 +23,11 @@ $(document).ready(function () {
|
||||
firstId: $('#firstId').val(),
|
||||
secIds: ids
|
||||
}, function (json) {
|
||||
if (json.statusCode != "200") {
|
||||
json = $.parseJSON(json);
|
||||
$(this).alertmsg('warn', json.message);
|
||||
return;
|
||||
}
|
||||
selected.reLoad();
|
||||
});
|
||||
});
|
||||
@@ -35,6 +40,11 @@ $(document).ready(function () {
|
||||
firstId: $('#firstId').val(),
|
||||
secIds: ids
|
||||
}, function (json) {
|
||||
if (json.statusCode != "200") {
|
||||
json = $.parseJSON(json);
|
||||
$(this).alertmsg('warn', json.message);
|
||||
return;
|
||||
}
|
||||
selected.reLoad();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -23,6 +23,11 @@ $(document).ready(function () {
|
||||
firstId: $('#firstId').val(),
|
||||
secIds: ids
|
||||
}, function (json) {
|
||||
json = $.parseJSON(json);
|
||||
if (json.statusCode != "200") {
|
||||
$(this).alertmsg('warn', json.message);
|
||||
return;
|
||||
}
|
||||
dlgList.reload();
|
||||
});
|
||||
});
|
||||
@@ -35,6 +40,11 @@ $(document).ready(function () {
|
||||
firstId: $('#firstId').val(),
|
||||
secIds: ids
|
||||
}, function (json) {
|
||||
json = $.parseJSON(json);
|
||||
if (json.statusCode != "200") {
|
||||
$(this).alertmsg('warn', json.message);
|
||||
return;
|
||||
}
|
||||
dlgList.reload();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -23,6 +23,11 @@ $(document).ready(function () {
|
||||
firstId: $('#firstId').val(),
|
||||
secIds: ids
|
||||
}, function (json) {
|
||||
if (json.statusCode != "200") {
|
||||
json = $.parseJSON(json);
|
||||
$(this).alertmsg('warn', json.message);
|
||||
return;
|
||||
}
|
||||
selected.reLoad();
|
||||
});
|
||||
});
|
||||
@@ -35,6 +40,11 @@ $(document).ready(function () {
|
||||
firstId: $('#firstId').val(),
|
||||
secIds: ids
|
||||
}, function (json) {
|
||||
if (json.statusCode != "200") {
|
||||
json = $.parseJSON(json);
|
||||
$(this).alertmsg('warn', json.message);
|
||||
return;
|
||||
}
|
||||
selected.reLoad();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -23,6 +23,11 @@ $(document).ready(function () {
|
||||
firstId: $('#firstId').val(),
|
||||
secIds: ids
|
||||
}, function (json) {
|
||||
if (json.statusCode != "200") {
|
||||
json = $.parseJSON(json);
|
||||
$(this).alertmsg('warn', json.message);
|
||||
return;
|
||||
}
|
||||
dlgList.reload();
|
||||
});
|
||||
});
|
||||
@@ -35,6 +40,11 @@ $(document).ready(function () {
|
||||
firstId: $('#firstId').val(),
|
||||
secIds: ids
|
||||
}, function (json) {
|
||||
if (json.statusCode != "200") {
|
||||
json = $.parseJSON(json);
|
||||
$(this).alertmsg('warn', json.message);
|
||||
return;
|
||||
}
|
||||
dlgList.reload();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -214,7 +214,11 @@ var editDlg = function () {
|
||||
if (!v) return; //验证没通过
|
||||
$("#editForm").bjuiajax('ajaxForm', {
|
||||
reload: false,
|
||||
callback:function(json) {
|
||||
callback: function (json) {
|
||||
if (json.statusCode == "400") {
|
||||
$(this).alertmsg('warn', json.message);
|
||||
return null;
|
||||
}
|
||||
list.reload();
|
||||
ztree.reload();
|
||||
}
|
||||
|
||||
@@ -39,9 +39,12 @@ $(document).ready(function () {
|
||||
},
|
||||
function (data) {
|
||||
data = $.parseJSON(data);
|
||||
if (data.statusCode == "200") {
|
||||
thisDlg.reload();
|
||||
if (data.statusCode != "200") {
|
||||
$(this).alertmsg('warn', json.message);
|
||||
return;
|
||||
}
|
||||
|
||||
thisDlg.reload();
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -185,6 +188,10 @@ var editEleDlg = function () {
|
||||
$("#editElementForm").bjuiajax('ajaxForm', {
|
||||
reload: false,
|
||||
callback: function (json) {
|
||||
if (json.statusCode != "200") {
|
||||
$(this).alertmsg('warn', json.message);
|
||||
return;
|
||||
}
|
||||
thisDlg.reload();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -243,6 +243,10 @@ var editDlg = function () {
|
||||
$("#editForm").bjuiajax('ajaxForm', {
|
||||
reload: false,
|
||||
callback: function (json) {
|
||||
if (json.statusCode != "200") {
|
||||
$(this).alertmsg('warn', json.message);
|
||||
return;
|
||||
}
|
||||
list.reload();
|
||||
ztree.reload();
|
||||
}
|
||||
|
||||
@@ -211,6 +211,10 @@ var editDlg = function () {
|
||||
$("#editForm").bjuiajax('ajaxForm', {
|
||||
reload: false,
|
||||
callback: function (json) {
|
||||
if (json.statusCode != "200") {
|
||||
$(this).alertmsg('warn', json.message);
|
||||
return;
|
||||
}
|
||||
list.reload();
|
||||
ztree.reload();
|
||||
}
|
||||
|
||||
@@ -201,6 +201,10 @@ var editDlg = function () {
|
||||
$("#editForm").bjuiajax('ajaxForm', {
|
||||
reload: false,
|
||||
callback: function (json) {
|
||||
if (json.statusCode != "200") {
|
||||
$(this).alertmsg('warn', json.message);
|
||||
return;
|
||||
}
|
||||
list.reload();
|
||||
ztree.reload();
|
||||
}
|
||||
|
||||
@@ -192,6 +192,10 @@ var editDlg = function () {
|
||||
$("#editForm").bjuiajax('ajaxForm', {
|
||||
reload: false,
|
||||
callback: function (json) {
|
||||
if (json.statusCode != "200") {
|
||||
$(this).alertmsg('warn', json.message);
|
||||
return;
|
||||
}
|
||||
list.reload();
|
||||
ztree.reload();
|
||||
}
|
||||
|
||||
@@ -203,6 +203,10 @@ var editDlg = function () {
|
||||
$("#editForm").bjuiajax('ajaxForm', {
|
||||
reload: false,
|
||||
callback: function (json) {
|
||||
if (json.statusCode != "200") {
|
||||
$(this).alertmsg('warn', json.message);
|
||||
return;
|
||||
}
|
||||
list.reload();
|
||||
ztree.reload();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user