|
|
@ -322,11 +322,12 @@ |
|
|
// 用于给table行上色的方法 |
|
|
// 用于给table行上色的方法 |
|
|
function Layui_SetDataTableRowColor(TabDivId, RowIndex, ColorString) { |
|
|
function Layui_SetDataTableRowColor(TabDivId, RowIndex, ColorString) { |
|
|
try { |
|
|
try { |
|
|
var div = $("[lay-id='currentTableId'] tr:eq(" + RowIndex + ")"); |
|
|
let rowItem = $("[lay-id='currentTableId'] tr:eq(" + RowIndex + ")"); |
|
|
if (div != null) //找到对象了 |
|
|
let column = $(rowItem[0].childNodes[7]); |
|
|
|
|
|
if (column != null) //找到对象了 |
|
|
{ |
|
|
{ |
|
|
// console.log(div); |
|
|
// console.log(div); |
|
|
div.css("color", ColorString); |
|
|
column.css("background-color", ColorString); |
|
|
|
|
|
|
|
|
} else { |
|
|
} else { |
|
|
console.log('没有找到对象'); |
|
|
console.log('没有找到对象'); |
|
|
|