This commit is contained in:
BianLzhaoMin 2025-02-26 15:54:07 +08:00
parent 95e95bf1bd
commit 51afd88648
1 changed files with 5 additions and 3 deletions

View File

@ -200,7 +200,7 @@
var cols = tableView.find('tr[data-index=' + i + ']').find('td');
cols.each(function (index, item) {
//对field为subNameproName 的列不进行设置
if (index > 2) {
if (index > 2 && index != cols.length - 1) {
$(this).data('edit', 'false');
$(this).removeAttr('data-edit');
$(this).addClass('layui-disabled');
@ -214,11 +214,13 @@
// 只要有文件列表并且文件列表数量大于0添加文件信息
if (item.fileList && item.fileList.length > 0) {
// 根据文件列表的索引判断将哪个文件添加到相应的列
fileDom = `<span>${item.fileList[index - 3] || ''}</span>`;
fileDom = `<span>${item.fileList[index - 3]}</span>`;
}
console.log('fileDomfileDomfileDomfileDom', fileDom)
// 将fileDom添加到当前单元格
$(this).append(fileDom);
$(this).prepend(fileDom);
}
});