增加演示版本支持,在web.config中配置即可;

增加自定义出差处理,参考ErrorController
This commit is contained in:
yubaolee
2016-04-25 11:53:21 +08:00
parent 3037c3b1f6
commit 6181f9dd47
22 changed files with 182 additions and 33 deletions

View File

@@ -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();
});
});

View File

@@ -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();
});
});

View File

@@ -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();
});
});

View File

@@ -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();
});
});

View File

@@ -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();
}

View File

@@ -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();
}
});

View File

@@ -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();
}

View File

@@ -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();
}

View File

@@ -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();
}

View File

@@ -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();
}

View File

@@ -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();
}