From a25b452b88f1c12d20ab6d66622919d183e2cd58 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Thu, 24 Jul 2025 14:31:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=AF=A6=E6=83=85=E5=B1=95?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/pages/newDataAnalysis/projectProgress.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/pages/newDataAnalysis/projectProgress.js b/js/pages/newDataAnalysis/projectProgress.js index 16f68e1..2b57d8a 100644 --- a/js/pages/newDataAnalysis/projectProgress.js +++ b/js/pages/newDataAnalysis/projectProgress.js @@ -29,7 +29,7 @@ function setCols(type) { { title: "延误因素分析", align: "center", - templet: (d) => { + templet: (d, index) => { let text = ""; text += '查看'; @@ -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]; // 获取对应行的数据 // 弹框配置