Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
4b3840f49f
|
|
@ -29,7 +29,7 @@ function setCols(type) {
|
|||
{
|
||||
title: "延误因素分析",
|
||||
align: "center",
|
||||
templet: (d) => {
|
||||
templet: (d, index) => {
|
||||
let text = "";
|
||||
text +=
|
||||
'<a id="viewBtn" style="color: #007bff;cursor: pointer;font-size: 16px">查看</a>';
|
||||
|
|
@ -144,8 +144,8 @@ function initTable(type, bidCode) {
|
|||
$(".layui-table-body table.layui-table tbody tr #viewBtn").on(
|
||||
"click",
|
||||
function () {
|
||||
// 获取当前行的数据
|
||||
var index = $(this).index();
|
||||
const index = $(this).closest("tr").data("index");
|
||||
console.log(index, "index");
|
||||
var rowData = res.rows[index]; // 获取对应行的数据
|
||||
|
||||
// 弹框配置
|
||||
|
|
|
|||
Loading…
Reference in New Issue