From 33662c04f6baf8d9b8599c549073f11939e798ab Mon Sep 17 00:00:00 2001 From: xuxueli <931591021@qq.com> Date: Sat, 1 Nov 2025 05:48:46 +0800 Subject: [PATCH] =?UTF-8?q?fix(joblog):=E4=BC=98=E5=8C=96=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E6=97=A5=E5=BF=97=E7=8A=B6=E6=80=81=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 增加对状态码为0的情况处理,显示为空 - 明确区分成功状态(200)、失败状态(>0或500)和超时状态(502) - 统一状态判断逻辑,提升代码可读性- 为不同状态添加注释说明,便于维护 --- .../src/main/resources/static/js/joblog.index.1.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/xxl-job-admin/src/main/resources/static/js/joblog.index.1.js b/xxl-job-admin/src/main/resources/static/js/joblog.index.1.js index e2bcf758..5299e46a 100644 --- a/xxl-job-admin/src/main/resources/static/js/joblog.index.1.js +++ b/xxl-job-admin/src/main/resources/static/js/joblog.index.1.js @@ -105,10 +105,12 @@ $(function() { "width":'10%', "render": function ( data, type, row ) { var html = data; - if (data == 200) { + if (data == 200) { // 200, success html = ''+ I18n.system_success +''; - } else if (data > 0) { // 500 + } else if (data > 0) { // >0 or 500, fail html = ''+ I18n.system_fail +''; + } else if (data == 0) { // 0, original pass + html = ''; } return html; } @@ -132,12 +134,14 @@ $(function() { "width":'10%', "render": function ( data, type, row ) { var html = data; - if (data == 200) { + if (data == 200) { // 200, success html = ''+ I18n.joblog_handleCode_200 +''; - } else if (data == 502) { + } else if (data == 502) { // 502, timeout html = ''+ I18n.joblog_handleCode_502 +''; - } else if (data > 0) { // 500 + } else if (data > 0) { // >0 or 500, fail html = ''+ I18n.joblog_handleCode_500 +''; + } else if (data == 0) { // 0, original pass + html = ''; } return html; }