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: + "