代码调试

This commit is contained in:
BianLzhaoMin 2025-02-25 13:35:16 +08:00
parent 94d82a1d9d
commit 900fd9cc0f
1 changed files with 17 additions and 4 deletions

View File

@ -152,10 +152,10 @@
} else if (cellData.mergeType === "rowspan") {
cellData.rowspan = cellData.num;
}
//去除审核
// if (cellData.field === 'examineAndApprove' && href.includes('type=1')) {
// cellData.hide = true;
// }
// 去除审核
if (cellData.field === 'examineAndApprove' && href.includes('type=1')) {
cellData.hide = true;
}
});
});
@ -193,6 +193,19 @@
var columsName = ['subName'];//需要合并的列名称 ['business_tenant_name','land','contract_begin','contract_end','history_arrears','period'];
var columsIndex = [1];//需要合并的列索引值 [2,3,5,6,14,15];
merge(res, columsName, columsIndex);
let lastRow = tableView.find('tr').last(); // 找到最后一行
let lastCell = lastRow.find('td').last(); // 找到最后一个单元格
// 创建自定义 DOM 元素
let customElement = $('<button>', {
class: 'layui-btn layui-btn-sm',
id: 'evaluate-btn',
text: '评价'
});
// 将自定义元素插入到最后一个单元格
lastCell.append(customElement);
tableLoading && layer.close(tableLoading);
}
});