commit
e5f914277e
|
@ -172,7 +172,7 @@ var table = {
|
||||||
if (typeof table.get(this.id).responseHandler == "function") {
|
if (typeof table.get(this.id).responseHandler == "function") {
|
||||||
table.get(this.id).responseHandler(res);
|
table.get(this.id).responseHandler(res);
|
||||||
}
|
}
|
||||||
if (res.code == 0) {
|
if (res.code == web_status.SUCCESS) {
|
||||||
if ($.common.isNotEmpty(table.options.sidePagination) && table.options.sidePagination == 'client') {
|
if ($.common.isNotEmpty(table.options.sidePagination) && table.options.sidePagination == 'client') {
|
||||||
return res.rows;
|
return res.rows;
|
||||||
} else {
|
} else {
|
||||||
|
@ -612,7 +612,7 @@ var table = {
|
||||||
if (typeof table.options.responseHandler == "function") {
|
if (typeof table.options.responseHandler == "function") {
|
||||||
table.options.responseHandler(res);
|
table.options.responseHandler(res);
|
||||||
}
|
}
|
||||||
if (res.code != undefined && res.code != 0) {
|
if (res.code != undefined && res.code != web_status.SUCCESS) {
|
||||||
$.modal.alertWarning(res.msg);
|
$.modal.alertWarning(res.msg);
|
||||||
return [];
|
return [];
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -30,7 +30,7 @@ function login() {
|
||||||
"rememberMe": rememberMe
|
"rememberMe": rememberMe
|
||||||
},
|
},
|
||||||
success: function(r) {
|
success: function(r) {
|
||||||
if (r.code == 0) {
|
if (r.code == web_status.SUCCESS) {
|
||||||
location.href = ctx + 'index';
|
location.href = ctx + 'index';
|
||||||
} else {
|
} else {
|
||||||
$.modal.closeLoading();
|
$.modal.closeLoading();
|
||||||
|
|
|
@ -27,7 +27,7 @@ function register() {
|
||||||
"validateCode": validateCode
|
"validateCode": validateCode
|
||||||
},
|
},
|
||||||
success: function(r) {
|
success: function(r) {
|
||||||
if (r.code == 0) {
|
if (r.code == web_status.SUCCESS) {
|
||||||
layer.alert("<font color='red'>恭喜你,您的账号 " + username + " 注册成功!</font>", {
|
layer.alert("<font color='red'>恭喜你,您的账号 " + username + " 注册成功!</font>", {
|
||||||
icon: 1,
|
icon: 1,
|
||||||
title: "系统提示"
|
title: "系统提示"
|
||||||
|
|
|
@ -58,7 +58,7 @@
|
||||||
data: $('#form-demo-2').serialize(),
|
data: $('#form-demo-2').serialize(),
|
||||||
type: "post",
|
type: "post",
|
||||||
success: function(result) {
|
success: function(result) {
|
||||||
if (result.code == 0) {
|
if (result.code == web_status.SUCCESS) {
|
||||||
layer.msg("保存成功,正在刷新数据请稍后……", {
|
layer.msg("保存成功,正在刷新数据请稍后……", {
|
||||||
icon: 1,
|
icon: 1,
|
||||||
time: 500,
|
time: 500,
|
||||||
|
|
Loading…
Reference in New Issue