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