代码调试

This commit is contained in:
BianLzhaoMin 2025-02-25 13:13:55 +08:00
parent f148db60ad
commit cec11025e7
1 changed files with 6 additions and 2 deletions

View File

@ -121,7 +121,9 @@
//动态生成表头 //动态生成表头
headerRows.forEach((rowData, index) => { headerRows.forEach((rowData, index) => {
let dataList = rowData let dataList = rowData
if (index === 0) { let href = window.location.href
if (index === 0 && !href.includes('type=1')) {
let dataList = rowData let dataList = rowData
dataList.splice(6, 0, { dataList.splice(6, 0, {
field: "handle", field: "handle",
@ -138,7 +140,7 @@
if (cellData.title === '序号') { if (cellData.title === '序号') {
cellData.type = 'numbers'; cellData.type = 'numbers';
} }
if (!['审核', '序号', '施工业务外包商', '工程名称', '评价人'].includes(cellData.title)) { if (!['审核', '序号', '施工业务外包商', '工程名称', '评价人', '操作'].includes(cellData.title)) {
if (cellData.field.split('-').length === 1) { if (cellData.field.split('-').length === 1) {
cellData.title = cellData.title =
`<span lay-event="checkTips">${cellData.title}<i class="layui-icon layui-icon-tips layui-font-14" `<span lay-event="checkTips">${cellData.title}<i class="layui-icon layui-icon-tips layui-font-14"
@ -183,6 +185,8 @@
delete item.dataset.edit delete item.dataset.edit
} }
}); });
} }
}); });