From 707daf34ace78aaddbb69ed641a85abd488729d0 Mon Sep 17 00:00:00 2001 From: erdanergou Date: Thu, 20 Jul 2023 17:00:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=83=A8=E5=88=86=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E4=BB=A5=E5=8F=96=E6=B6=88=E5=8F=91=E9=80=81=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/templates/pages/depository/table-out.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/resources/templates/pages/depository/table-out.html b/src/main/resources/templates/pages/depository/table-out.html index e8ed28ce..3ff1293c 100644 --- a/src/main/resources/templates/pages/depository/table-out.html +++ b/src/main/resources/templates/pages/depository/table-out.html @@ -322,11 +322,12 @@ // 用于给table行上色的方法 function Layui_SetDataTableRowColor(TabDivId, RowIndex, ColorString) { try { - var div = $("[lay-id='currentTableId'] tr:eq(" + RowIndex + ")"); - if (div != null) //找到对象了 + let rowItem = $("[lay-id='currentTableId'] tr:eq(" + RowIndex + ")"); + let column = $(rowItem[0].childNodes[7]); + if (column != null) //找到对象了 { // console.log(div); - div.css("color", ColorString); + column.css("background-color", ColorString); } else { console.log('没有找到对象');