From 73f20adcdf2bfcb8fa61470bd050f948cfc04e7b Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Thu, 24 Jul 2025 10:42:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=8C=89=E9=92=AE=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/pages/newDataAnalysis/projectManagement.js | 10 +++ js/pages/newDataAnalysis/projectProgress.js | 80 ++++++++++++++++++- 2 files changed, 87 insertions(+), 3 deletions(-) diff --git a/js/pages/newDataAnalysis/projectManagement.js b/js/pages/newDataAnalysis/projectManagement.js index 825ba16..dbc38b2 100644 --- a/js/pages/newDataAnalysis/projectManagement.js +++ b/js/pages/newDataAnalysis/projectManagement.js @@ -75,6 +75,16 @@ function initTable(type, bidCode) { }, done: function (res, curr, count, origin) { // console.log(res); + + $(".layui-table-body table.layui-table tbody tr #exportBtn").on( + "click", + function () { + // 获取当前行的数据 + var index = $(this).index(); + var rowData = res.rows[index]; // 获取对应行的数据 + console.log(rowData, "rowData导出"); + } + ); }, }); diff --git a/js/pages/newDataAnalysis/projectProgress.js b/js/pages/newDataAnalysis/projectProgress.js index 9b1d63d..a30de1a 100644 --- a/js/pages/newDataAnalysis/projectProgress.js +++ b/js/pages/newDataAnalysis/projectProgress.js @@ -26,7 +26,16 @@ function setCols(type) { { field: "processDiff", title: "进度偏差", align: "center" }, { field: "completeEffort", title: "已完成工程量", align: "center" }, { field: "totalEffort", title: "总工程量", align: "center" }, - { field: "delayActor", title: "延误因素分析", align: "center" }, + { + title: "延误因素分析", + align: "center", + templet: (d) => { + let text = ""; + text += + '查看'; + return text; + }, + }, { field: "resourceMatchStatus", title: "资源匹配状态", @@ -114,6 +123,64 @@ function initTable(type, bidCode) { if (res.code !== 200 || !res.rows || res.rows.length === 0) { layer.msg("暂无数据", { icon: 2 }); } + + // 查看按钮点击 + $(".layui-table-body table.layui-table tbody tr #viewBtn").on( + "click", + function () { + // 获取当前行的数据 + var index = $(this).index(); + var rowData = res.rows[index]; // 获取对应行的数据 + + // 弹框配置 + layer.open({ + type: 1, + title: "分析查看", + content: + "