From ae68501483a7ccaf47c490e7d9764aec5320fac1 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Mon, 28 Jul 2025 13:28:26 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../outsourceAudit/outsourceAuditForm.html | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/main/resources/static/pages/evaluate/outsourceAudit/outsourceAuditForm.html b/src/main/resources/static/pages/evaluate/outsourceAudit/outsourceAuditForm.html index b7b20bb..8c1d9f4 100644 --- a/src/main/resources/static/pages/evaluate/outsourceAudit/outsourceAuditForm.html +++ b/src/main/resources/static/pages/evaluate/outsourceAudit/outsourceAuditForm.html @@ -164,14 +164,21 @@ var columsIndex = [1];//需要合并的列索引值 [2,3,5,6,14,15]; merge(res, columsName, columsIndex); tableLoading && layer.close(tableLoading); - cols.each(function (index, item) { - if (index > 2 && index != cols.length - 1) { - let dataId = $(this).data('field') - if (item1[`${dataId}-file`] && item1[`${dataId}-file`]['fileName'] != '') { - $(this).find('.layui-table-cell').append(` `) + + var tableView = this.elem.next(); + + layui.each(res.data, function (i, item1) { + var cols = tableView.find('tr[data-index=' + i + ']').find('td'); + cols.each(function (index, item) { + if (index > 2 && index != cols.length - 1) { + let dataId = $(this).data('field') + if (item1[`${dataId}-file`] && item1[`${dataId}-file`]['fileName'] != '') { + $(this).find('.layui-table-cell').append(` `) + } } - } + }) }) + } }); table.on('tool(test)', function (obj) {