From 8006664e60547789d79c29f08766648b980ac197 Mon Sep 17 00:00:00 2001 From: wangxin Date: Sun, 26 Aug 2018 18:13:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=84=AA=E5=8C=96=E7=8D=B2=E5=8F=96=E6=97=A5?= =?UTF-8?q?=E8=AA=8C=E5=A4=B1=E6=95=97=E6=99=82=E7=9A=84=E9=A1=AF=E7=A4=BA?= =?UTF-8?q?=E3=80=82=E7=95=B6ajax=20complex=E4=BA=8B=E4=BB=B6=E5=9F=B7?= =?UTF-8?q?=E8=A1=8C=E7=9A=84=E6=99=82=E5=80=99=EF=BC=8C=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E7=8B=80=E6=85=8B=E5=A6=82=E6=9E=9C=E7=88=B2success=E6=88=96?= =?UTF-8?q?=E8=80=85timeout=E4=B9=8B=E5=A4=96=E7=9A=84=E5=80=BC=EF=BC=8C?= =?UTF-8?q?=E9=A1=AF=E7=A4=BAfailed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jquery-validation/1.11.0/localization/messages_en.js | 3 ++- .../jquery-validation/1.11.0/localization/messages_zh.js | 3 ++- src/main/webapp/static/global/scripts/common.js | 5 +++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/localization/messages_en.js b/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/localization/messages_en.js index 5cf046daf..a384d5d63 100644 --- a/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/localization/messages_en.js +++ b/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/localization/messages_en.js @@ -64,6 +64,7 @@ hexCheck:"Please enter the HEX format character", invisibleChar:"Please enter the visible character", hasInvisibleChar:"The tag {0} has invisible character", - haveInvisibleChar:"The tags {0} have invisible character" + haveInvisibleChar:"The tags {0} have invisible character", + failed:"Failed" }); }(jQuery)); diff --git a/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/localization/messages_zh.js b/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/localization/messages_zh.js index 5bfc41c8a..223b21c09 100644 --- a/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/localization/messages_zh.js +++ b/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/localization/messages_zh.js @@ -64,6 +64,7 @@ hexCheck:"请输入十六进制字符", invisibleChar:"请输入可见字符", hasInvisibleChar:"标签{0}包含不可见字符", - haveInvisibleChar:"标签{0}包含不可见字符" + haveInvisibleChar:"标签{0}包含不可见字符", + failed:"获取失败" }); }(jQuery)); diff --git a/src/main/webapp/static/global/scripts/common.js b/src/main/webapp/static/global/scripts/common.js index 1d6b681ea..d6f12c624 100644 --- a/src/main/webapp/static/global/scripts/common.js +++ b/src/main/webapp/static/global/scripts/common.js @@ -1174,6 +1174,7 @@ var GetLogTotal=function(_data){ } var totalTrs=$(_data.objs); var timeout=$.validator.messages.timeout; + var failed=$.validator.messages.failed; var request=$.ajax({ type:'post', timeout:10000,//超时时间设置,查询接口时间过长超时 @@ -1197,6 +1198,10 @@ var GetLogTotal=function(_data){ totalTrs.each(function(){ $(this).html(timeout); }) + }else if(status !="success"){ + totalTrs.each(function(){ + $(this).html(failed); + }) } } });